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

RadGrid cannot rebind when close RadWindow for second time

6 Answers 106 Views
Window
This is a migrated thread and some comments may be shown as answers.
sunitha
Top achievements
Rank 1
sunitha asked on 27 Oct 2010, 02:27 PM
Hi

I'm using RadWindow to edit and insert records for RadGrid. The RadWindow can open and close but it will not re-bind the RadGrid for second time when close that opened RadWindow.When i click editlink for the second time radwindow is opening and Updation of the record is happening and radwindow is closing,but radgrid in parent page is not refreshing for the second time in Mozilla browser.

Everything is working fine in IE,the problem is with the Mozilla

Please help

6 Answers, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 02 Nov 2010, 06:44 AM
Hello Sunitha,

I believe that this online demo will be of help for you. In case that you have already checked the demo and still experience the same problem, could you please open a new support ticket and send me your project? I will check it and do my best to provide a working solution as soon as possible.

Greetings,
Fiko
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
sunitha
Top achievements
Rank 1
answered on 02 Nov 2010, 01:09 PM
Hi
 With the help of that online demo i developed my page ,but where is the problem iam  unable to understand,its not working in mozilla.
here iam giving the page that is troubling me

<%

@ Page Language="VB" MasterPageFile="demomaster.master" AutoEventWireup="false"

 

 

CodeFile="Userslist.aspx.vb" Inherits="micrologic.Userslist" Title="Untitled Page" %>

 

<%

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

 

<

 

asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

 

<%

--javascript code to popup--%>

 

 

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">

 

 

<script type="text/javascript">

 

 

function ShowEditForm(id, rowIndex)

 

{

 

var grid = $find("<%= vwSystemUsersGridView.ClientID %>");

 

 

 

var rowControl = grid.get_masterTableView().get_dataItems()[rowIndex].get_element();

 

grid.get_masterTableView().selectItem(rowControl,

true);

 

 

window.radopen(

"Useredit.aspx?ID_User=" + id, "UserListDialog");

 

 

return false;

 

}

 

function ShowInsertForm()

 

{

window.radopen(

"Usersadd.aspx", "UserListDialog");

 

 

return false;

 

}

 

function ShowCopyForm(id, rowIndex)

 

{

window.radopen(

"Usersadd.aspx?ID_User=" + id, "UserListDialog");

 

 

return false;

 

}

 

function ShowViewForm(id, rowIndex)

 

{

window.radopen(

"Usersview.aspx?ID_User=" + id, "UserListDialog");

 

 

return false;

 

}

 

function refreshGrid(arg)

 

{

 

if(!arg)

 

{

$find(

"<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");

 

}

 

else

 

{

$find(

"<%= RadAjaxManager1.ClientID %>").ajaxRequest("RebindAndNavigate");

 

}

}

 

 

</script>

 

 

</telerik:RadCodeBlock>

 

 

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

 

 

<AjaxSettings>

 

 

<telerik:AjaxSetting AjaxControlID="RadAjaxManager1">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="vwSystemUsersGridView" LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

</AjaxSettings>

 

 

</telerik:RadAjaxManager>

 

 

<script type='text/javascript'>

 

 

function ew_ClearvwSystemUsersSrchForm() {

 

ew_ResetElement(ew.Controls[

'vwSystemUsers_txtSearch']);

 

ew_ResetRadioButton(ew.Controls[

'vwSystemUsers_rdoSearchType'], 0);

 

}

 

</script>

 

 

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">

 

 

</telerik:RadAjaxLoadingPanel>

 

<%

-- <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="100%" Width="100%"

 

LoadingPanelID="RadAjaxLoadingPanel1">--

 

%>

 

 

<asp:PlaceHolder ID="pnlSearch" runat="server">

 

 

<asp:Panel ID="Panel1" DefaultButton="btnQuickSearch" runat="server">

 

 

<p />

 

 

<table border="0" cellspacing="0" cellpadding="0">

 

 

