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

[Solved] Cursor Display On Radgrid with Double-Click Edit

3 Answers 256 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Clay
Top achievements
Rank 1
Clay asked on 20 Jun 2008, 07:41 PM
I have a RadGrid to which I've applied the double-click edit functionality.

I have a couple issues:

1) I'm making an ajax call to the code behind to both put the grid row in edit as well as to save changes made.  Everything goes great with exception of change of the cursor display to 'default' once the routine has completed.  It gets stuck on 'wait'.  The thing is, once a user moves their mouse the cursor flips back to the proper context.  I've tried making an explicit call in the client-side script with no luck. 

2) I would also like to set focus on the edited row textbox control (I have only one).  I've experiemented with both client-side and server side calls but continue to be stuck like chuck.

Neither of these issues is a show stopper, but I plan to use this approach throughout the site (which will make heavy use of grids), and I'm concerned it will negatively impact perceived quality of the application.
 
I've modeled my approach based upon the example provided here - http://www.telerik.com/demos/aspnet/Grid/Examples/AJAX/EditOnDblClick/DefaultCS.aspx

I experience the same behavior described above when interacting with the example. 

Thanks for any assistance you can provide.

-CH

3 Answers, 1 is accepted

Sort by
0
nick
Top achievements
Rank 1
answered on 20 Jun 2008, 09:11 PM
For item 2, have you tried using something similiar to the following, in the grid itemdatabind or pre-render event:

If e.Item.IsInEditMode Then 
    Me.ScriptManager.SetFocus(e.Item.FindControl("myControl")) 
End If 




0
Princy
Top achievements
Rank 2
answered on 23 Jun 2008, 05:03 AM
Hi Clay,

You can also go through the following help article.
Focus the text boxes in the edit control

Thanks
Princy.
0
Clay
Top achievements
Rank 1
answered on 26 Jun 2008, 08:52 AM
Thanks for the responses.  Princy, I'll give the article a look. 

Anyone have insight to the first issue mentioned (cursor stuck on 'wait')?
Tags
Grid
Asked by
Clay
Top achievements
Rank 1
Answers by
nick
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Clay
Top achievements
Rank 1
Share this question
or