Hi all,
is there a way to allow the selection of text inside a cell if the AllowUpdate is set to false?
Karthick,
The way to get the text selection working is to basically take the mouse events away from the grid handling them and just nulling them out. This way, the grid will no longer handle them. Now, this throws a wrench in the gears of this process because the grid needs to know when it was clicked on to actually select the row. So, the only way would be to get both to work would be to re enable the functionality if you want to actually select records. In my sample, I re-route the grid function calls into my own functions. Then, before you make the call to the grid, there can be some check to see if you want to call the normal grid code(row select) or the nullified one where we can select all the text. In my sample, i check a checkbox.
Please take a look at the sample. Hope it helps.
Hi Steve,
Thanks for your reply. I am using UltraWebGrid only and I used the javascript code in the previous post its working. Where the user can select the text and copy by right click on the text. But the another problem is that user is not able to select the row. Is there any solution to solve both problems(text selection and row selection ).
Thanks and Regards
Karthick
Hello Karthick,
Which grid are you using, (UltraWebGrid or WebDataGrid)? This is an older post and the javascript code in the previous posts will only work for the older UltraWebGrid control and will not work for the new WebDataGrid control. Please let me know if yoiu are using the UltraWebGrid or the WebDataGrid so the correct approach can be taken.
Steve
hi,
I am using infragistics grid in my application. Where in any browser user cannot select the text in the columns of the Grid with the mouse and copy the text to the clipboard using ctrl+c or copy by right click using mouse. But I need solution to allow user to select text in grid. So can any one give solution for this.
Thanks in advance
I am having another problem with the WebGrid and wondering if anyone else has experienced the same:
I am trying to set two properties of the grid:
I have tried setting these values using every possible location including in the code behind, the WebGrid designer, in the Ultragrid properties, the Band properties, the Column properties, and the DisplayLayout properties. But none of the changes seem to work at all!
Is there one location of these types of settings which overrides all the others?
--S