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

Any action from grid result a blank page

3 Answers 36 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Hans van Rijnswoud
Top achievements
Rank 2
Hans van Rijnswoud asked on 20 Oct 2008, 11:19 AM
Hi,

I implemented a Grid inside an Iframe.
The grid is correctly showed inside the iframe.

But, for exemple, i want to navigate inside the grid with the pager or if i want to edit a record, i see wel the loadingpanel but after is the result a blank page inside the panel.

Any idee about this problem ?

Here is the code:

 

<form id="mainForm" runat="server">

 

 

<asp:Panel ID="PanelBody" runat="server" SkinID="PageBody">

 

 

<asp:Panel ID="PanelTitle" runat="server" SkinID="PageHeader">

 

</

 

asp:Panel>

 

<asp:Panel ID="PanelOverviewCountry" runat="server" SkinID="PageContent">

 

 

<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

 

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

 

 

<AjaxSettings>

 

 

<telerik:AjaxSetting AjaxControlID="RadGrid1">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

</AjaxSettings>

 

 

</telerik:RadAjaxManager>

 

 

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel" runat="server" Height="75px" Width="75px" Transparency="20">

 

 

<img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' style="border:0;" />

 

 

</telerik:RadAjaxLoadingPanel>

 

 

<telerik:RadGrid ID="RadGrid1" Skin="WebBlue" Width="99%"

 

 

AllowSorting="True" PageSize="18" AllowPaging="True"

 

 

AllowMultiRowSelection="False" runat="server" Gridlines="None"

 

 

AutoGenerateColumns="False" AllowAutomaticInserts="true" AllowAutomaticUpdates="true"

 

 

OnItemUpdated="RadGrid1_ItemUpdated" OnItemInserted="RadGrid1_ItemInserted"

 

 

OnDataBound="RadGrid1_DataBound" OnItemCreated="RadGrid1_ItemCreated" ShowGroupPanel="true">

 

 

 

<MasterTableView Width="99%" Summary="RadGrid table" AutoGenerateColumns="false"

 

 

commandItemDisplay="TopAndBottom" DataKeyNames="CountryId" EditMode="InPlace">

 

 

<Columns>

 

 

<telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn">

 

 

<ItemStyle CssClass="MyImageButton" />

 

 

</telerik:GridEditCommandColumn>

 

 

<telerik:GridBoundColumn DataField="CountryId" HeaderText="Id" ReadOnly="true" SortExpression="CountryId" UniqueName="CountryId" Visible="false"></telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="DisplayName" HeaderText="Display Name" SortExpression="DisplayName" UniqueName="DisplayName"></telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="Name" HeaderText="Name" SortExpression="name" UniqueName="Name"></telerik:GridBoundColumn>

 

 

 

</Columns>

 

 

<EditFormSettings ColumnNumber="2" CaptionDataField="DisplayName" CaptionFormatString="Edit properties of Country {0}">

 

 

<FormTableItemStyle Wrap="False"></FormTableItemStyle>

 

 

<FormCaptionStyle CssClass="EditFormHeader"></FormCaptionStyle>

 

 

<FormMainTableStyle GridLines="None" CellSpacing="0" CellPadding="3" BackColor="White" Width="100%" />

 

 

<FormTableStyle CellSpacing="0" CellPadding="2" Height="110px" BackColor="White" />

 

 

<FormTableAlternatingItemStyle Wrap="False"></FormTableAlternatingItemStyle>

 

 

<EditColumn ButtonType="ImageButton"

 

 

InsertText="Insert country" UpdateText="Update country" UniqueName="EditCommandColumn1" CancelText="Cancel edit">

 

 

</EditColumn>

 

 

</EditFormSettings>

 

 

</MasterTableView>

 

 

<PagerStyle Mode="NextPrevAndNumeric" />

 

 

</telerik:RadGrid>

 

 

 

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="WebBlue">

 

 

</telerik:RadWindowManager>

 

 

 

</asp:Panel>

 

</

 

asp:Panel>

 


Thanks for your help.

3 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 22 Oct 2008, 07:52 AM
Hello Edwin,

I suspect that there is a problem with the way the control is bound to data. I see neither NeedDataSource handler attached, nor a DataSource control used. Please, use one of these options to ensure that the control structure remains consistent.

Greetings,
Yavor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Hans van Rijnswoud
Top achievements
Rank 2
answered on 22 Oct 2008, 03:09 PM
Hi Yvor,

Right, i was forgot the RadGrid_NeedDataSource.
Thanks for your help.

I will try to found the time to learn a little bit more how to implement your product in my software because your sample are not enough complete or not very clear for me.
0
Daniel
Telerik team
answered on 22 Oct 2008, 03:24 PM
Hello Edwin,

You can find more information related to the subject below:
Advanced data-binding demo
Advanced Data-binding (using NeedDataSource event)

Let us know if you need more information.

Greetings,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Hans van Rijnswoud
Top achievements
Rank 2
Answers by
Yavor
Telerik team
Hans van Rijnswoud
Top achievements
Rank 2
Daniel
Telerik team
Share this question
or