<tr>

 

 

<td>

 

 

<img src="images/Basic-srch.gif" /></td>

 

 

</tr>

 

 

</table>

 

 

<asp:Table runat="server" BorderWidth="1" BorderColor="#CCCCCC" CellSpacing="1" CellPadding="4"

 

 

Width="100%" Height="40" BackColor="#EEEEEE" ID="vwSystemUsers">

 

 

<asp:TableRow>

 

 

<asp:TableCell>

 

 

<asp:Table ID="Table1" runat="server">

 

 

</asp:Table>

 

 

</asp:TableCell>

 

 

</asp:TableRow>

 

 

<asp:TableRow>

 

 

<asp:TableCell>

 

 

<asp:TextBox ID="txtSearch" runat="server" CssClass="aspnetmaker" BackColor="#FFFFCC"></asp:TextBox>

 

 

<asp:Button ID="btnQuickSearch" OnClick="btnQuickSearch_Click" runat="server" CssClass="aspnetmaker"

 

 

Text="Search (*)" UseSubmitBehavior="false" />

 

 

<input type="button" id="btnReset" onclick="ew_ClearvwSystemUsersSrchForm();" class="aspnetmaker"

 

 

value="Reset" />

 

 

<asp:LinkButton ID="btnClearSearch" OnClick="btnClearSearch_Click" OnClientClick="ew_ClearvwSystemUsersSrchForm();"

 

 

runat="server" CssClass="aspnetmaker" Text="Show all"></asp:LinkButton>&nbsp;<asp:HyperLink

 

 

ID="lnkSearch" runat="server" CssClass="aspnetmaker" Text="Advanced Search" NavigateUrl="vwSystemUserssearch.aspx"></asp:HyperLink>

 

 

</asp:TableCell>

 

 

</asp:TableRow>

 

 

<asp:TableRow>

 

 

<asp:TableCell>

 

 

<asp:RadioButtonList ID="rdoSearchType" runat="server" CssClass="aspnetmakerlist"

 

 

RepeatDirection="Horizontal">

 

 

<asp:ListItem Text="Exact phrase" Value="" Selected="True"></asp:ListItem>

 

 

<asp:ListItem Text="All words" Value="AND"></asp:ListItem>

 

 

<asp:ListItem Text="Any word" Value="OR"></asp:ListItem>

 

 

</asp:RadioButtonList>

 

 

</asp:TableCell>

 

 

</asp:TableRow>

 

 

</asp:Table>

 

 

</asp:Panel>

 

 

</asp:PlaceHolder>

 

 

<asp:PlaceHolder ID="pnlMessage" runat="server" Visible="false">

 

 

<p>

 

 

<asp:Label ID="lblMessage" ForeColor="#FF0000" CssClass="aspnetmaker" runat="server" /></p>

 

 

</asp:PlaceHolder>

 

 

<asp:Button ID="mngBtnExcel" Width="150px" Text="Export to Excel" OnClick="btnExcel_Click"

 

 

runat="server" />

 

 

<p>

 

 

<asp:Label ID="lblReturnUrl" Visible="False" Text="Userslist.aspx" CssClass="aspnetmaker"

 

 

runat="server" /></p>

 

 

<telerik:RadGrid ID="vwSystemUsersGridView" runat="server" AllowPaging="True" AllowSorting="true"

 

 

Width="100%" AllowAutomaticDeletes="true" AllowAutomaticInserts="true" AllowAutomaticUpdates="true"

 

 

DataSourceID="vwSystemUsersDataSource" GridLines="None" PageSize="10" CssClass="ewTable"

 

 

OnItemUpdated="vwSystemUsersGridView_ItemUpdated" OnItemCreated="vwSystemUsersGridView_ItemCreated"

 

 

OnInit="vwSystemUsersGridView_Init" OnPageIndexChanged="vwSystemUsersGridView_PageIndexChanged"

 

 

