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

GridNumericColumn focus issue

2 Answers 90 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Morten Bomholt
Top achievements
Rank 1
Morten Bomholt asked on 17 Apr 2009, 01:39 PM
Hey at Telerik

I have adjusted a grid to open a radwindow everytime an insert or edit command is executed. the grid needs to be either in insert mode or edit mode.
I have found a bug in GridNumericColumn when setting focus to the control server side. I set focus to the fist control in the insertitem in the itemdatabound event so entering text can be done without the need of a mouse. If i try to insert the item the radwindow shows like it should, when i close it and try either by doubleclick or the edit button to edit an item i get a javascript error.
It works with a gridboundcolumn instead of the gridnumericcolumn!, but i need a numeric column. :)

Im using latest Q1 2009 build.

I have included an example which illustrates the problem. It can be found here. http://80.166.206.186/Screendump/

 

I hope there is a way to fix this easily.

Morten

2 Answers, 1 is accepted

Sort by
0
Accepted
Yavor
Telerik team
answered on 22 Apr 2009, 10:09 AM
Hello Morten,

One possible option in this case would be to set the focus on the client. For example, this can be done in the onLoad client side handler for the control.
Give this suggestion a try and let me know how it goes.

Best wishes,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Morten Bomholt
Top achievements
Rank 1
answered on 23 Apr 2009, 01:07 PM

Howdy Yavor

The error was caused by RadWindow opening on EditCommand or InsertCommend, client side.

I switched to opening the RadWindow it server side and the problem went away.

 

Thx for the help.

 

Morten

Tags
Grid
Asked by
Morten Bomholt
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Morten Bomholt
Top achievements
Rank 1
Share this question
or