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

RadComboBox closes in RadGrid when Esc key used, RadGrid item still in edit mode

3 Answers 48 Views
Grid
This is a migrated thread and some comments may be shown as answers.
FvLent
Top achievements
Rank 2
FvLent asked on 01 Oct 2012, 11:02 AM
Hi all,
I have a RadGrid with ClientSettings AllowKeyboardNavigation="true" and KeyboardNavigationSettings AllowSubmitOnEnter="true" and a RadComboBox in a GridTemplateColumn.
When the record is in edit-mode, and the ComboBox has the focus, and when the user clicks the ESC key, the RadComboBox closes, as by desgin. But if the ComboBox is already closed, I expect the RadGrid, to cancel the current grid record's edit-mode, but nothing happens (I guess the Esc again only triggers the ComboBox to close)
How can I, in this scenario, still close the radgrid's selected record?
Regards
Frank

3 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 03 Oct 2012, 01:03 PM
Hi Frank,

I will forward this issue to our developers and they will further analyze it to determine the exact cause of the problematic behavior.

As a workaround, you could use:
<MasterTableView ... EditMode="PopUp">
or add an empty client side OnCommand event:
  mark-up:
<ClientEvents OnCommand="gridCommand" />
  JavaScript:
function gridCommand(sender, args) {
}

I hope this will prove helpful.

Kind regards,
Eyup
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
FvLent
Top achievements
Rank 2
answered on 15 Oct 2012, 02:06 PM
Hi Eyup,
Thank you for your suggestions.
Reg. the first, setting the mode to popup, can't be set in the current solution.
Reg. the second, setting the clientevent: I can't get that to work. I added the command to the radgrid's clientevents and added the javascript to the page, but nothing changes to the behaviour. I also don't understand why this would work, can you explain?
Regards,
Frank
0
Eyup
Telerik team
answered on 18 Oct 2012, 10:17 AM
Hello Frank,

Hooking to the OnCommand client event enables some internal scripts which resolve the issue on my end.

If the problem remains on your side, I suggest you to open a support ticket and send us a sample runnable application demonstrating the problematic behavior. Or provide us the exact steps to reproduce the issue locally. Thus, we will be able to further analyze the project and provide a proper solution.

Greetings,
Eyup
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
FvLent
Top achievements
Rank 2
Answers by
Eyup
Telerik team
FvLent
Top achievements
Rank 2
Share this question
or