Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
219 views
Issue 1
Hi, I added "RenderMode" as "Auto" in my telerik grid.  
When I changed to "Responsive Mode" in Firefox browser, the grid move to the bottom of the page. Can anyone tell me how to fix it?

Issue 2
The grid filtering function of mobile mode didn't perform correctly.After writing the name want to filter, there was no button to filter that name.
Nelson
Top achievements
Rank 1
 asked on 24 May 2018
4 answers
526 views
Happy new year to all.


I am using RadGrid control on a web page which used to work fine. I have recently updated to the latest version and now gets scripting error when changing filter text. Records are filtered for the first time but if a new text is entered in the filter column and enter key is pressed to re-filter records then following error message is displayed
Unhandled exception at line 33, column 1 in script block
 
0x800a138f - Microsoft JScript runtime error: Unable to get value of the property '_filterNoDelay': object is null or undefined
 
The error is in the onchange function
 
function onchange(event)
{
$find("ctl00_ContentPlaceHolder1_jobauthorisationawaiting_userControl_RadGrid1_ctl00")._filterNoDelay("ctl00_ContentPlaceHolder1_jobauthorisationawaiting_userControl_RadGrid1_ctl00_ctl02_ctl01_FilterTextBox_DepotDescription","DepotDescription")
}

Grid is defined as below
 
telerik:RadGrid ID="RadGrid1" OnNeedDataSource="RadGrid1_NeedDataSource" Skin="Office2010Blue"
AutoGenerateColumns="False" AllowSorting="True" PageSize="18" Height="430" Width="100%" EnableLinqExpressions="false"
AllowPaging="False" AllowMultiRowSelection="False" runat="server" Gridlines="None" ShowFooter="true" AllowFilteringByColumn="true" 
OnItemCreated="RadGrid1_ItemCreated">
    <GroupingSettings CaseSensitive="false"></GroupingSettings>
 
 <MasterTableView Name="JobsAwaitingAuthorisation" AllowMultiColumnSorting="false" Width="100%" Summary="Jobs awaiting authorisation" DataKeyNames="ItemID,PurOrderRef,OrderNo" ClientDataKeyNames="ItemID">
     <Columns>
        <telerik:GridBoundColumn HeaderStyle-Width="90" UniqueName="BookedDate" SortExpression="BookedDate" DataField="BookedDate"
            HeaderText="Job Date" DataFormatString="{0:dd/MM/yyyy}" FilterControlWidth="52" FooterText="Job Count:" FooterStyle-HorizontalAlign="Right" AutoPostBackOnFilter="false">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn AutoPostBackOnFilter="true" HeaderStyle-Width="88" UniqueName="RegNo" SortExpression="RegNo" HeaderText="Reg Num" DataField="RegNo" DataType="System.String"
             FooterText=" " Aggregate="Count" FilterControlWidth="50" FooterStyle-HorizontalAlign="Left" ShowFilterIcon="false">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn HeaderStyle-Width="86" FilterControlWidth="60" UniqueName="DepotDescription" SortExpression="DepotDescription" HeaderText="Depot" DataField="DepotDescription"
             AutoPostBackOnFilter="true" ShowFilterIcon="false" CurrentFilterFunction="Contains">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn AutoPostBackOnFilter="true" HeaderStyle-Width="208" UniqueName="Description" SortExpression="Description" HeaderText="Job Details"
            DataField="Description" FooterText="Total:"   FilterControlWidth="175" FooterStyle-HorizontalAlign="Right">
        </telerik:GridBoundColumn>
        <telerik:GridNumericColumn  AutoPostBackOnFilter="true" HeaderStyle-Width="65" UniqueName="Parts" SortExpression="Parts"  DataField="Parts"
            HeaderText="Parts" DataFormatString="{0:C}"  FilterControlWidth="30"
            ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" Aggregate="Sum" FooterStyle-HorizontalAlign="Right">
        </telerik:GridNumericColumn>
        <telerik:GridNumericColumn  AutoPostBackOnFilter="true" HeaderStyle-Width="65" UniqueName="Labour" SortExpression="Labour"  DataField="Labour"
            HeaderText="Labour" DataFormatString="{0:C}"  FilterControlWidth="30"
            ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" Aggregate="Sum" FooterStyle-HorizontalAlign="Right">
        </telerik:GridNumericColumn>
        <telerik:GridNumericColumn  AutoPostBackOnFilter="true" HeaderStyle-Width="80" UniqueName="RCSubTotal" SortExpression="RCSubTotal"  DataField="RCSubTotal"
            HeaderText="Total" DataFormatString="{0:C}"  FilterControlWidth="46"
            ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" Aggregate="Sum" FooterStyle-HorizontalAlign="Right">
        </telerik:GridNumericColumn>
        <telerik:GridTemplateColumn AutoPostBackOnFilter="true" HeaderStyle-Width="92" UniqueName="OrderNo" SortExpression="OrderNo" FilterControlWidth="55" HeaderText="Order No" DataField="OrderNo" FooterStyle-Width="110">
            <ItemTemplate>
                <%# Eval("OrderNo")%>
            </ItemTemplate>
            <FooterTemplate>
                <telerik:RadButton ID="btnApproveSelected" runat="server" Type="Button"
                    Text="Approve" Tooltip="Approve Selected Jobs" Width="50" OnClientClicked="ApproveSelectedJobs" autopostback="false">
                </telerik:RadButton>
                <img style="float:right;cursor:pointer" src="style/images/print.png" border="0" title="Print Jobs Authorised Today" onclick="PrintRadGrid();return false;" />
            </FooterTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridClientSelectColumn HeaderStyle-Width="25"  HeaderStyle-CssClass="rgRowSelected" HeaderTooltip="Select a row by clicking the tick box" HeaderText="Sel" UniqueName="ClientSelectColumn" />
        <telerik:GridTemplateColumn UniqueName="TemplateEditColumn" HeaderStyle-Width="20" AllowFiltering="false">
            <ItemTemplate>
                <asp:Image ID="ApproveImage" runat="server" Width="16" Height="16" ImageUrl="Update.gif" ToolTip="Approve Job" style="cursor:pointer;vertical-align:top" />
                <asp:Image ID="QueryImage" runat="server" Width="16" Height="16" ImageUrl="Cancel.gif" ToolTip="Query Job" style="cursor:pointer" />
            </ItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridBoundColumn UniqueName="ItemID" SortExpression="ItemID" HeaderText="ItemID" DataField="ItemID" Display="false" ReadOnly="True">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn UniqueName="PurOrderRef" SortExpression="PurOrderRef" HeaderText="PurOrderRef" DataField="PurOrderRef" Display="false" ReadOnly="True">
        </telerik:GridBoundColumn>
    </Columns>
 </MasterTableView>
 <ClientSettings EnableRowHoverStyle="true">
    <ClientEvents OnGridCreated="GridCreated" OnFilterMenuShowing="filterMenuShowing" />
    <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True">
    </Scrolling>
    <Selecting AllowRowSelect="True" />
