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

[Solved] Add New Record Functionality On Client Side Button Click Event

2 Answers 223 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ranganath
Top achievements
Rank 1
Ranganath asked on 24 Apr 2009, 07:36 AM
Hi,
I have Radgrid. On top i have Add Recrod. when i click that Grid will expand and it will show templete designe.
I have a client side button on my page. when i click on that button i want to display grid in expand mode means it should ready for Entering data.
Thanks in advance.
Ramesh

2 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 24 Apr 2009, 07:46 AM
Hello Ranganath,

You could use the showInsertItem client-side method.

Regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Shinu
Top achievements
Rank 2
answered on 24 Apr 2009, 07:56 AM
Hello Ranganath,

You can also try the following method to achieve this functionality.

[javascript]
 
<script type="text/javascript">       
function SwitchGridInInsertMode() 
    var masterTable = $find("<%= RadGrid1.ClientID %>").get_masterTableView();  
    masterTable.fireCommand("InitInsert","");  
}     
</script> 

Thanks,
Shinu.
Tags
Grid
Asked by
Ranganath
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Shinu
Top achievements
Rank 2
Share this question
or