Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
280 views
This is how I load rad window

<script type="text/javascript">
        function openRadWin(code, bookingdate, category) {
            radopen("MyPage.aspx", "RadWindow1");
        }
</script>
 
 <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true"
        VisibleStatusbar="false">
        <Windows>
            <telerik:RadWindow ID="RadWindow1" runat="server" ShowContentDuringLoad="false" Width="400px"
                Height="400px" Title="Telerik RadWindow" Behaviors="Default" >
            </telerik:RadWindow>
        </Windows>
</telerik:RadWindowManager>

The rad window pop-up and it show "MyPage.aspx" correctly . But , In "MyPage.aspx" , I have a RadGrid with "AllowFilteringByColumn="true" " . When I filter RadGrid , it shows me the error

Server Error in '/' Application.
Failed to load viewstate.  The control tree into which viewstate
is being loaded must match the control tree that was used to save
viewstate during the previous request.  For example, when adding
controls dynamically, the controls added during a post-back must
match the type and position of the controls added during the initial request.

How can I fix it ?
Marin Bratanov
Telerik team
 answered on 16 Aug 2013
3 answers
200 views
Has anyone had any success with displaying a RadToolTip on the ModalPopupExtender of the AjaxControlToolkit?

In IE, it works as expected, but in Firefox the RadToolTip consistently displays undernead the modal popup.

I have tried to set the z-index on the RadToolTip explicitly to be higher than the modalpopup's script, but this doesn't do the job.
Marin Bratanov
Telerik team
 answered on 16 Aug 2013
3 answers
455 views
I have a page that runs in a RadWindow.  There is a RadButton on this page, that has both an OnClientClicking event (which sets a Tab control index) and an OnClick event which fires logic on the server through the RadAjaxManager.

In Chrome and IE, the OnClientClicking fires, then the OnClick makes the postback.

On Firefox however, the OnClientClicking is the end of the line.  OnClick does not get fired.

If I run this same page directly, instead of from the RadWindow - it works as expected in FireFox...

This is my OnClientClicking routine - pretty simple - I can't see why Firefox would stop.  I get no errors in the Console, etc...

function setResultsTab(sender, args)
{
    var tabStrip = $find('<%=tabCriteria.ClientID%>');
    var tab = tabStrip.findTabByValue('1');
    tab.select();
}
<telerik:RadButton ID="bAdvancedSearch" runat="server" Text="Search" SkinID="defaultButtonLargeSearch"
    OnClick="click_AdvancedSearch" meta:resourcekey="bAdvancedSearchResource2" OnClientClicking="setResultsTab"/>
Danail Vasilev
Telerik team
 answered on 16 Aug 2013
3 answers
120 views
Hey, I know this should have been solved already, just want some quick tips to figure out what is wrong in my settings of the telerik Radgrid control.

the page using a master page, and inside one telerik ajaxpanel. here is the aspx code. and the issue is the top on the scroll bar missing a inline style for margin-right: 17px, but without any clue why it is missing. the screenshots are attached as well.

