Filter menu disappear with radajaxmanager

9 posts, 0 answers
  1. alfred
    alfred avatar
    25 posts
    Member since:
    Jan 2008

    Posted 11 Jul 2009 Link to this post

    I have a radgrid and a radajaxmanager (2008 Q3) in a page.

    It is a simple page, basically, it has the radgrid's NeedDataSource and an itemdatabound to generate the row numbering. 

    When the page is first load, the filtering function is fine.

    Then, if I perform a second filtering, the filter context memu does not appear, with script error:

    'null' is not or not an object 

    If I removed the radajaxmanager, second filtering is ok.

    The code:

     

    Protected Sub RadGrid1_NeedDataSource(ByVal source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs)  
            Dim myTable As New DataTable  
            myTable = dbSearchPart_Cost 
            If myTable Is Nothing Then  
                msgMessage.Text = "System error.  Cannot connect to database! " 
                GoTo error_exit  
            End If  
            RadGrid1.DataSource = myTable 
     
            GoTo exit_sub  
    error_exit:  
            msgMessage.CssClass = "ErrorText" 
    exit_sub:  
            myTable = Nothing 
        End Sub  
     
        Protected Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemDataBound  
            If (TypeOf e.Item Is GridDataItem) Then  
                Dim lbl As Label = CType(e.Item.FindControl("numberLabel"), Label)  
                lbl.Text = e.Item.ItemIndex + 1  
            End If  
        End Sub 

    The aspx page
    <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" GridLines="None" 
                        OnNeedDataSource="RadGrid1_NeedDataSource" Skin="Forest" EnableViewState="False" 
                        AllowPaging="True" PageSize="50" ShowStatusBar="True" AllowSorting="True" AllowFilteringByColumn="True"  > 
                        <HeaderContextMenu Skin="SkyBlue">  
                            <CollapseAnimation Duration="200" Type="OutQuint" /> 
                        </HeaderContextMenu> 
                        <MasterTableView EnableViewState="False"  DataKeyNames="PartID">  
                            <Columns> 
                                <telerik:GridBoundColumn DataField="PartID" UniqueName="ID" Visible="False">  
                                </telerik:GridBoundColumn> 
                                <telerik:GridTemplateColumn UniqueName="RowNo" HeaderText="Item" AllowFiltering="False">  
                                    <ItemTemplate> 
                                        <asp:Label ID="numberLabel" runat="server" Width="30px" /> 
                                    </ItemTemplate> 
                                    <HeaderStyle Width="30px" /> 
                                </telerik:GridTemplateColumn> 
                                <telerik:GridTemplateColumn UniqueName="chkItem" AllowFiltering="False">  
                                    <ItemTemplate> 
                                        <asp:CheckBox ID="chkItem" runat="server" Width="30px" /> 
                                    </ItemTemplate> 
                                    <HeaderStyle Width="30px" /> 
                                </telerik:GridTemplateColumn> 
                                <telerik:GridHyperLinkColumn Text="&lt;img src='icon/icon_write.gif' border='0'/&gt;" 
                                    DataNavigateUrlFields="PartID" DataNavigateUrlFormatString="~/index.aspx?mode=PartEdit&amp;opn=edit&amp;ID={0}" 
                                    UniqueName="Edit" AllowFiltering="False">  
                                    <HeaderStyle Width="30px" /> 
                                </telerik:GridHyperLinkColumn> 
                                <telerik:GridTemplateColumn DataField="PartID" AllowFiltering="False" UniqueName="Setup">  
                                    <ItemTemplate> 
                                        <img src="icon/icon_plus.gif" onclick="ShowNewWindow('<%# Eval("PartID") %>');return false;" 
                                            style="cursor: pointer;" /> 
                                    </ItemTemplate> 
                                    <HeaderStyle Width="30px" /> 
                                </telerik:GridTemplateColumn> 
                                <telerik:GridTemplateColumn UniqueName="PartActive" DataField="PartActive" SortExpression="PartActive" 
                                    FilterControlWidth="15px">  
                                    <ItemTemplate> 
                                        <asp:CheckBox ID="chkActive" Checked='<%# GetActive(Eval("PartActive")) %>' Enabled="false" 
                                            runat="server" /> 
                                    </ItemTemplate> 
                                    <HeaderStyle Width="30px" /> 
                                </telerik:GridTemplateColumn> 
                                <telerik:GridBoundColumn DataField="PartNo" UniqueName="PartNo" FilterControlWidth="60px">  
                                    <HeaderStyle Width="80px" /> 
                                </telerik:GridBoundColumn> 
                                 <telerik:GridBoundColumn DataField="PartName" UniqueName="PartName">  
                                    <HeaderStyle Width="200px" /> 
                                </telerik:GridBoundColumn> 
                                <telerik:GridTemplateColumn UniqueName="Desc" DataField="Desc1, Desc2, Desc3" 
                                    SortExpression="Desc1"   AllowFiltering="false">  
                                    <ItemTemplate> 
                                                                           <asp:Label ID="PartDesc" Text='<%#GetLength(Eval("Desc1") + Eval("Desc2") + Eval("Desc3"), 250)%>' 
                                            runat="server"></asp:Label> 
                                    </ItemTemplate> 
                                    <HeaderStyle Width="200px" /> 
                                </telerik:GridTemplateColumn> 
                                <telerik:GridTemplateColumn UniqueName="PartPrice" DataField="PriceCurrency1,PriceCurrency2, PriceCurrency3, PriceCurrency4, PriceCurrency5, Price1, Price2, Price3, Price4, Price5" SortExpression="Price1"  AllowFiltering="false">  
                                    <ItemTemplate> 
                                        <%# Eval("PriceCurrency1") %> 
                                        <%# Eval("Price1") %> 
                                        <br /> 
                                        <%# Eval("PriceCurrency2") %> 
                                        <%# Eval("Price2") %> 
                                        <br /> 
                                        <%# Eval("PriceCurrency3") %> 
                                        <%# Eval("Price3") %> 
                                        <br /> 
                                        <%# Eval("PriceCurrency4") %> 
                                        <%# Eval("Price4") %> 
                                        <br /> 
                                        <%# Eval("PriceCurrency5") %> 
                                        <%# Eval("Price5") %> 
                                    </ItemTemplate> 
                                    <HeaderStyle Width="100px" /> 
                                </telerik:GridTemplateColumn> 
                                <telerik:GridTemplateColumn UniqueName="PartCost" DataField="CostCurrency, Cost" SortExpression="Cost"  AllowFiltering="false">  
                                    <ItemTemplate> 
                                        <%# Eval("CostCurrency") %> 
                                        <%#Eval("Cost")%> 
                                    </ItemTemplate> 
                                    <HeaderStyle Width="100px" /> 
                                </telerik:GridTemplateColumn> 
                                <telerik:GridTemplateColumn UniqueName="PartQty" DataField="PartID" FilterControlWidth="60px"  AllowFiltering="false" > 
                                    <ItemTemplate> 
                                        <asp:Literal ID="PartQty" Text='<%# GetQty(Eval("PartID")) %>' runat="server"   /> 
                                    </ItemTemplate> 
                                    <HeaderStyle Width="100px" /> 
                                </telerik:GridTemplateColumn> 
                                <telerik:GridBoundColumn DataField="ProductGroup" UniqueName="ProductGroup" FilterControlWidth="50px">  
                                    <HeaderStyle Width="100px" /> 
                                </telerik:GridBoundColumn> 
                            </Columns> 
                            <PagerStyle Mode="NextPrevNumericAndAdvanced" /> 
                        </MasterTableView> 
                        <PagerStyle Mode="NumericPages" /> 
                        <FilterMenu Skin="Forest">  
                            <CollapseAnimation Duration="200" Type="OutQuint" /> 
                        </FilterMenu> 
                    </telerik:RadGrid> 

    And the ajaxmanager:
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnablePageHeadUpdate="False" 
        DefaultLoadingPanelID="RadAjaxLoadingPanel1">  
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="RadGrid1">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
              <telerik:AjaxSetting AjaxControlID="btnRefresh">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
     
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" 
        Width="75px">  
        <img alt="Loading..." src="icon/spinner.gif" style="border: 0px;" /> 
    </telerik:RadAjaxLoadingPanel> 
  2. alfred
    alfred avatar
    25 posts
    Member since:
    Jan 2008

    Posted 13 Jul 2009 Link to this post

    I have amended the post with code.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Veli
    Admin
    Veli avatar
    2002 posts

    Posted 14 Jul 2009 Link to this post

    Hello Alfred,

    You code seems fine and works OK when I tested it in a sample page. Can you tell us how can we reproduce the issues you are having?

    Also, I have noticed you are setting multiple comma-separated values for some column's DataField property. Note that this is not required, as with Eval() you can reference all data fields from the underlying data item. DataField needs to contain only one property name so that advanced RadGrid functionality is configured properly.

    Greetings,
    Veli
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. Terry Webster
    Terry Webster avatar
    48 posts
    Member since:
    Aug 2003

    Posted 14 Jul 2009 Link to this post

    I am having a similar issue as well.  I am running Q2 2009.

    In my code I have two radDatePicker controls and an ASP Button to apply parameters (Start and End Date) to my ObjectDatasource.  The ObjectDataSource is calling a stored procedure from a Dataset Table Adapter.  All the data is coming back as expected, but if i set my parameters to a date range that doesn't return rows, the RadGrid shows a footer and the Filters on the columns produce an "Object expected" error when I try to display the context menus.  I have added the below code to handle this behavior and it works as long as the data returned is 1 page or less of data.

        Private Sub RadGrid1_PreRender(ByVal sender As ObjectByVal e As System.EventArgs) Handles RadGrid1.PreRender  
            If RadGrid1.MasterTableView.Items.Count < RadGrid1.PageSize Then 
                If Page.IsPostBack Then RadGrid1.Rebind()  
            End If 
        End Sub 

    If i return more than 1 page of data, the error "Object expected" is reproduced and the filter buttons on the columns no longer display the context menus.

    I am at a loss.  Any ideas?

    Listed below is the full code for the page in question...

    drugerror.aspx:
    <%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Admin/AdminSite.Master" CodeBehind="drugerror.aspx.vb" Inherits="Frontend.drugerror" %> 
    <asp:Content ID="Content1" ContentPlaceHolderID="cphHdr" runat="server">  
    </asp:Content> 
    <asp:Content   
        ID="Content2"   
        ContentPlaceHolderID="cphMain"   
        runat="server">  
     
        <telerik:RadAjaxManagerProxy   
            ID="RadAjaxManagerProxy1"   
            runat="server">  
            <AjaxSettings> 
                <telerik:AjaxSetting   
                    AjaxControlID="btnSubmit">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl   
                            ControlID="RadGrid1"   
                            LoadingPanelID="ralp1" 
                            /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
                <telerik:AjaxSetting AjaxControlID="RadGrid1">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl   
                            ControlID="RadGrid1"   
                            LoadingPanelID="ralp1" 
                            /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManagerProxy>     
     
        <div> 
            <h4>Administration - Drug Error Report</h4> 
            <table><tr>  
                <td valign="middle">  
                    <asp:Label ID="lblStartDate" runat="server" Text="Start date:"></asp:Label> 
                </td> 
                <td valign="middle">  
                    <telerik:RadDatePicker ID="rdpStartDate" runat="server"></telerik:RadDatePicker> 
                </td> 
                <td valign="middle">  
                    <asp:Label ID="lblEndDate" runat="server" Text="End date:"></asp:Label> 
                </td> 
                <td valign="middle">  
                    <telerik:RadDatePicker ID="rdpEndDate" runat="server"></telerik:RadDatePicker> 
                </td> 
                <td valign="middle">  
                    <asp:Button ID="btnSubmit" runat="server" Text="Submit" /> 
                </td> 
            </tr></table>  
              
            <br /> 
     
            <telerik:RadAjaxLoadingPanel ID="ralp1" runat="server">  
            </telerik:RadAjaxLoadingPanel> 
            <telerik:RadGrid   
                ID="RadGrid1"   
                runat="server"   
                DataSourceID="ObjectDataSource1"   
                GridLines="None"   
                AllowFilteringByColumn="True"   
                AllowPaging="True"   
                AllowSorting="True"   
                AutoGenerateColumns="False" 
                AllowMultiRowSelection="True"   
                ShowGroupPanel="True">  
                <MasterTableView   
                    DataSourceID="ObjectDataSource1" 
                    AutoGenerateColumns="False"   
                    AllowFilteringByColumn="true" 
                    > 
                    <Columns> 
                        <telerik:GridBoundColumn   
                            DataField="DateCreated"   
                            DataType="System.DateTime"   
                            HeaderText="Date Created"   
                            SortExpression="DateCreated"   
                            UniqueName="DateCreated">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn   
                            DataField="FileName"   
                            HeaderText="File Name"   
                            SortExpression="FileName"   
                            UniqueName="FileName">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn   
                            DataField="ErrorMessage"   
                            HeaderText="Error Message"   
                            SortExpression="ErrorMessage"   
                            UniqueName="ErrorMessage">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn   
                            DataField="NDC"   
                            HeaderText="NDC"   
                            SortExpression="NDC"   
                            UniqueName="NDC">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn   
                            DataField="DrugName"   
                            HeaderText="Drug Name"   
                            SortExpression="DrugName"   
                            UniqueName="DrugName">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn   
                            DataField="GenericName"   
                            HeaderText="Generic Name"   
                            SortExpression="GenericName"   
                            UniqueName="GenericName">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn   
                            DataField="GPICode"   
                            HeaderText="GPI Code"   
                            SortExpression="GPICode"   
                            UniqueName="GPICode">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn   
                            DataField="GC3Code"   
                            HeaderText="GC3 Code"   
                            SortExpression="GC3Code"   
                            UniqueName="GC3Code">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn   
                            DataField="OTCIOndicator"   
                            HeaderText="OTC Indicator"   
                            SortExpression="OTCIOndicator"   
                            UniqueName="OTCIOndicator">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn   
                            DataField="MONYCode"   
                            HeaderText="MONY Code"   
                            SortExpression="MONYCode"   
                            UniqueName="MONYCode">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn   
                            DataField="DEAClassCode"   
                            HeaderText="DEA Class Code"   
                            SortExpression="DEAClassCode"   
                            UniqueName="DEAClassCode">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn   
                            DataField="TeeCode"   
                            HeaderText="Tee Code"   
                            SortExpression="TeeCode"   
                            UniqueName="TeeCode">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn   
                            DataField="DosageCode"   
                            HeaderText="Dosage Code"   
                            SortExpression="DosageCode"   
                            UniqueName="DosageCode">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn   
                            DataField="StrengthValue"   
                            HeaderText="Strength Value"   
                            SortExpression="StrengthValue"   
                            UniqueName="StrengthValue">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn   
                            DataField="StrengthUnits"   
                            HeaderText="Strength Units"   
                            SortExpression="StrengthUnits"   
                            UniqueName="StrengthUnits">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn   
                            DataField="MACPrice"   
                            HeaderText="MAC Price"   
                            SortExpression="MACPrice"   
                            UniqueName="MACPrice">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn   
                            DataField="AWP"   
                            HeaderText="AWP"   
                            SortExpression="AWP"   
                            UniqueName="AWP">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn   
                            DataField="DESI"   
                            HeaderText="DESI"   
                            SortExpression="DESI"   
                            UniqueName="DESI">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn   
                            DataField="ExtraDrug"   
                            HeaderText="Extra Drug"   
                            SortExpression="ExtraDrug"   
                            UniqueName="ExtraDrug">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn   
                            DataField="ManuName"   
                            HeaderText="Manu Name"   
                            SortExpression="ManuName"   
                            UniqueName="ManuName">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn   
                            DataField="TherClassCode"   
                            HeaderText="TherClass Code"   
                            SortExpression="TherClassCode"   
                            UniqueName="TherClassCode">  
                        </telerik:GridBoundColumn> 
                    </Columns> 
                    <RowIndicatorColumn> 
                        <HeaderStyle Width="20px"></HeaderStyle> 
                    </RowIndicatorColumn> 
                    <ExpandCollapseColumn> 
                        <HeaderStyle Width="20px"></HeaderStyle> 
                    </ExpandCollapseColumn> 
                </MasterTableView> 
                <GroupingSettings   
                    CaseSensitive="False" /> 
                <ClientSettings   
                    EnableRowHoverStyle="true" 
                    AllowDragToGroup="True" 
                    > 
                    <Scrolling   
                        AllowScroll="True"   
                        UseStaticHeaders="True" /> 
                    <Selecting   
                        AllowRowSelect="True"   
                        EnableDragToSelectRows="true" /> 
                </ClientSettings> 
            </telerik:RadGrid> 
        </div> 
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server"   
            OldValuesParameterFormatString="original_{0}" SelectMethod="GetData"   
            TypeName="Frontend.dsAdminReportsTableAdapters.spAdmin_GetErrors_DrugTableAdapter">  
            <SelectParameters> 
                <asp:ControlParameter ControlID="rdpStartDate" Name="StartDate"   
                    PropertyName="SelectedDate" Type="DateTime" /> 
                <asp:ControlParameter ControlID="rdpEndDate" Name="EndDate"   
                    PropertyName="SelectedDate" Type="DateTime" /> 
            </SelectParameters> 
        </asp:ObjectDataSource> 
     
    </asp:Content> 
     

    drugerror.aspx.vb
    Public Partial Class drugerror  
        Inherits System.Web.UI.Page  
     
        Protected Sub Page_Load(ByVal sender As ObjectByVal e As System.EventArgs) Handles Me.Load  
            If Not Page.IsPostBack Then 
                rdpStartDate.SelectedDate = DateAdd(DateInterval.Day, -1, Now).ToShortDateString  
                rdpEndDate.SelectedDate = DateAdd(DateInterval.Day, -1, Now).ToShortDateString  
            End If 
        End Sub 
     
        Private Sub RadGrid1_PreRender(ByVal sender As ObjectByVal e As System.EventArgs) Handles RadGrid1.PreRender  
            If RadGrid1.MasterTableView.Items.Count < RadGrid1.PageSize Then 
                If Page.IsPostBack Then RadGrid1.Rebind()  
            End If 
        End Sub 
    End Class 

    Thanks
  6. Terry Webster
    Terry Webster avatar
    48 posts
    Member since:
    Aug 2003

    Posted 14 Jul 2009 Link to this post

    When I have more than 1 page of data, I have now also noticed that when i drag a column to the header, I no longer get the arrows indicating where to drop.
  7. Terry Webster
    Terry Webster avatar
    48 posts
    Member since:
    Aug 2003

    Posted 14 Jul 2009 Link to this post

    I did a little more debugging and i found that the generated code is different for the filtermenu

    code that works:
    <UL class="rmActive rmVertical rmGroup rmLevel1" style="cssFloat: left">  
    <LI class="rmItem rmFirst" _itemTypeName="Telerik.Web.UI.RadMenuItem"><class="rmLink " style="WIDTH: 207px" href="http://hsdashboarddev/admin/Reports/drugerror.aspx#"><SPAN class=rmText>NoFilter</SPAN></A></LI> 
    <LI class=rmItem _itemTypeName="Telerik.Web.UI.RadMenuItem"><class="rmLink " style="WIDTH: 207px" href="http://hsdashboarddev/admin/Reports/drugerror.aspx#"><SPAN class=rmText>Contains</SPAN></A></LI> 
    <LI class=rmItem _itemTypeName="Telerik.Web.UI.RadMenuItem"><class="rmLink " style="WIDTH: 207px" href="http://hsdashboarddev/admin/Reports/drugerror.aspx#"><SPAN class=rmText>DoesNotContain</SPAN></A></LI> 
    <LI class=rmItem _itemTypeName="Telerik.Web.UI.RadMenuItem"><class="rmLink " style="WIDTH: 207px" href="http://hsdashboarddev/admin/Reports/drugerror.aspx#"><SPAN class=rmText>StartsWith</SPAN></A></LI> 
    <LI class=rmItem _itemTypeName="Telerik.Web.UI.RadMenuItem"><class="rmLink " style="WIDTH: 207px" href="http://hsdashboarddev/admin/Reports/drugerror.aspx#"><SPAN class=rmText>EndsWith</SPAN></A></LI> 
    <LI class=rmItem _itemTypeName="Telerik.Web.UI.RadMenuItem"><class="rmLink " style="WIDTH: 207px" href="http://hsdashboarddev/admin/Reports/drugerror.aspx#"><SPAN class=rmText>EqualTo</SPAN></A></LI> 
    <LI class=rmItem _itemTypeName="Telerik.Web.UI.RadMenuItem"><class="rmLink " style="WIDTH: 207px" href="http://hsdashboarddev/admin/Reports/drugerror.aspx#"><SPAN class=rmText>NotEqualTo</SPAN></A></LI> 
    <LI class=rmItem _itemTypeName="Telerik.Web.UI.RadMenuItem"><class="rmLink " style="WIDTH: 207px" href="http://hsdashboarddev/admin/Reports/drugerror.aspx#"><SPAN class=rmText>GreaterThan</SPAN></A></LI> 
    <LI class=rmItem _itemTypeName="Telerik.Web.UI.RadMenuItem"><class="rmLink " style="WIDTH: 207px" href="http://hsdashboarddev/admin/Reports/drugerror.aspx#"><SPAN class=rmText>LessThan</SPAN></A></LI> 
    <LI class=rmItem _itemTypeName="Telerik.Web.UI.RadMenuItem"><class="rmLink " style="WIDTH: 207px" href="http://hsdashboarddev/admin/Reports/drugerror.aspx#"><SPAN class=rmText>GreaterThanOrEqualTo</SPAN></A></LI> 
    <LI class=rmItem _itemTypeName="Telerik.Web.UI.RadMenuItem"><class="rmLink " style="WIDTH: 207px" href="http://hsdashboarddev/admin/Reports/drugerror.aspx#"><SPAN class=rmText>LessThanOrEqualTo</SPAN></A></LI> 
    <LI class=rmItem _itemTypeName="Telerik.Web.UI.RadMenuItem"><class="rmLink " style="WIDTH: 207px" href="http://hsdashboarddev/admin/Reports/drugerror.aspx#"><SPAN class=rmText>Between</SPAN></A></LI> 
    <LI class=rmItem _itemTypeName="Telerik.Web.UI.RadMenuItem"><class="rmLink " style="WIDTH: 207px" href="http://hsdashboarddev/admin/Reports/drugerror.aspx#"><SPAN class=rmText>NotBetween</SPAN></A></LI> 
    <LI class=rmItem _itemTypeName="Telerik.Web.UI.RadMenuItem"><class="rmLink " style="WIDTH: 207px" href="http://hsdashboarddev/admin/Reports/drugerror.aspx#"><SPAN class=rmText>IsEmpty</SPAN></A></LI> 
    <LI class=rmItem _itemTypeName="Telerik.Web.UI.RadMenuItem"><class="rmLink " style="WIDTH: 207px" href="http://hsdashboarddev/admin/Reports/drugerror.aspx#"><SPAN class=rmText>NotIsEmpty</SPAN></A></LI> 
    <LI class=rmItem _itemTypeName="Telerik.Web.UI.RadMenuItem"><class="rmLink " style="WIDTH: 207px" href="http://hsdashboarddev/admin/Reports/drugerror.aspx#"><SPAN class=rmText>IsNull</SPAN></A></LI> 
    <LI class=rmItem _itemTypeName="Telerik.Web.UI.RadMenuItem"><class="rmLink " style="WIDTH: 207px" href="http://hsdashboarddev/admin/Reports/drugerror.aspx#"><SPAN class=rmText>NotIsNull</SPAN></A></LI> 
    <LI class="rmItem rmLast" _itemTypeName="Telerik.Web.UI.RadMenuItem"><class="rmLink " style="WIDTH: 207px" href="http://hsdashboarddev/admin/Reports/drugerror.aspx#"><SPAN class=rmText>Custom</SPAN></A></LI></UL

    code that doesn't work:
    <UL class="rmActive rmVertical rmGroup rmLevel1">  
    <LI class="rmItem rmFirst"><class="rmLink " href="http://hsdashboarddev/admin/Reports/drugerror.aspx#"><SPAN class=rmText>NoFilter</SPAN></A></LI> 
    <LI class=rmItem><class="rmLink " href="http://hsdashboarddev/admin/Reports/drugerror.aspx#"><SPAN class=rmText>Contains</SPAN></A></LI> 
    <LI class=rmItem><class="rmLink " href="http://hsdashboarddev/admin/Reports/drugerror.aspx#"><SPAN class=rmText>DoesNotContain</SPAN></A></LI> 
    <LI class=rmItem><class="rmLink " href="http://hsdashboarddev/admin/Reports/drugerror.aspx#"><SPAN class=rmText>StartsWith</SPAN></A></LI> 
    <LI class=rmItem><class="rmLink " href="http://hsdashboarddev/admin/Reports/drugerror.aspx#"><SPAN class=rmText>EndsWith</SPAN></A></LI> 
    <LI class=rmItem><class="rmLink " href="http://hsdashboarddev/admin/Reports/drugerror.aspx#"><SPAN class=rmText>EqualTo</SPAN></A></LI> 
    <LI class=rmItem><class="rmLink " href="http://hsdashboarddev/admin/Reports/drugerror.aspx#"><SPAN class=rmText>NotEqualTo</SPAN></A></LI> 
    <LI class=rmItem><class="rmLink " href="http://hsdashboarddev/admin/Reports/drugerror.aspx#"><SPAN class=rmText>GreaterThan</SPAN></A></LI> 
    <LI class=rmItem><class="rmLink " href="http://hsdashboarddev/admin/Reports/drugerror.aspx#"><SPAN class=rmText>LessThan</SPAN></A></LI> 
    <LI class=rmItem><class="rmLink " href="http://hsdashboarddev/admin/Reports/drugerror.aspx#"><SPAN class=rmText>GreaterThanOrEqualTo</SPAN></A></LI> 
    <LI class=rmItem><class="rmLink " href="http://hsdashboarddev/admin/Reports/drugerror.aspx#"><SPAN class=rmText>LessThanOrEqualTo</SPAN></A></LI> 
    <LI class=rmItem><class="rmLink " href="http://hsdashboarddev/admin/Reports/drugerror.aspx#"><SPAN class=rmText>Between</SPAN></A></LI> 
    <LI class=rmItem><class="rmLink " href="http://hsdashboarddev/admin/Reports/drugerror.aspx#"><SPAN class=rmText>NotBetween</SPAN></A></LI> 
    <LI class=rmItem><class="rmLink " href="http://hsdashboarddev/admin/Reports/drugerror.aspx#"><SPAN class=rmText>IsEmpty</SPAN></A></LI> 
    <LI class=rmItem><class="rmLink " href="http://hsdashboarddev/admin/Reports/drugerror.aspx#"><SPAN class=rmText>NotIsEmpty</SPAN></A></LI> 
    <LI class=rmItem><class="rmLink " href="http://hsdashboarddev/admin/Reports/drugerror.aspx#"><SPAN class=rmText>IsNull</SPAN></A></LI> 
    <LI class=rmItem><class="rmLink " href="http://hsdashboarddev/admin/Reports/drugerror.aspx#"><SPAN class=rmText>NotIsNull</SPAN></A></LI> 
    <LI class="rmItem rmLast"><class="rmLink " href="http://hsdashboarddev/admin/Reports/drugerror.aspx#"><SPAN class=rmText>Custom</SPAN></A></LI></UL

    Any idea why this would be changing?  Does this relate to the issue?
  8. Terry Webster
    Terry Webster avatar
    48 posts
    Member since:
    Aug 2003

    Posted 14 Jul 2009 Link to this post

    I have found this issue with my code.  In the master page i had a scriptmanager that was referencing js files that were not found.  I removed the bad links. I also changed the button onclick event to rebind the radgrid and removed the prerender code that was listed below for the radgrid.

    Everything now works as it should.
  9. alfred
    alfred avatar
    25 posts
    Member since:
    Jan 2008

    Posted 14 Jul 2009 Link to this post

    Dear Veli

    Thanks.  Actually I tested the scenario.  I found that:
    1. If the radgrid is loaded in an ASPX page, it is OK.
    2. If the radgrid is loaded in an ASCX, it is not OK.

    BTW, I know one data field name is enough but I am just too lazy to remove them.

    Pls. download my testing code to see if anything I coded it wrong.

    My Testing Code
  10. Veli
    Admin
    Veli avatar
    2002 posts

    Posted 16 Jul 2009 Link to this post

    Hello Alfred,

    As we have escalated your problem discussion to a support ticket, I suggest we continue with the support communication instead of this forum post.

    For our readers, I just want to note that if there is an issue with a RadGrid inside another RadGrid's NestedViewTemplate firing the parent server-side events on click or row drop, this is probably due to the event bubbling from the inner to the outer grid. To fix this phenomenon, we need to cancel  the event bubbling mechanism in the DOM by attaching a client-side onclick or onkeydown (for drag and drop) handler to the RadGrid wrapper <div> element:

    <telerik:RadGrid ID="RadGrid1" runat="server" 
    onclick="if(!event){event = window.event}; event.cancelBubble = true; if(event.stopPropagation){event.stopPropagation()}"
    </telerik:RadGrid> 


    Greetings,
    Veli
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017