</ClientSettings>
<FilterMenu OnClientShown="MenuShowing" />
<PagerStyle Mode="NextPrevAndNumeric" />
</telerik:RadGrid>
Zeev
Top achievements
Rank 1
 answered on 23 May 2018
4 answers
217 views
I have a RadGrid and a RadPanelBar in my content page.i'm using RadAjaxLoadingPanel for the grid.inside RadPanelBar i have two dropdowns based on the selection made by the dropdowns i have loaded the radGrid.i have a checkBox column in the radGrid.what i need is in need to preserve the checkBox state on the dropdown selection change which cause a postback currently.following are some important parts of my code and please help me with the issue.

<telerik:RadAjaxManagerProxy ID="AjaxManagerProxy1" runat="server">
    <AjaxSettings>
        
            <telerik:AjaxSetting AjaxControlID="Panel1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Panel1" LoadingPanelID="RadAjaxLoadingPanel1" />
                 </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadPanelBar">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="ddlDAreaFacility" />
                <telerik:AjaxUpdatedControl ControlID="ddlDCus" />
            </UpdatedControls>
        </telerik:AjaxSetting>        
      </AjaxSettings>
</telerik:RadAjaxManagerProxy>




   <telerik:RadPanelBar ID="pnlSearchL2" runat="server" Width="98%" 
            Font-Name="Eras Medium ITC" Font-Size="Small" Skin="Office2007" 
            Font-Names="Eras Medium ITC">
            <Items>
               <telerik:RadPanelItem Text="Search Level 2" runat="server" 
                    Font-Names="Eras Medium ITC">
           <ContentTemplate>
        
             <div id="divDesignSearchL2" runat="server">
        
   <table width="100%">
            <tr>
                <td>
                    <asp:Label ID="lblDAreaFacility" runat="server" BackColor="White" 
                        Text="ABS(Area/Facility)" Font-Name="Eras Medium ITC" Font-Size="X-Small" 
                        Font-Names="Eras Medium ITC"/>
               </td>
                <td style="font-family: 'Eras Medium ITC'; font-size: x-small">
                   <telerik:RadComboBox ID="ddlDAreaFacility" runat="server" 
                         Skin="Office2007" 
                        onselectedindexchanged="ddlDAreaFacility_SelectedIndexChanged" 
                        Font-Name="Eras Medium ITC" Font-Size="X-Small" AutoPostBack="true">
               </telerik:RadComboBox>
                    
                </td>
                <td class="tdWidth">
                     <asp:Label ID="lblDCus" runat="server" BackColor="White" Text="Custom Field" 
                         Font-Names="Eras Medium ITC" Font-Size="X-Small"/>
                    </td>
                <td>
                   <telerik:RadComboBox ID="ddlDCus" runat="server" Skin="Office2007" 
                        Font-Name="Eras Medium ITC" Font-Size="X-Small" 
                         AutoPostBack="true">
                        
               </telerik:RadComboBox>
