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

javascript firecommand and access controls from RadDataForm1_ItemCommand

1 Answer 56 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Aykut
Top achievements
Rank 1
Aykut asked on 13 Apr 2017, 04:32 PM

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.

 

 

 

1 Answer, 1 is accepted

Sort by
0
Aykut
Top achievements
Rank 1
answered on 13 Apr 2017, 05:37 PM

I used  RadDataForm1.Items(0) to findcontrols.

raddataform not like radgrid.

anyway, thanks.

Tags
DataForm
Asked by
Aykut
Top achievements
Rank 1
Answers by
Aykut
Top achievements
Rank 1
Share this question
or