<%@ Page Language="C#" MasterPageFile="~/MasterPages/LOLA.Master" AutoEventWireup="true" CodeBehind="ReportCellTypePropertyManagement.aspx.cs" Inherits="TSi.LOLA.ReportCellTypePropertyManagement" Culture="auto" meta:resourcekey="Page" UICulture="auto" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <%--<link href="Styles\LabelManagement.css" type="text/css" rel="stylesheet" id="CSSFileCT" />--%>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <div class="Wrapper" style="margin-left:10px;margin-right:10px;">
        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
            <div style="float: left; width: 100%">
                <tsi:TSiDropDownList runat="server" ID="DropDown_CellTypes" Meta:resourceKey="DropDown_CellTypes" DropDown-CssClass="TSIDropDownListStyle"
                    DataTextField="Name" DataValueField="ID" AutoPostBack="false"  DropDownHeight="180" Skin="Sunset" />
                <tsi:TSiButton runat="server" ID="btnGetMapForCellType" meta:resourcekey="Button_GetMapForCellType"
                    RadButton-Width="9%" OnClick="GetMapForCellType_Click" ButtonType="SkinnedButton" Skin="Sunset" />
            </div>
            <div style="float: left; width: 100%">
                <tsi:TSiDropDownList runat="server" ID="DropDown_CellProperties" DefaultMessage="<%$ Resources:DropDown_CellProperties.DefaultMessage %>" DropDown-CssClass="TSIDropDownListStyle"
                    DataTextField="Name" DataValueField="ID" AutoPostBack="false" DropDownHeight="180" Skin="Sunset" />
                <tsi:TSiButton runat="server" ID="btnGetMapForProperty" meta:resourcekey="Button_GetMapForProperty"
                    RadButton-Width="9%" OnClick="GetMapForProperty_Click" ButtonType="SkinnedButton" Skin="Sunset" />
            </div>
            <br />
            <br />
            <br />
            <div class="SearchResults">
                <%--<tsi:TSIGrid runat="server" />--%>
                <telerik:RadGrid runat="server" ID="Grid_CellTypePropertyMap" ClientIDMode="Static"
                    AutoGenerateColumns="false" OnItemDataBound="GridCellTypePropertyMap_ItemDataBound" Skin="Sunset" >
                    <ClientSettings>
                        <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                    </ClientSettings>
 
                    <MasterTableView DataKeyNames="ID" ClientDataKeyNames="ID" TableLayout="Fixed">
                        <Columns>
                            <telerik:GridTemplateColumn HeaderText="<%$ Resources:ColumnAttached.HeaderText %>" UniqueName="AttachedCol" >
                                <ItemTemplate>
                                    <asp:CheckBox ID="chbAttached" runat="server" ClientIDMode="AutoID" ></asp:CheckBox>
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridBoundColumn DataField="CellTypeName" HeaderText="<%$ Resources:ColumnCellTypeName.HeaderText %>" UniqueName="CellTypeNameCol" />
                            <telerik:GridBoundColumn DataField="CellTypeID" HeaderText="<%$ Resources:ColumnCellTypeID.HeaderText %>" UniqueName="CellTypeIDCol" />
                            <telerik:GridBoundColumn DataField="PropertyName" HeaderText="<%$ Resources:ColumnCellPropertyName.HeaderText %>" UniqueName="PropertyNameCol" />
                            <telerik:GridBoundColumn DataField="PropertyID" HeaderText="<%$ Resources:ColumnCellPropertyID.HeaderText %>" UniqueName="PropertyIDCol" />
                            <telerik:GridTemplateColumn HeaderText="<%$ Resources:ColumnDisplayOrder.HeaderText %>" UniqueName="DisplayOrderCol" >
                                <ItemTemplate>
                                    <asp:TextBox ID="txtDisplayOrder" runat="server" Width="26px" ></asp:TextBox>
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                        </Columns>
                    </MasterTableView>
                </telerik:RadGrid>
                <br />
                <br />
                <tsi:TSiButton runat="server" ID="Button_Save" Text="<%$ Resources:Button_Save.Text %>"
                    RadButton-Width="9%" OnClick="SaveCelltypePropertyMap_Click" Visible="false" />
            </div>
            <div>
                <br />
                <br />
                <asp:PlaceHolder runat="server" ID="CellTypePropertySaveDetailsTable" Visible="true">
                    <asp:Literal ID="LabelCellTypePropertyDetail" runat="server" />
                </asp:PlaceHolder>
            </div>
        </telerik:RadAjaxPanel>
        <script type="text/javascript">
        </script>
    </div>
 
</asp:Content>
Venelin
Telerik team
 answered on 16 Aug 2013
