Radgrid hierarchy ItemIndex

2 posts, 0 answers
  1. barbod
    barbod avatar
    15 posts
    Member since:
    Apr 2007

    Posted 09 Mar 2014 Link to this post

    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") {

    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.
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 10 Mar 2014 in reply to barbod Link to this post

    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.

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top