This is a migrated thread and some comments may be shown as answers.

Double click inside the cell not selecting the word before or after underscore('_')

3 Answers 92 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Prakhar
Top achievements
Rank 1
Prakhar asked on 04 Feb 2013, 10:13 AM
Hi,

I have one RadGridView, inside that i've one GridViewDataColumn where user can enter the details.
I am facing issues when the entered value is having underscore(_), say Motor_1, so when user double click after 1, instead of selecting the full word only 1 get selected.
What can i do in order to select the full word on double click irrespective of any special characters.

Thanks,
Prakhar

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 04 Feb 2013, 11:42 AM
Hello Prakhar,

The default GridView's editor is a TextBox. In order to select the whole word when it contains underscores, you need to click three times.

Kind regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Prakhar
Top achievements
Rank 1
answered on 05 Feb 2013, 07:56 AM
Hi,
Thanks for your quick reply.
Do we have any other way to get rid of three clicks for selecting the whole word?

Thanks,
Prakhar
0
Dimitrina
Telerik team
answered on 05 Feb 2013, 08:28 AM
Hi,

You could predefine the CellEditTemplate for the column and configure an editor of your choice. 

Greetings,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Prakhar
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Prakhar
Top achievements
Rank 1
Share this question
or