OnLoad="vwSystemUsersGridView_Load" OnUnload="vwSystemUsersGridView_Unload">

 

 

<HeaderStyle Wrap="False" CssClass="ewTableHeaderList" Height="28px" HorizontalAlign="Left" />

 

 

<ItemStyle CssClass="ewTableRow" />

 

 

<AlternatingItemStyle CssClass="ewTableRow" />

 

 

<EditItemStyle CssClass="ewTableEditRow" />

 

 

<FooterStyle CssClass="ewTableFooter" />

 

 

<SelectedItemStyle CssClass="ewTableSelectRow" />

 

 

<PagerStyle CssClass="ewTablePager" Mode="NextPrevNumericAndAdvanced" Position="Top" />

 

 

<MasterTableView EditMode="InPlace" OverrideDataSourceControlSorting="True" AutoGenerateColumns="False"

 

 

AllowMultiColumnSorting="True" DataKeyNames="ID_User" ClientDataKeyNames="ID_User"

 

 

Width="100%" CommandItemDisplay="Top" DataSourceID="vwSystemUsersDataSource">

 

 

<Columns>

 

 

<telerik:GridTemplateColumn HeaderText="User Name" SortExpression="sUserName" UniqueName="sUserName">

 

 

<ItemStyle Wrap="False" />

 

 

<ItemTemplate>

 

 

<asp:HyperLink ID="x_sUserName" CssClass="aspnetmaker" runat="server" />

 

 

</ItemTemplate>

 

 

<EditItemTemplate>

 

 

<asp:TextBox ID="x_sUserName" Columns="30" MaxLength="15" CssClass="aspnetmaker"

 

 

runat="server" />

 

 

<asp:RequiredFieldValidator ID="vx_sUserName" CssClass="aspnetmaker" runat="server"

 

 

ControlToValidate="x_sUserName" ErrorMessage="Please enter required field - User Name"

 

 

ForeColor="Red" Display="None" Text="*" />

 

 

</EditItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn HeaderText="Password" SortExpression="sPassword" UniqueName="sPassword">

 

 

<ItemStyle Wrap="True" />

 

 

<ItemTemplate>

 

 

<asp:Label ID="x_sPassword" CssClass="aspnetmaker" Text="********" runat="server" />

 

 

</ItemTemplate>

 

 

<EditItemTemplate>

 

 

<asp:TextBox ID="x_sPassword" TextMode="Password" Columns="30" MaxLength="20" CssClass="aspnetmaker"

 

 

runat="server" />

 

 

</EditItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn HeaderText="POS Code" SortExpression="sUserCode" UniqueName="sUserCode">

 

 

<ItemStyle Wrap="False" />

 

 

<ItemTemplate>

 

 

<asp:Label ID="x_sUserCode" CssClass="aspnetmaker" runat="server" />

 

 

</ItemTemplate>

 

 

<EditItemTemplate>

 

 

<asp:TextBox ID="x_sUserCode" Columns="30" MaxLength="10" CssClass="aspnetmaker"

 

 

runat="server" />

 

 

</EditItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn HeaderText="Show as Greater" SortExpression="bGreeterOnly"

 

 

UniqueName="bGreeterOnly" EditFormColumnIndex="1">

 

 

<ItemStyle Wrap="True" />

 

 

<ItemTemplate>

 

 

<asp:Label ID="x_bGreeterOnly" CssClass="aspnetmaker" runat="server" />

 

 

</ItemTemplate>

 

 

<EditItemTemplate>

 

 

<asp:RadioButtonList ID="x_bGreeterOnly" RepeatDirection="Horizontal" RepeatColumns="5"

 

 

CssClass="aspnetmakerlist" runat="server">

 

 

<asp:ListItem Value="1">Yes</asp:ListItem>

 

 

<asp:ListItem Value="0">No</asp:ListItem>

 

 

</asp:RadioButtonList>

 

 