</telerik:RadPanelBar>




<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" 
        <fieldset class="module1">
        <asp:Panel ID="Panel1" runat="server" HorizontalAlign="Center" >
      
        <telerik:RadGrid ID="gridSearchL3" runat="server" AllowPagg="True" AutoGenerateColumns="true"  
             GridLines="None" Skin="Office2007" Height="415px" 
             OnExcelMLExportRowCreated="gridSearchL3_ExcelMLExportRowCreated" OnExcelMLExportStylesCreated="gridSearchL3_ExcelMLExportStylesCreated"
            OnGridExporting="gridSearchL3_GridExporting"  oninit="gridSearchL3_Init" OnNeedDataSource="RadGrid1_NeedDataSource"
            Font-Names="Eras Medium ITC" Font-Size="Small" PageSize="50" 
             AllowFilteringByColumn="True" onitemcreated="gridSearchL3_ItemCreated" 
            
             onselectedindexchanged="gridSearchL3_SelectedIndexChanged" 
             AllowSorting="True" ShowStatusBar="True" AllowPaging="True">
               <FilterItemStyle Font-Names="Eras Medium ITC" Font-Size="XX-Small" />
               <GroupingSettings CaseSensitive="False" />
            <ExportSettings Excel-Format="ExcelML" ExportOnlyData="True" 
                FileName="PinC Group" IgnorePaging="True" OpenInNewWindow="True">
                <Excel Format="ExcelML" />
            </ExportSettings>
            <ClientSettings>
                <ClientEvents OnRowClick="onRowClick" OnRowSelected="RowSelected" />
                <Selecting AllowRowSelect="True" />
                <Scrolling AllowScroll="True" UseStaticHeaders="True" />
            </ClientSettings>
            <AlternatingItemStyle Font-Names="Eras Medium ITC" Font-Size="X-Small" />
            <GroupHeaderItemStyle Font-Names="Eras Medium ITC" Font-Size="X-Small" />
            <SortingSettings EnableSkinSortStyles="false" /> 
            <MasterTableView ClientDataKeyNames="Document #,Revision,hID,ID" Font-Names="Eras Medium ITC" 
                   Font-Size="X-Small">
           
                <CommandItemSettings ExportToPdfText="Export to Pdf" />


                <Columns>


                    <telerik:GridTemplateColumn AllowFiltering="false" UniqueName="template" >
                        <ItemTemplate>
                            <asp:CheckBox ID="CheckBox1" runat="server" OnCheckedChanged="ToggleRowSelection" AutoPostBack="true"/>
                        </ItemTemplate>
                        <HeaderTemplate>
                            <asp:CheckBox ID="CheckBoxHeader" OnCheckedChanged="Header_checkedChange" runat="server" AutoPostBack="true"/>
                        </HeaderTemplate>
                    </telerik:GridTemplateColumn>
                
                    <telerik:GridButtonColumn  Text="View" CommandName="Select" UniqueName="LinkColumn"></telerik:GridButtonColumn>
                   
                </Columns>
                <ItemStyle Font-Names="Eras Medium ITC" Font-Size="X-Small" />
                <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                <FilterItemStyle Font-Names="Eras Medium ITC" Font-Size="X-Small" />
            </MasterTableView>
            <EditItemStyle Font-Names="Eras Medium ITC" Font-Size="X-Small" />
            <FooterStyle Font-Names="Eras Medium ITC" Font-Size="X-Small" />
            <HeaderStyle Font-Names="Eras Medium ITC" Font-Size="X-Small" />
            <FilterItemStyle Font-Names="Eras Medium ITC" Font-Size="X-Small" />
               <CommandItemStyle Font-Names="Eras Medium ITC" Font-Size="X-Small" />
               <ActiveItemStyle Font-Names="Eras Medium ITC" Font-Size="X-Small" />
               <ItemStyle Font-Names="Eras Medium ITC" Font-Size="X-Small" />
               <PagerStyle Font-Names="Eras Medium ITC" Font-Size="X-Small" 
                   HorizontalAlign="Left" Mode="NextPrevNumericAndAdvanced" />
               <SelectedItemStyle Font-Names="Eras Medium ITC" Font-Size="X-Small" />
               <FilterMenu Font-Names="Eras Medium ITC" Font-Size="X-Small" 
                Skin="Office2007" EnableRoundedCorners="True">
               </FilterMenu>
               <HeaderContextMenu Font-Names="Eras Medium ITC" Font-Size="X-Small" 
                   Skin="Simple">
               </HeaderContextMenu>
               </telerik:RadGrid>
        
        </asp:Panel>
    </fieldset>

         