1 answer
352 views
Hi
I have an ASP.Net MasterPage, with a custom control ("uc1') that has a rad date picker in it ( "myCal')

I want to add a jquery change event on my aspx page but the below code wont work


$(document).ready(function(){

 $('#myCal').change(function(){
        alert('Found');
 });
 
});


Thanks for the help
Shinu
Top achievements
Rank 2
 answered on 16 Aug 2013
1 answer
274 views
Hi..i have a question about radmonthyearpicker control..if i set MinDate='2010-07-15' and MaxDate='2013-09-20'..it's ok..but all months are enabled always not the same than years..it's possible disable the other month by depending selected year?..for example if i click 2010 year only enabled valid months
Shinu
Top achievements
Rank 2
 answered on 16 Aug 2013
1 answer
279 views
Hi All,

I need to put a fdropdown filter in the radgrid. I tried to follow the radgrid demo. But in my case, i need to bind the filter dropdown only in codebehind.

The grid is bound in the needdatasource with an arraylist.

the aspx code is like below,

<telerik:GridTemplateColumn UniqueName="Column1" SortExpression="Column1" HeaderStyle-ForeColor="#245E9E"
HeaderText="Column 1" ItemStyle-Wrap="true" Resizable="true" AutoPostBackOnFilter="true"
CurrentFilterFunction="EqualTo" DataField="Column1">
<FilterTemplate>
<telerik:RadComboBox ID=
"RadComboBoxColumn1" DataTextField="Column1" DataValueField="Column1"
Height="200px" AppendDataBoundItems="true" 
SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("Column1").CurrentFilterValue %>' 
runat="server" OnClientSelectedIndexChanged="TitleIndexChanged">
<Items>
<telerik:RadComboBoxItem Text=
"All" />
</Items>
</telerik:RadComboBox>
<telerik:RadScriptBlock ID=
"RadScriptBlock1" runat="server">
<script type=
"text/javascript">
function TitleIndexChanged(sender, args)
{
var tableView = $find(
"<%# ((GridItem)Container).OwnerTableView.ClientID %>");
tableView.filter(
"Column1", args.get_item().get_value(), "EqualTo");
}
</script>
</telerik:RadScriptBlock>
</FilterTemplate>
<ItemTemplate>
<asp:Label ID=
"LblColumn1" Text='<%#Eval("Column1")%>' runat="server">
</asp:Label>
<asp:Label ID=
"LblDataSourceType" Text='<%#Eval("DataSourceType")%>' runat="server" Visible="false">
</asp:Label>
</ItemTemplate>
<HeaderStyle Width=
"280px" />
<ItemStyle Font-Names=
"Arial" Font-Size="11px" Wrap="true" />
</telerik:GridTemplateColumn>


Can anybody please help on this an explain me how can i bind the filter dropdown from codebehind?

Thanks in advance

Thanks,
Mahesh O A


Eyup
Telerik team
 answered on 16 Aug 2013
5 answers
209 views
     <ClientSettings AllowKeyboardNavigation="true"  EnablePostBackOnRowClick="true" >
   <ClientEvents />
   <KeyboardNavigationSettings EnableKeyboardShortcuts="true" />
   <Selecting AllowRowSelect="true"  />
</ClientSettings>
Good day  there seems to be a problem with my code, I know the keyboard navigation works(browsing through the grid list using up and down keys) but the mouseclick doesnt work(not executing the postback). I have a function that executes on postback. and also can I change the enter keys function by executing my function instead of editing the data.
Eyup
Telerik team
 answered on 16 Aug 2013
1 answer
255 views
Hi,

I have an issue related to the post back triggered by the command items of radgrid.

Scenario is I have a web page that contains two rad grids they both have their command item template inside the rad-toolbar.

both grids have Add, update, delete on their command item templates whose visibility are decided by the no of record chosen from the respective grid.


Problem - 
When I click say one command item from radgrid1 than it forces the complete page post-back and due to this the command item visibility 
on radgrid 2 gets reset .
So is there any way that both grids should not disturb the each other say command items visibility.

Please help


thanks

Eyup
Telerik team
 answered on 16 Aug 2013
1 answer
293 views
 Hi,
      Is there any possible to find the dropped event of radgrid when value dragged from another control.

Example:
Drag a selected Text  from textbox and drop on radgrid. (Find the drop and drop event 2 different controls)
Drag event from text box and Drop event of radgrid





Thanks
Konstantin Dikov
Telerik team
 answered on 16 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?