<asp:HiddenField ID="hx_bGreeterOnly" runat="server" />

 

 

</EditItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn HeaderText="User Level" SortExpression="sUserLevel" UniqueName="sUserLevel">

 

 

<ItemStyle Wrap="False" />

 

 

<ItemTemplate>

 

 

<asp:Label ID="x_sUserLevel" CssClass="aspnetmaker" runat="server" />

 

 

</ItemTemplate>

 

 

<EditItemTemplate>

 

 

<asp:DropDownList ID="x_sUserLevel" CssClass="aspnetmaker" runat="server">

 

 

</asp:DropDownList>

 

 

</EditItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn HeaderText="Active" SortExpression="iActive" UniqueName="iActive"

 

 

EditFormColumnIndex="1">

 

 

<ItemStyle Wrap="True" />

 

 

<ItemTemplate>

 

 

<asp:Label ID="x_iActive" CssClass="aspnetmaker" runat="server" />

 

 

</ItemTemplate>

 

 

<EditItemTemplate>

 

 

<asp:RadioButtonList ID="x_iActive" RepeatDirection="Horizontal" RepeatColumns="5"

 

 

CssClass="aspnetmakerlist" runat="server">

 

 

<asp:ListItem Value="1">Yes</asp:ListItem>

 

 

<asp:ListItem Value="0">No</asp:ListItem>

 

 

</asp:RadioButtonList>

 

 

<asp:HiddenField ID="hx_iActive" runat="server" />

 

 

</EditItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn UniqueName="inlineedit">

 

 

<ItemStyle Width="16px" Wrap="true" />

 

 

<ItemTemplate>

 

 

<asp:LinkButton ID="InlineEdit" runat="server" CssClass="aspnetmaker" CommandName="Edit"

 

 

Text="<img src='images/inlineedit.gif' alt='Inline Edit' title='Inline Edit' border='0'>" />

 

 

</ItemTemplate>

 

 

<EditItemTemplate>

 

 

<asp:LinkButton ID="Cancel" runat="server" CssClass="aspnetmaker" CommandName="Cancel"

 

 

Text="<img src='images/cancel.gif' alt='Cancel' title='Cancel' border='0'>" CausesValidation="false" />

 

 

<asp:LinkButton ID="Update" runat="server" CssClass="aspnetmaker" CommandName="Update"

 

 

Text="<img src='images/update.gif' alt='Update' title='Update' border='0'>" />

 

 

</EditItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn UniqueName="TemplateViewColumn">

 

 

<ItemStyle Width="16px" Wrap="False" />

 

 

<ItemTemplate>

 

 

<asp:HyperLink ID="ViewLink" CssClass="aspnetmaker" runat="server" Text="<img src='images/browse.gif' alt='View' title='View' border='0'>" />

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn UniqueName="TemplateEditColumn">

 

 

<ItemStyle Width="16px" Wrap="False" />

 

 

<ItemTemplate>

 

 

<asp:HyperLink ID="EditLink" CssClass="aspnetmaker" runat="server" Text="<img src='images/edit.gif' alt='Edit' title='Edit' border='0'>" />

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn UniqueName="TemplateCopyColumn">

 

 

<ItemStyle Width="16px" Wrap="False" />

 

 

<ItemTemplate>

 

 

<asp:HyperLink ID="CopyLink" CssClass="aspnetmaker" runat="server" Text="<img src='images/copy.gif' alt='Copy' title='Copy' border='0'>" />

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn">

 

 

<HeaderTemplate>

 

 

<input id="DeleteAll" type="checkbox" runat="server" />

 

 

</HeaderTemplate>

 

 

<ItemTemplate>

 

 

<input id="DeleteCheckBox" name="key_d" type="checkbox" runat="server" />

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

</Columns>

 

 

<EditFormSettings CaptionDataField="sUserName" CaptionFormatString="Edit User {0}">

 

 

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

 

 

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

 

 