franklin arturo
Top achievements
Rank 1
 answered on 23 May 2018
5 answers
311 views
I'm working with the pivot grid trying to have it show sub-groups that do not have a certain status as well as only showing two particular values "Pending" & "Granted"

Dataset:
DataTable table = new DataTable();
table.Columns.Add("Product And Business Group");
table.Columns.Add("Platform Or SubGroup");
table.Columns.Add("Status");
 
table.Rows.Add("Core", "Core Sub Group", "Granted");
table.Rows.Add("Core", "Core Sub Group", "Pending");
table.Rows.Add("Core", "Sub Group should be shown in Core", "Some Other Value");
 
table.Rows.Add("Non-Core", "Non-Core Sub Group", "Granted");
table.Rows.Add("Non-Core", "Non-Core Sub Group", "Pending");
table.Rows.Add("Non-Core", "Sub Group should be shown in Non-Core", "zAnother value");

Grid:
<telerik:RadPivotGrid ID="RadPivotGrid1" 
                    PageSize="20" runat="server"
                    AllowFiltering="true" TotalsSettings-GrandTotalsVisibility="None" RowHeaderZoneText="Business Group" DataSourceID="ObjectDataSource1" Skin="Windows7" EmptyValue="0">
                    <TotalsSettings GrandTotalsVisibility="RowsOnly" ColumnsSubTotalsPosition="Last" RowsSubTotalsPosition="Last" />
                    <ConfigurationPanelSettings/>
                    <RowHeaderCellStyle Width="200px" />
                    <Fields>
                        <telerik:PivotGridRowField Caption="Product And Business Group" DataField="Product And Business Group" >
                        </telerik:PivotGridRowField>
                        <telerik:PivotGridRowField Caption="Platform or sub-group" DataField="Platform Or SubGroup" ShowGroupsWhenNoData="false">
                        </telerik:PivotGridRowField>
                        <telerik:PivotGridColumnField Caption="Status" DataField="Status" UniqueName="Status">
                        </telerik:PivotGridColumnField>
                        <telerik:PivotGridAggregateField Aggregate="Count" DataField="Status" DataFormatString="{0:D0}" UniqueName="StatusCount" >
                            <TotalFormat Axis="Rows" Level="0" SortOrder="Ascending" TotalFunction="NoCalculation" />
                        </telerik:PivotGridAggregateField>
                    </Fields>
                    <ClientSettings>
                        <Scrolling AllowVerticalScroll="false" ScrollHeight="600px" />
                    </ClientSettings>
 
                </telerik:RadPivotGrid>

