or
| <telerik:RadGrid ID="RadGrid" runat="server" AllowPaging="True" AllowSorting = "True" PageSize="10" AutoGenerateColumns="false" GridLines="None" OnNeedDataSource="RadGrid_NeedDataSource"> |
| <PagerStyle Visible="True" /> |
| <MasterTableView TableLayout="Fixed" AllowMultiColumnSorting="true" > |
| </MasterTableView> |
| <SortingSettings SortedBackColor="Azure" EnableSkinSortStyles="false" /> |
| <ClientSettings> |
| <Selecting AllowRowSelect="true" /> |
| </ClientSettings> |
| </telerik:RadGrid> |
function ValidateFn()
{
var clk;
clk = radconfirm(
'Do you want to accept changes done by ABC?',callbackFn,310,100,null,'Title');
alert(clk);
}
function callbackFn(arg)
{
//Here i need to store this variable in a hidden field which i will be using in server side code.
alert(arg);
}
<asp:ImageButton ID="ImageButton1" OnClientClick="ValidateFn(); return false;" runat="server" />
But when i click on image button then radconfirm window itself is not coming. this problem is occurring only in case when the page is inherited from master page. In case of simple page it is working fine.
Please help me to short out this problem.
waiting for reply!
| <browsers> |
| <browser refID="Default"> |
| <controlAdapters> |
| <adapter controlType="System.Web.UI.Page" adapterType="Telerik.Web.UI.RadHiddenFieldPageStateCompression" /> |
| </controlAdapters> |
| </browser> |
| </browsers> |
| <telerik:RadGrid ID="GridKenticoUser" runat="server" EnableDragToSelectRows="True" |
| AllowFilteringByColumn="false" AllowSorting="True" AutoGenerateColumns="false" |
| AllowMultiRowSelection="True" PageSize="500" Width="99%" OnNeedDataSource="GridKenticoUser_NeedDataSource" |
| OnItemCommand="GridKenticoUser_ItemCommand"> |
| <MasterTableView Width="100%" AllowPaging="true" DataKeyNames="UzivatelID, LektorID, Uzivatel" PagerStyle-Position="Bottom"> |
| <HeaderStyle HorizontalAlign="Left" /> |
| <ItemStyle HorizontalAlign="Left" /> |
| <AlternatingItemStyle HorizontalAlign="Left" /> |
| <PagerStyle AlwaysVisible="true" Position="Bottom" /> |
| <Columns> |
| <telerik:GridClientSelectColumn> |
| <HeaderStyle Width="35" /> |
| </telerik:GridClientSelectColumn> |
| <telerik:GridBoundColumn DataField="Uzivatel" HeaderText="Uživatel" AutoPostBackOnFilter="true" |
| AllowFiltering="false" ShowFilterIcon="false" FilterControlWidth="100%" CurrentFilterFunction="Contains"> |
| <HeaderStyle Width="150" /> |
| </telerik:GridBoundColumn> |
| <telerik:GridDateTimeColumn DataField="Zalozen" HeaderText="Založen" AutoPostBackOnFilter="true" |
| AllowFiltering="false" ShowFilterIcon="false" FilterControlWidth="100%" CurrentFilterFunction="Contains" |
| DataFormatString="{0:dd.MM.yy}"> |
| <HeaderStyle Width="60" /> |
| </telerik:GridDateTimeColumn> |
| <telerik:GridBoundColumn DataField="LektorFullName" HeaderText="Lektor" AutoPostBackOnFilter="true" |
| AllowFiltering="false" ShowFilterIcon="false" FilterControlWidth="100%" CurrentFilterFunction="Contains"> |
| <HeaderStyle Width="150" /> |
| </telerik:GridBoundColumn> |
| <telerik:GridTemplateColumn AllowFiltering="false" HeaderText="Akce"> |
| <ItemTemplate> |
| <div style="padding-left: 10px;"> |
| <asp:ImageButton runat="server" ID="BtnParuj" CommandName="Paruj" ImageUrl="~/App_Themes/GopasRed/Images/16x16/ok.png" |
| Visible='<%# (String.IsNullOrEmpty(Eval("LektorID").ToString()))?true:false %>' |
| ToolTip="Zpárovat" /> |
| <asp:ImageButton runat="server" ID="ImageButton1" CommandName="OdParuj" ImageUrl="~/App_Themes/GopasRed/Images/16x16/cancel.png" |
| Visible='<%# (!String.IsNullOrEmpty(Eval("LektorID").ToString()))?true:false %>' |
| ToolTip="ZruÅ¡it párovánÃ" /> |
| </div> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
| <telerik:GridTemplateColumn AllowFiltering="false"> |
| </telerik:GridTemplateColumn> |
| </Columns> |
| </MasterTableView> |
| <ClientSettings> |
| <ClientEvents /> |
| <Scrolling AllowScroll="True" UseStaticHeaders="true" SaveScrollPosition="True" ScrollHeight="390" /> |
| <Selecting AllowRowSelect="true" /> |
| </ClientSettings> |
| <GroupingSettings CaseSensitive="false" /> |
| </telerik:RadGrid> |