<EditColumn ButtonType="ImageButton" InsertText="Insert Order" UpdateText="Update record"

 

 

UniqueName="EditCommandColumn1" CancelText="Cancel edit">

 

 

</EditColumn>

 

 

<FormTableButtonRowStyle HorizontalAlign="Right" CssClass="EditFormButtonRow"></FormTableButtonRowStyle>

 

 

<PopUpSettings Modal="True" />

 

 

</EditFormSettings>

 

 

<CommandItemTemplate>

 

 

<a href="#" onclick="return ShowInsertForm();">Add New Record</a>

 

 

</CommandItemTemplate>

 

 

<CommandItemSettings ExportToCsvText="Export to csv" RefreshText="Refresh" ShowExportToCsvButton="true" />

 

 

</MasterTableView>

 

 

<ClientSettings>

 

 

<Selecting AllowRowSelect="True" />

 

 

</ClientSettings>

 

 

</telerik:RadGrid>

 

 

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

 

 

<Windows>

 

 

<telerik:RadWindow ID="UserListDialog" runat="server" Height="400px" Width="400px"

 

 

Left="100px" ReloadOnShow="true" ShowContentDuringLoad="false" Modal="true" />

 

 

</Windows>

 

 

</telerik:RadWindowManager>

 

 

<asp:ObjectDataSource ID="vwSystemUsersDataSource" TypeName="micrologic.vwSystemUsersdal"

 

 

DataObjectTypeName="micrologic.vwSystemUsersrow" SelectMethod="LoadList" UpdateMethod="Update"

 

 

DeleteMethod="Delete" OnSelecting="vwSystemUsersDataSource_Selecting" OnSelected="vwSystemUsersDataSource_Selected"

 

 

OnUpdating="vwSystemUsersDataSource_Updating" OnUpdated="vwSystemUsersDataSource_Updated"

 

 

OnDeleting="vwSystemUsersDataSource_Deleting" OnDeleted="vwSystemUsersDataSource_Deleted"

 

 

EnablePaging="True" SelectCountMethod="GetRowsCount" MaximumRowsParameterName="PageSize"

 

 

StartRowIndexParameterName="StartRow" runat="server"></asp:ObjectDataSource>

 

 

<asp:Button ID="btnDelete" runat="server" Text="DELETE SELECTED" OnClick="btnDelete_Click"

 

 

UseSubmitBehavior="false" />

 

<%

-- </telerik:RadAjaxPanel>--%>

 

</

 

asp:Content>

 



Please help me as iam in urgent need of it.

0
Accepted
Georgi Tunev
Telerik team
answered on 05 Nov 2010, 10:38 AM
Hi sunitha,

Your code looks OK and at this point we cannot tell what the reason for the problem might be. Please open a support ticket and send us a sample project so we could investigate further. Once we are able to reproduce the problem locally, we will do our best to provide you with a solution.


Kind regards,
Georgi Tunev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
sunitha
Top achievements
Rank 1
answered on 10 Nov 2010, 06:08 AM
Thanks For your response ,


but right we are working in a trial version , so I'm unable to send you the support ticket , can you please tell me the way to rectify the problem without support ticket , or is there any way send the support ticket to you?


thanks In Advance ,
sunitha
0
sunitha
Top achievements
Rank 1
answered on 12 Nov 2010, 07:03 AM
Hi

Iam waiting for your response
Please help me
If this issue get resolved in trial version,we will upgrade our application to register telerik version


Thanks
Sunitha
0
Georgi Tunev
Telerik team
answered on 12 Nov 2010, 03:06 PM
Hi sunitha,

Please send the zipped project to clientservice at telerik dot com along with a reference to this forum thread. We will check it and do our best to help.


Regards,
Georgi Tunev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Window
Asked by
sunitha
Top achievements
Rank 1
Answers by
Fiko
Telerik team
sunitha
Top achievements
Rank 1
Georgi Tunev
Telerik team
Share this question
or