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

add new row radgrid in clientside

3 Answers 157 Views
Grid
This is a migrated thread and some comments may be shown as answers.
A
Top achievements
Rank 1
A asked on 25 May 2012, 10:00 AM
hi every one, how can i add new row radgrid in client side .i searched but i can't resolve

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 25 May 2012, 10:30 AM
Hello,

Try the following javascript to achieve your scenario.
JS:
<script type="text/javascript">
    function OnClientClick() {
        var grid = $find("<%=RadGrid1.ClientID %>");
        var masterTable = grid.get_masterTableView();
        masterTable.fireCommand("InitInsert", "");
    }
</script>

Thanks,
Princy.
0
A
Top achievements
Rank 1
answered on 25 May 2012, 10:41 AM
thank princy
But i want :
when i click buttion Add new row => radgrid will add new row in client side (don't use webservices) and i can add many row (not post back in server side)
then i click button Save => update in to database
0
A
Top achievements
Rank 1
answered on 29 May 2012, 04:05 AM
sorry , please help me resolve problem
Tags
Grid
Asked by
A
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
A
Top achievements
Rank 1
Share this question
or