Hello,
I am trying to add excel style filtering to our current application. To achieve this the solution has been upgraded with the Telerik 15.3.1111.45 upgrade.
But after adding
gridview.AllowFilteringByColumn = true;
gridview.EnableHeaderContextFilterMenu = true;
gridview.FilterType = GridFilterType.HeaderContext;
to the constructor of the grid.
I saw a little change in the layout of the header column but no filtermenu button to open. (as mentioned: http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/filtering/excel-like-filtering/defaultcs.aspx )
My guess is that I'm forgetting one thing that is needed to show the menu demonstrated in above link.
To be sure I'll also post the GridHeaderTemplate that we set as columnheader (and shows everything in the columnheader) (This is basically how column headers showed the info needed before excel style filtering)
public void InstantiateIn(Control container)
{
// Check if column is sorted and show corresponding image
SortingProp sort = null;
bool hasSort = controller.CurrentSorting != null && controller.CurrentSorting.TryGetValue(prop.ID, out sort);
if (hasSort)
{
var div = new HtmlGenericControl("div");
var image = new HtmlImage { Src = "images/grid_sort_" };
div.Attributes.Add("class", "sort");
image.Src += sort.SortDirection == MySortDirection.Ascending ? "ascending.png" : "descending.png";
div.Controls.Add(image);
container.Controls.Add(div);
}
// Check if column is filtered and show corresponding image
if (controller.IsPropFiltered(prop.ObjProp.ObjProp))
{
var image = new HtmlImage { Src = MyFileUrls.CreateSharedImageUrl(ImageRepository.Shared.filter_16, false) };
image.Attributes.Add("class", "filter");
container.Controls.Add(image);
}
var title = new HtmlGenericControl("div");
var label = new Literal { Text = prop.ObjProp.TranslGrid };
title.Attributes.Add("class", "title");
title.Controls.Add(label);
container.Controls.Add(title);
}
regards,
Sebastiaan
I have a pannel control, where I want a specific textbox to be selected after the listbox.get_selectedItem(). but in the javascript side if I put #RadTextboxID.focus() it never comes down there and the RadTB is not selected.
MY code in the JS side
function AddNewTask() {
$('.emptyTaskList').hide();
var listbox = $find('rlbTasks');
$('#lblEditTaskSign').html('Add Task/Milestone');
$('#lbDeleteTask').hide();
listbox.get_selectedItem().set_selected(false);
$( "#rtbName" ).focus();
And the page does not post back so setting it in the page_load did not help.
I also tried :
<telerik:RadTextBox ClientEvents-OnLoad="onClientLoad" runat="server" ID="rtbName" MaxLength="255" />
function onClientLoad(sender) // executes when loading the RadTextBox
{
sender.focus();
}
Did not work? how should I approach this issue?

Hello,
I have a project that uses the RadAjaxManager all over the place and prior to the upgrade all of the controls would update just fine. Since the upgrade however none of the controls update. The only thing I get back is an error in the console when ever I do an action that should cause an Ajax update. The control bellow is one example of the many controls and pages using the RadAjaxManager
Masterpage.master
01.<body>02. <form id="form1" runat="server">03. 04. <telerik:RadScriptManager ID="MasterRadScriptManager" runat="server">05. <Scripts>06. <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />07. <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />08. <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />09. </Scripts>10. </telerik:RadScriptManager>11. 12. <telerik:RadAjaxManager ID="MasterRadAjaxManager" runat="server" EnableAJAX="true" UpdatePanelsRenderMode="Inline" EnableViewState="false">13. </telerik:RadAjaxManager>14. 15. <telerik:RadAjaxLoadingPanel ID="MasterRadAjaxLoadingPanel" CssClass="MasterRadAjaxLoadingPanel" Runat="server" height="150px" width="150px">16. </telerik:RadAjaxLoadingPanel>
ColumnSelectorModule.ascx
01.<%@ Control Language="C#" Inherits="LogicData.CustomerPortal.CustomerPortalView.ColumnSelectorModule" MasterPageFile="~/Themes/MasterPage.Master" %>
02.<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
03.
04. <div class="ColumnSelectorModule">
05. <telerik:RadAjaxManagerProxy ID="RadAjaxManager1" runat="server">
06. <AjaxSettings>
07. <telerik:AjaxSetting AjaxControlID="SourceRadListView">
08. <UpdatedControls>
09. <telerik:AjaxUpdatedControl ControlID="SourceRadListView" />
10. <telerik:AjaxUpdatedControl ControlID="RadListViewDestination" />
11. </UpdatedControls>
12. </telerik:AjaxSetting>
13. <telerik:AjaxSetting AjaxControlID="RadListViewDestination">
14. <UpdatedControls>
15. <telerik:AjaxUpdatedControl ControlID="SourceRadListView" />
16. <telerik:AjaxUpdatedControl ControlID="RadListViewDestination" />
17. </UpdatedControls>
18. </telerik:AjaxSetting>
19.
20. </AjaxSettings>
21. </telerik:RadAjaxManagerProxy>
22.
23. <telerik:RadSplitter ID="ColumnSelectorRadSplitter" runat="server" CssClass="columnselectorradsplitter">
24. <telerik:RadPane ID="RadPane1" runat="server" Height="100%" Width="333px" Scrolling="Y" CssClass="radpanedestination">
25. <asp:Label runat="server" ID="AvailableColumnsLabel" CssClass="QuerySettingInfoLabel">
26. </asp:Label>
27. <telerik:RadListView ID="SourceRadListView" runat="server" OnNeedDataSource="SourceRadListView_NeedDataSource" ClientIDMode="Predictable" OnItemDrop="SourceRadListView_ItemDrop" AllowPaging="false">...
28. </telerik:RadListView>
29. </telerik:RadPane>
30.
31. <telerik:RadPane ID="RadPaneDestination" runat="server" Width="333px" Scrolling="Y" CssClass="radpanedestination">
32. <asp:Label runat="server" ID="QuerySettingInfoLabel" CssClass="QuerySettingInfoLabel">
33. </asp:Label>
34. <telerik:RadListView ID="RadListViewDestination" runat="server" OnNeedDataSource="RadListViewDestination_NeedDataSource" OnDataBound="RadListViewDestination_DataBound" DataKeyNames="DataField, QueryColumnSettingId" ClientIDMode="Predictable" OnItemDrop="RadListViewDestination_ItemDrop" AllowPaging="false">...
35. </telerik:RadListView>
36. </telerik:RadPane>
37. </telerik:RadSplitter>
38.
39. <asp:Panel runat="server" ID="DebugPanel"></asp:Panel>
40. </div>
Thank you.
-Chris


I have a very specific problem with the RadComboBox. I am using it in a RadWindow that is opening like a dialog, and it is near the bottom of the window, so that the expanded drop down has to open up. If I have enough items that the vertical scroll bar is used, I can select an item and move on, but if I go back to the ComboBox to change my selection, it locks and freezes the whole browser window.
I am using Q1 controls, IE Version 7.0.6001.18000.
This lockup/freeze does NOT occur in Firefox 3, and operates as expected.
I checked the vertical versus horizontal scroll, wrap versus no wrapping text, and it seems related to the vertical scroll. If I limit the items in the list so that it does not scroll, it does not lockup. I tried the default and the Vista skin with the same results.
This is a show stopper for me.
Image: http://www.quebesystems.com/images/PopulationDialogTelerikComboIssue.jpg

Hi,
The problem is that my date is like "31/12/2015 11:45:00" and i want be able to sorting and filtering on this date.
Here is the code:
<telerik:RadGrid ID="Grid_ID" runat="server" DataSourceID="ObjectDataSource1" GroupPanelPosition="Top" AllowSorting="true" AllowFilteringByColumn="true">
<ClientSettings>
<Selecting AllowRowSelect="True" />
</ClientSettings>
<MasterTableView DataSourceID="ObjectDataSource1" AutoGenerateColumns="False">
<Columns>
<telerik:GridBoundColumn DataField="Code" HeaderText="Code"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Num_article" HeaderText="Num. article"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Description" HeaderText="Description"></telerik:GridBoundColumn>
<telerik:GridDateTimeColumn DataField="Date" HeaderText="Date" DataFormatString="{0:d}" FilterDateFormat="dd/MM/yyyy"></telerik:GridDateTimeColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
<asp:ObjectDataSource runat="server" ID="ObjectDataSource1" SelectMethod="SP_RECORD_GET" TypeName="DA_Record"></asp:ObjectDataSource>
De sorting is on "string value" and i want he sort on de DATE.
Thanks for your help.
We have 20 declared columns (NOT using auto-generated columns) and the user can use the context menu to group by any column and have nested groupings. The default is no grouping. I set the Aggregate="Count" property on the primary ID databound field. The counts get displayed in the footer but I want to display them in the header next to the header text. Also the catch with this approach is that if that column is hidden (user can decide which columns to view), the totals do not show up. I simply want to add a count of the number of records/items that are in each group.
I tried using ItemDataBound checking for GridGroupHeaderItem but all of the AggregatesValues for the item are null.
Here is what I've tried in the itemdatabound event.
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e){ if (e.Item is GridGroupHeaderItem) { GridGroupHeaderItem item = (GridGroupHeaderItem)e.Item; int c1 = item.GetChildItems().Length; //always 0 int c2 = item.GetChildItems().Count() //always 0 }}I already have marker click event setup and able to extract coordinates from marker. Now, i need dynamically show lines initiated from these coordinates on marker click, meaning i need to manipulate source to my shape layer.
Any recommendations?