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

RadGrid Javascipt errors after upgrating to AJAX enabled Grid

1 Answer 86 Views
Grid
This is a migrated thread and some comments may be shown as answers.
baqi
Top achievements
Rank 1
baqi asked on 16 Jul 2008, 12:43 AM
Hi

   I have been using the Radgrid version which was using the RadGrid.Net2 assembly.Now i am upgrading it to the AJAX enabled grid using telerik.Web.UI Assembly.

I am having problems in accessing the client side properties and methods for the AJAX enabled grid which i was able to access with the previous version.

After upgrading the grid properies like grid.MasterTableView.SelectRow , grid.GetColumnByUniqueName and  grid.MasterTableView.Rows are showing as undefined.Although grid.MasterTableView is showing as Object.
I have checked the documentation to see that these properties are same for the older as well as current version.

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>


function

GridCreated(sender, eventArgs)

{

grid = sender;

alert(grid.MasterTableView);

alert(grid.MasterTableView.SelectRow);

grid.MasterTableView.SelectRow(grid.MasterTableView.Rows[document.form1.defaultrow.value].Control,

true);

}

<

telerik:radgrid id="RadGrid2" runat="server" Width="100%" gridlines="Horizontal" Skin="Outlook" AllowSorting="True" ShowFooter="True" ShowGroupPanel="True" ShowStatusBar="True" SkinsPath="../../RadControls/Grid/Skins" PageSize="30">

<

ClientSettings ReorderColumnsOnClient="True" AllowColumnsReorder="True" ClientEvents-OnGridCreated="GridCreated" ClientEvents-OnRowSelected="RowSelected"

 

AllowDragToGroup="True">

 

<selecting allowrowselect="True">

 

</selecting>

 

<Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True"></Scrolling>

 

</ClientSettings>

<

MasterTableView>

<

ExpandCollapseColumn Visible="False" CollapseImageUrl="../../RadControls/Grid/Skins/Outlook/SingleMinus.gif" ExpandImageUrl="../../RadControls/Grid/Skins/Outlook/SinglePlus.gif" FilterImageUrl="../../RadControls/Grid/Skins/Outlook/Filter.gif" SortAscImageUrl="../../RadControls/Grid/Skins/Outlook/SortAsc.gif" SortDescImageUrl="../../RadControls/Grid/Skins/Outlook/SortDesc.gif">

<

HeaderStyle Width="19px"></HeaderStyle>

</

ExpandCollapseColumn>

<

RowIndicatorColumn Visible="False" FilterImageUrl="../../RadControls/Grid/Skins/Outlook/Filter.gif" SortAscImageUrl="../../RadControls/Grid/Skins/Outlook/SortAsc.gif" SortDescImageUrl="../../RadControls/Grid/Skins/Outlook/SortDesc.gif">

<

HeaderStyle Width="20px"></HeaderStyle>

</

RowIndicatorColumn>

 

<CommandItemSettings AddNewRecordImageUrl="../../RadControls/Grid/Skins/Office2007/AddRecord.gif"

 

RefreshImageUrl="../../RadControls/Grid/Skins/Office2007/Refresh.gif" />

 

<EditFormSettings>

 

<EditColumn CancelImageUrl="../../RadControls/Grid/Skins/Office2007/Cancel.gif" EditImageUrl="../../RadControls/Grid/Skins/Office2007/Edit.gif"

 

FilterImageUrl="../../RadControls/Grid/Skins/Office2007/Filter.gif" InsertImageUrl="../../RadControls/Grid/Skins/Office2007/Insert.gif"

 

SortAscImageUrl="../../RadControls/Grid/Skins/Office2007/SortAsc.gif" SortDescImageUrl="../../RadControls/Grid/Skins/Office2007/SortDesc.gif"

 

UpdateImageUrl="../../RadControls/Grid/Skins/Office2007/Update.gif">

 

</EditColumn>

 

</EditFormSettings>

</

MasterTableView>

 

<GroupPanel Text="Drag colums here to group.">

 

</GroupPanel>

 

</

telerik:radgrid>



Is there Any Help document for this issue .

Thanks
Baqi

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 16 Jul 2008, 07:44 AM
Hi Baqi,

Have you gone through the following help articles? Go through it and see whether it helps.

Getting cell values for selected rows client side
Extracting key values client-side
Getting RadGrid client object

Shinu.
Tags
Grid
Asked by
baqi
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or