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

client side binding of grid

4 Answers 83 Views
Grid
This is a migrated thread and some comments may be shown as answers.
faisal
Top achievements
Rank 1
faisal asked on 08 Jun 2011, 07:29 AM
Hi, 

i am working on telerik grid.

 <telerik:RadGrid runat="server" ID="telerikGrid" AutoGenerateColumns="false"                                                        
                                                        AllowPaging="true" Skin="Outlook" PageSize="20" AllowSorting="True" ClientSettings-DataBinding-EnableCaching="true" Visible="false" OnItemCommand="gvTitlesInOperations_TitleDetails">
                                                        <MasterTableView DataKeyNames="ID" InsertItemPageIndexAction="ShowItemOnCurrentPage"
                                                            EnableHeaderContextMenu="True" CommandItemDisplay="Top">
                                                            <CommandItemSettings AddNewRecordText="" ShowAddNewRecordButton="False" ShowExportToExcelButton="True" />
                                                                <Columns>
                                                                    <telerik:GridBoundColumn DataField="MetaBook_ID" HeaderStyle-Width="60px" HeaderText="Book ID" />
                                                                    <telerik:GridBoundColumn DataField="Title" HeaderStyle-Width="360px" HeaderText="Title" />
                                                                    <telerik:GridBoundColumn DataField="SubTitle" HeaderStyle-Width="300px" HeaderText="Sub-title" />
                                                                    <telerik:GridBoundColumn DataField="abc" HeaderText="" />
                                                                    <telerik:GridBoundColumn DataField="xyz" HeaderText="" />
                                                                     <telerik:GridBoundColumn DataField="" HeaderText="" />
                                                                      <telerik:GridBoundColumn DataField="" HeaderText="" />                                                                
                                </telerik:GridButtonColumn>
                                                                </Columns>
                                                            <HeaderStyle Font-Bold="False" />
                                                        </MasterTableView>
                                                        <PagerStyle Mode="NextPrevAndNumeric" />
                                                    </telerik:RadGrid>


i just want to add one row. simple static one row to this grid in javascript in a simple function. plz guide me how to do this

function populategrid()
{
code here
}

regards,

Faisal

4 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 08 Jun 2011, 10:28 AM
Hello Faisal,

Check out the following code library to which discusses attaching client event handlers.
Detecting edit/insert click client-side and cancelling row selection on edit.

Thanks,
Princy.
0
faisal
Top achievements
Rank 1
answered on 08 Jun 2011, 03:12 PM
if i want to use simple javascript function without page method to pupulate a grid then how to. plz help

Regards,

Faisal

0
faisal
Top achievements
Rank 1
answered on 08 Jun 2011, 04:15 PM
Hi,

How to mantain paging and filter option when data bind to grid is from client side because only empty grid shows when i click on 2 page.


Regards,

Faisal
0
Iana Tsolova
Telerik team
answered on 13 Jun 2011, 11:33 AM
Hello faisal,

Can you share the grid declaration as well as the client code you use for binding the grid?

Greetings,
Iana
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
faisal
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
faisal
Top achievements
Rank 1
Iana Tsolova
Telerik team
Share this question
or