Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
204 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
293 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
259 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
190 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
215 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
106 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
315 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.0K+ 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
6 answers
1.4K+ views

Hi,

          This is Hariprasad . In my project we use Telerik Controls very much. Recently i tried a sample related to my project according to the following link       http://demos.telerik.com/aspnet-ajax/xmlhttppanel/examples/loadingpanelid/defaultcs.aspx

 . Basing on Treeview selection , In code i am dynamically loading usercontrols on every Treeview Node click.

Then i am getting this following error.
 
XmlHttpPanel Callback Loading error:
 Exception=Script control 'RadWindowManager1' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().
Parameter name: scriptControl


I already have ScriptManager in MasterPage.

I think this problem because of scriptmanager .

Can you please help me in this regard.
congdongdientu.
Top achievements
Rank 1
Veteran
 answered on 22 May 2018
2 answers
513 views

Was playing with CSS and other items but wouldn't seem to find a way to pull this off.  I was wondering, is it possible change the the up/down arrow in the Spin Buttons to a + and - sign.  Just curious if there is an easy way to pull this off.

Thanks,

Richard

Gaurav
Top achievements
Rank 1
 answered on 21 May 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?