javascript firecommand and access controls from RadDataForm1_ItemCommand

2 posts, 0 answers
  1. Aykut
    Aykut avatar
    3 posts
    Member since:
    Nov 2014

    Posted 13 Apr Link to this post

    I'm trying to fire a command from raddataform like:

            var masterTable = $find("<%= RadDataForm1.ClientID %>");
             masterTable.fireCommand("MyUploadCommand", "");

    that fires very well and I can catch coomand in RadDataForm1_ItemCommand like:

    If e.CommandName = "MyUploadCommand" Then......

    but I cannot find controls inside <EditItemTemplate> no matter what. also very strange but inside Itemcommand routine e.DataFormItem.IsInEditMode is always false but its in edit mode.

    I can access controls from RadDataForm1_Deletecommand, RadDataForm1_InsertCommand perfectly but not from RadDataForm1_ItemCommand.

    How can I trigger  a command with javascript and catch it and access controls ?

    If I cannot find the answer I have to give up using raddataform because there are no documents left to read...

     

    best.

     

     

     

  2. Aykut
    Aykut avatar
    3 posts
    Member since:
    Nov 2014

    Posted 13 Apr in reply to Aykut Link to this post

    I used  RadDataForm1.Items(0) to findcontrols.

    raddataform not like radgrid.

    anyway, thanks.

Back to Top