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

[Solved] Radgrid hierarchy ItemIndex

1 Answer 135 Views
Grid
This is a migrated thread and some comments may be shown as answers.
barbod
Top achievements
Rank 1
barbod asked on 09 Mar 2014, 01:11 PM
I use Radgrid hierarchy with 3 level grid.
also I use "<ClientEvents OnCommand="OnClientCommand" />" for show modal window at AddNew Button Click :

function OnClientCommand(sender, eventArgs) {
   var cmdName = eventArgs.get_commandName();
   if (cmdName == "InitInsert") {
       eventArgs.set_cancel(true);
       ShowCreateForm();
   }
}

when I want to read details ItemIndex with "RadGrid_ItemCommand" return 0 !??!?!?
and when remove tag "<ClientEvents OnCommand="OnClientCommand" />"  then work fine! why ????
please help me, thanks.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 10 Mar 2014, 07:52 AM
Hi Barbod,

I'm not clear about your requirement. Since you have set the  eventArgs.set_cancel(true); it wont reach server side ItemCommand Event. If this is not your issue please provide your code behind as well as elaborate on your requirement.

Thanks,
Shinu
Tags
Grid
Asked by
barbod
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or