Filter:
RadPivotGrid1.SetFilterIncludes("Status", new string[] { "Pending", "Granted" }, true);

I've tried playing around with the ShowGroupsWhenNoData property but that adds the sub groups to all of the groups, which I do not want (Pivot_Filtered_ShowGroupsWhenNoData.PNG)


Expected outcome: Pivot_Filtered_Expected.PNG (Attached)
Actual outcome: Pivot_Filtered.PNG (Attached)

To summarize
I'm trying to achieve the view in Pivot_Filtered_Expected.PNG which is only showing the "Pending" and "Granted" columns. I also want to display sub-groups that do not have one of those status (so their values would be 0 and 0 respectively).

The problems I'm having now is it either shows the values that I do not want (if I don't have a filter) or it includes the sub-groups in the wrong business group (ShowGroupsWhenNoData).

Any advice on accomplishing the view I'm looking for?
Marin Bratanov
Telerik team
 answered on 23 May 2018
5 answers
272 views
Hello

I use a radfilter and radgrid to populate some data. I am saving the RadFilter expression in Db using the following code.

RadFilterSqlQueryProvider provider = new RadFilterSqlQueryProvider();
            provider.ProcessGroup(RadFilter1.RootGroup);
            String result = provider.Result;

Now in one page , I want to edit this value in DB. i.e, I want to reload this saved query to radfilter from the value in DB and thereby rebind the grid accordingly.

Any help will be highly appreciated.

Regards
Rekha.
SPH
Top achievements
Rank 1
 answered on 23 May 2018
7 answers
198 views
I am using FilterType="HeaderContext". Some of my columns only have a few options in them, but the container for the checklist is still quite tall. Is there an easy way for me to shorten the height for some columns?
Vessy
Telerik team
 answered on 22 May 2018
3 answers
220 views

Hi Team,

The latest update to the iPad was IOS 11.3, which "appears" to have broken Grid Scrolling.

We had IOS 11.2.6 running on an iPad, and I was able to perfectly scroll up/down inside a fixed-height radgrid with Client Scrolling on (ie. the contents scrolled properly without scrolling the entire webpage, as expected).  One of our customers complained that his iPad running IOS 11.3 was not able to scroll any longer, and as soon as we updated our testing iPad to IOS 11.3, the RadGrid Client Scrolling became broken.  With IOS 11.3, the entire page now scrolled instead of the contents of the Radgrid.

I thought it was our software, but then I checked out your Grid Scrolling sample on your Telerik site and I see the same problem on your demo site (using an iPad upgraded to IOS 11.3).  Ie. the same thing happened; the whole page scrolled instead of your Grid contents.

Would you be able to reproduce this with your iPad updated to 11.3 on your own Grid Scrolling Page here?  Are you getting the same issue?

Your Page: Grid - Scrolling

https://demos.telerik.com/aspnet-ajax/grid/examples/functionality/scrolling/scrolling/defaultcs.aspx 

Thx,
Mike

Peter Milchev
Telerik team
 answered on 22 May 2018
0 answers
112 views

Hi

Is there a way that i can change color of up arrow to green and down arrow to red.
Thanks in advance.

Gaurav
Top achievements
Rank 1
 asked on 22 May 2018
8 answers
323 views
Hi,

While editing or deleting recurring appointments we get a pop-up window that asks us to choose either the occurance or the series. I need help to capture the selection and pass it to the server, so that it may be changed accordingly.

Thanks
Dhana


Peter Milchev
Telerik team
 answered on 22 May 2018
14 answers
1.1K+ views
Hi there

Unfortunately we are still using the older versions of your products, specifically the .Net 2.0 pre Telerik.Web.UI release where every component (e.g. Grid, Calendar etc) has it's own dedicated assembly.

We recently attempted to solve a problem using the tools at hand (client restraints prevent us from upgrading) but found absolutely no documentation on the tools.

I understand that they are very old now but it's nigh on impossible to figure out the client side events/actions for standard controls such as RadCalendar/RadGrid without this documentation (or being a psychic!). As a result of this, could it be possible to make a link available or at least a download link to the CHM for us people that are still working in the stone age :) ?

Many thanks in advance!!

Hope to hear from you soon

A.

Marin Bratanov
Telerik team
 answered on 22 May 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?