Hello, I'm trying to do something pretty straightforward, I'd like to remove the filter parameters from my grid results when clearing the two datepickers from the griddatetime column daterange filter. Example (From: 01/01/2015 To: 02/01/2015....results in data between that date range, If I were to clear the two datepickers, the grid does not return ALL records nor does it even do a postback like any other filter types that get cleared.
Here is my markup.
<telerik:GridDateTimeColumn DataField="AssignedDate" DataType="System.DateTime" DataFormatString="{0:d}" FilterControlAltText="Filter AssignedDate column" HeaderText="Assigned Date" SortExpression="AssignedDate" EnableRangeFiltering="true" PickerType="DatePicker" UniqueName="AssignedDate" ShowFilterIcon="false" AutoPostBackOnFilter="true" > <HeaderStyle HorizontalAlign="Center" Width="300px" /><ItemStyle HorizontalAlign="Center" /></telerik:GridDateTimeColumn>
Hi,
I am updating some old telerik components to a newer version, now I downloaded the latest version of the "vista" skin and set my preferred color in one of the components and pressed saved all. It looked like all the sprite where converted the asked color set. However the only sprites which don't seem to have the correct color are the ones in the "common" folder, they are still the default color of the theme "blueish". How do I obtain the sprites in the common folder for my preferred color?

When I am using the statistics module I'm getting a completely different character count than when I process the content on the backend using controlName.Content. When comparing the text, the content I receive on the backend is processed with paragraph tags instead of line breaks where the content on the front end is not.
Is there a way to get an accurate count of characters on the front end? Because my customer is complaining that the statistics module says they have 34 characters left when our back-end validation is showing they are over by a few characters.
The first characters in the text processed by the backend is "<p>". This does not appear at all in the front-end validation text string.




We are upgrading visual studio 2010 solution using Telerik (v 2012.2.607) controls to visual studio 2017. I have a doubt that after upgrading the solution to visual studio 2017, will telerik controls of old version works or not?
If incase, it works then for that do I need to make any changes in that?
If not, please provide the alternate solution to get the upgraded solution work.
Also, will it get impacted if I upgrade the .Net framework version to some latest.
Thanks in advance.
Hi,
I have a radgrid with filter on field set on. I need to be able to set the filter of a specific field to a fixed value and enable the filter field. But this is user dependant.
How can I accomplish this?
My radgrid :
<telerik:RadGrid ID="grdCodes" GridLines="None" runat="server" PageSize="20" AllowPaging="True" AutoGenerateColumns="False" AllowFilteringByColumn="true" OnInsertCommand="grdCodes_InsertCommand" OnUpdateCommand="grdCodes_UpdateCommand" OnNeedDataSource="grdCodes_NeedDataSource" OnItemDataBound="grdCodes_ItemDataBound" OnItemCreated="grdCodes_ItemCreated" OnPreRender="grdCodes_PreRender" > <MasterTableView CommandItemDisplay="Top" HorizontalAlign="NotSet" EditMode="InPlace" AutoGenerateColumns="False"> <Columns> <telerik:GridEditCommandColumn UniqueName="EditColumn" ButtonType="ImageButton" ItemStyle-Width="10px" /> <telerik:GridTemplateColumn HeaderText="System" ItemStyle-Width="20%" SortExpression="system" UniqueName="system" DataField="system"> <FilterTemplate> <telerik:RadComboBox ID="ddlSystemFilter" runat="server" OnClientSelectedIndexChanged="FilterSystemIndexChanged" AppendDataBoundItems="true" SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("system").CurrentFilterValue %>'> <Items> <telerik:RadComboBoxItem Text="All" /> </Items> </telerik:RadComboBox> <telerik:RadScriptBlock ID="RadScriptBlock2" runat="server"> <script type="text/javascript"> function FilterSystemIndexChanged(sender, args) { var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>"); tableView.filter("system", args.get_item().get_value(), "EqualTo"); } </script> </telerik:RadScriptBlock> </FilterTemplate> <ItemTemplate> <%# CartaMundi.BusinessLogic.Codes.GetDescription(cmWeb.Classes.Constants.SYSTEM_GENERAL,"SYSTEM", DataBinder.Eval(Container.DataItem, "system")) %> </ItemTemplate> <EditItemTemplate> <telerik:RadComboBox runat="server" ID="ddlSystem" ></telerik:RadComboBox> </EditItemTemplate> </telerik:GridTemplateColumn> <telerik:GridBoundColumn DataField="field_name" HeaderStyle-Width="20%" HeaderText="Field name" SortExpression="field_name" UniqueName="field_name" ShowFilterIcon="false" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true"> <ColumnValidationSettings EnableRequiredFieldValidation="true"> <RequiredFieldValidator Text="<img src='/CMIT/Images/Warning.gif' border='0'>" Display="Dynamic" ToolTip="Field name is required." ErrorMessage="-Field name is required." ></RequiredFieldValidator> </ColumnValidationSettings> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="field_value" HeaderStyle-Width="20%" HeaderText="Field value" SortExpression="field_value" UniqueName="field_value" ShowFilterIcon="false" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true"> <ColumnValidationSettings EnableRequiredFieldValidation="true"> <RequiredFieldValidator Text="<img src='/CMIT/Images/Warning.gif' border='0'>" Display="Dynamic" ToolTip="Field value is required." ErrorMessage="-Field value is required." ></RequiredFieldValidator> </ColumnValidationSettings> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="description" HeaderStyle-Width="40%" HeaderText="Description" SortExpression="description" UniqueName="description" ShowFilterIcon="false" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true" > <ColumnValidationSettings EnableRequiredFieldValidation="true"> <RequiredFieldValidator Text="<img src='/CMIT/Images/Warning.gif' border='0'>" Display="Dynamic" ToolTip="Description is required." ErrorMessage="-Description is required." ></RequiredFieldValidator> </ColumnValidationSettings> </telerik:GridBoundColumn> </Columns> </MasterTableView> <ClientSettings AllowKeyboardNavigation="true"></ClientSettings> </telerik:RadGrid>The fields that can have fixed values is the GridTemplateColumn 'System' and the GridBoundColumn 'field_value'
I was able to set the default value but there is was no option to set the field enabled.
protected void grdCodes_PreRender(object sender, EventArgs e){ if (BLogic.UserRights.Authorised(CurrentUser, "ProjectGroups", "*DSP", Classes.Constants.SYSTEM_DESIGN )) { grdCodes.MasterTableView.FilterExpression = "(Convert.ToString(it[\"system\"]) = \"" + cmWeb.Classes.Constants.SYSTEM_DESIGN + "\") AND (it[\"field_name\"].ToString().Contains(\"PRJGROUPS\"))"; GridColumn column = grdCodes.MasterTableView.GetColumnSafe("system"); column.CurrentFilterFunction = GridKnownFunction.EqualTo; column.CurrentFilterValue = cmWeb.Classes.Constants.SYSTEM_DESIGN; column = grdCodes.MasterTableView.GetColumnSafe("field_name"); column.CurrentFilterFunction = GridKnownFunction.EqualTo; column.CurrentFilterValue = "PRJGROUPS"; grdCodes.MasterTableView.Rebind(); }}There are users that may not be able to select other values in the filter and have a fixed value. Other user must be are able to use the filter as they wish.
The part of the code '(BLogic.UserRights.Authorised(CurrentUser, "ProjectGroups", "*DSP", Classes.Constants.SYSTEM_DESIGN ))' decides if the users has limitid selection options.
Can this be done?
Kind regards
Suzy
