Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
85 views
Hi, 

I want to create a RadGrid that is statically defined in the ASPX with some columns defined.  But also want to add (generically or programmatically) additional columns to the RadGrid (to the right of the already defined columns) dynamically based on the result set returned from a stored procedure. Finally, I want all columns to have full filter/sorting capabilities.

Is there a way I can achieve this?

NOTE: In the past, I have already created a programmatically defined RadGrid (in a older version of the RadGrid) by defining the complete grid structure, filters, events etc. in the Page_Init event (which was a lot of work).  I would like to know if there are easier ways to achieve this now in the latest versions of the RadGrid? 

Kind Regards

Dan
Eyup
Telerik team
 answered on 09 Feb 2016
4 answers
128 views

Hi All,

In case anyone has issues with the tooltips on the Material skin mod them with the following css.  Found in the dataviz.css file in the installation folder. Hopefully a more compliant style will be added to the material skin at some point in the future.  

.k-chart-tooltip {
    border-radius: 0px !important;
    background-image:none !important;
}
 

Cheers

Jon

Jon
Top achievements
Rank 1
 answered on 09 Feb 2016
6 answers
157 views

Hi,

On the RadGrid there is a css style that you can use to give a deeper shade to the sorted column.  Is there an eqivalent for the TreeList?  Looking at the CSS I couldn't find one...

Regards

Jon

Jon
Top achievements
Rank 1
 answered on 09 Feb 2016
1 answer
61 views

The following is my grid which uses AllowAutomaticUpdates and updates the row as expected when the Update button is clicked. The problem is when I copy the code to the server, when I click the Update button, nothing happens. Clicking Edit brings up the Update and Cancel buttons as expected. Clicking Cancel takes the row out of Edit mode as expected. The environments appear to be the same. The code is the same. 

 What could be causing Update button not to fire on one computer but works fine on another? What do I look for?

    <telerik:RadGrid ID="rgProducts" runat="server" DataSourceID="sqlProducts" GroupPanelPosition="Top" Skin="Office2010Black" AutoGenerateColumns="False" Width="600px"
        AllowSorting="True" Height="200px" AutoGenerateEditColumn="True" MasterTableView-EditMode="InPlace" AllowAutomaticUpdates="True">
<GroupingSettings CollapseAllTooltip="Collapse all groups"></GroupingSettings>
        <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True" EnablePostBackOnRowClick="true">
            <Selecting AllowRowSelect="True" />
            <Scrolling AllowScroll="True" UseStaticHeaders="True" />
        </ClientSettings>
        <MasterTableView DataSourceID="sqlProducts" DataKeyNames="product_id" >
            <Columns>
                <telerik:GridBoundColumn DataField="product_id" Visible="false"  HeaderText="Product_id" UniqueName="product_id">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="product_name"  HeaderStyle-Width="100px" FilterControlAltText="Filter product_name column" HeaderText="Product" SortExpression="product_name" UniqueName="product_name">
<HeaderStyle Width="100px"></HeaderStyle>
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="sams_excel_column"  HeaderStyle-Width="30px" DataType="System.Int32" FilterControlAltText="Filter sams_excel_column column" HeaderText="Sams Excel Column" SortExpression="sams_excel_column" UniqueName="sams_excel_column">
<HeaderStyle Width="30px"></HeaderStyle>
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="rd_excel_column"  HeaderStyle-Width="30px" DataType="System.Int32" FilterControlAltText="Filter rd_excel_column column" HeaderText="RD Excel Column" SortExpression="rd_excel_column" UniqueName="rd_excel_column">
<HeaderStyle Width="30px"></HeaderStyle>
                </telerik:GridBoundColumn>
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>    

Viktor Tachev
Telerik team
 answered on 09 Feb 2016
1 answer
61 views

Quick question 

 

how can i find a dropDowncolumn via javascript ?

 

I've tried the following

 

 var row = masterTableView.get_editItems()[0];
 var dropDown = masterTableView.get_editItems()[0].findControl('nameofMyDropDownColumn');

 

but when debugging dropDown is always null 

 

Notes:

 grid is in edit mode

 

 

Is there a different method i should be using ?

 

 

 

 

 

 

Eyup
Telerik team
 answered on 09 Feb 2016
1 answer
317 views

When I tried to add 4 group footers in the radgrid, I see that colspan="4" is added automatically, I want the footers to align with the columns. 

 <FooterStyle Font-Bold="true" />
                                                    <GroupFooterTemplate>
                                                            This is a Footer - Total Cases
                                                            <asp:Label ID="Label8" runat="server" />

                                                        </td>
                                                        <td colspan="2">
                                                            This is a Footer - Adjustment
                                                             <asp:Label ID="Label1" runat="server" />
                                                        </td>
                                                        <td>
                                                            This is a Footer - OrderTotal
                                                             <asp:Label ID="Label2" runat="server" />
                                                        
                                                    </GroupFooterTemplate>
                                                    <Columns>

 

Eyup
Telerik team
 answered on 09 Feb 2016
1 answer
45 views

Hi,

Is it possible to RadEditor cleaned everything but the links when pasting from Word? I have StripFormattingOnPaste="AllExceptNewLines"

Ianko
Telerik team
 answered on 09 Feb 2016
1 answer
65 views

 

I have a RadcomboBox with "CheckBox" options with  CheckBoxes="true"  EnableCheckAllItemsCheckBox="true" set. Now I populate the data with two separators. When "Check All" is selected it displays "All Items Checked" on top of the RadComboBox. It includes the two separators too. Now when I uncheck one of the items, it displays the count which includes the two separators. Now the user gets confused when 10 items are selected and one item is unchecked why it displays 12 items checked. It includes the two separators into count. How to avoid the two separators not to be counted.

 

Thanks

Madhu

Eyup
Telerik team
 answered on 09 Feb 2016
3 answers
218 views

Hello,

 

I'm having multiple charts on page. After changing the value of a dropdown list i want to refresh some (but not all!) charts on the page. I'm using ajaxRequestWithTarget to do this and the request is working properly. The "LoadingPanels" also appear correctly over the charts, I specified. But then all charts of the page are redrawn. This suggests that changing the dropdown does change the values of all charts, even though it does not. Thats why I would like to prevent the redraw.

 

Is there any way to do this?

Marin Bratanov
Telerik team
 answered on 09 Feb 2016
1 answer
127 views

Had troubles with the Excel-like filters in the RadGrid when trying for the first time.  The context menu wouldn't drop down after configuring RadGrid based on this text from the demo:

The demo shows the new Grid FilterType called HeaderContext implemented in Q3 2015. This filtering mode provides look and feel that resembles the filter in Excel. To enable this mode you should set the FilterTypeproperty of RadGrid to HeaderContext and turn on the header context menu (EnableHeaderContextFilterMenu="true").

 

After troubleshooting and comparing code, found it didn't drop down because  EnableHeaderContextMenu="true"  was missing from my markup but was is in the demo .aspx code.

 

It would be helpful to update the demo page and add EnableHeaderContextMenu="true" to the list of required properties.

 

I think adding more info about the need for this event... OnFilterCheckListItemsRequested="RadGrid1_FilterCheckListItemsRequested" in the same text would also help.  The text of As you can see ListBox populated through DataSource displays the values. doesn't highlight the importance of that event to the Excel-like filtering feature.

  

Thanks,

John

Pavlina
Telerik team
 answered on 08 Feb 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?