Hello,
I've been struggling with issue, how to get EnableTimeIndependentFiltering property working in GridTemplateColumn.
Let me describe the issue. We have datetime columns in our SQL database. These columns have in some rows normal dates such 21.9.2017 15:10:00 but some have the intial value 01.01.1900 00:00:00. Because I don't know how to suppress this initial value to be shown, I use GridTemplateColumn instead of GridDateTimeColumn. The problem is that this column even with property DataType="System.DateTime" didn't know EnableTimeIndependentFiltering.
Here is my sample column declaration:
<
telerik:GridTemplateColumn
DataField
=
"TransferOrder_ChangedDate"
HeaderText
=
"Dátum vykonania"
HeaderStyle-Font-Bold
=
"true"
HeaderStyle-HorizontalAlign
=
"Center"
ReadOnly
=
"True"
SortExpression
=
"TransferOrder_ChangedDate"
DataType
=
"System.DateTime"
ItemStyle-HorizontalAlign
=
"Left"
UniqueName
=
"TransferOrder_ChangedDate"
FilterControlWidth
=
"120px"
ColumnGroupName
=
"TransferOrder"
AutoPostBackOnFilter
=
"false"
CurrentFilterFunction
=
"EqualTo"
>
<
ItemTemplate
>
<
asp:Label
ID
=
"lbl_TransferOrder_ChangedDate"
runat
=
"server"
Text='<%# ((DataRowView)Container.DataItem)["TransferOrder_ChangedDate"].ToString() == nulldateTime.ToString() ? " ": string.Format("{0:dd.MM.yyyy HH:mm:ss}", ((DataRowView)Container.DataItem)["TransferOrder_ChangedDate"]) %>'></
asp:Label
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
The question is how can I filter data based on whole day value without need to type hours, minutes and second in GridTemplateColumn ?
Thank you
Best regards
Vasssek
Hi,
I have a radiobuttolist with 3 items.
<telerik:RadRadioButtonList ID="RadRadioButtonList1" runat="server"AutoPostBack="False">
<Items>
<telerik:ButtonListItem Text="Approve" Value="value1"Selected="True" />
<telerik:ButtonListItem Text="Return" Value="value2" />
<telerik:ButtonListItem Text="Reject" Value="value3" />
</Items>
</telerik:RadRadioButtonList>
I need to remove 3rd item from the list on client click of some other control (for example on button client click). Is that possible? If yes, how can I remove it from client side using jQuery?
At the end result I should I have only 2 options: Approve and Return.
And if I click again on the button, It should display all 3items.
Thanks in advance for your valuable help.
I attached a image for that. In which when i click on Add Filter icon I add a new row inside nested grid. But it get add on every nested Grid.
I want it to be add for a particular row of parent grid not for every parent row only for a row in which Add Filter is get clicked.
grdTruckerSlot_ItemCommand: parent grid
grdSlotFilterAllocation : nested grid(child)
StoretruckingFilterSlots: view state
public DataTable StoretruckingFilterSlots { get { return ViewState["StoretruckingFilterSlots"] != null ? (DataTable)ViewState["StoretruckingFilterSlots"] : new DataTable(); } set { ViewState["StoretruckingFilterSlots"] = value; } }
protected void grdTruckerSlot_ItemCommand(object source, GridCommandEventArgs e)
{
case "AddFilter":
DataRow drnew = StoretruckingFilterSlots.NewRow();
StoretruckingFilterSlots.Rows.Add(drnew);
GridDataItem dataItem = e.Item as GridDataItem;
GridNestedViewItem nestedItem = (GridNestedViewItem)dataItem.ChildItem;
RadGrid grdSlotFilterAllocation = (RadGrid)nestedItem.FindControl("grdSlotFilterAllocation");
grdSlotFilterAllocation.DataSource = StoretruckingFilterSlots;
grdSlotFilterAllocation.Rebind();
}
Please help me in this.
Thanks
Mayur
I have installed SQLServer.Types (version 14.0.314.76 from NuGet) followed by Microsoft.ReportingServices.ReportViewer.Webforms 14.0.0.0 (version: 140.802.134 NuGet) .
The website has references to Telerik.Web.UI.dll (2017.2.711.45) and Telerik.Web.UI.Skins.dll (2017.2.711.45).
I am using RadScriptManager in a page.
I have followed all the steps (to add the control to a web page) and make sure web.config has the related entries for both ReportViewer.WebForms and ReportView.Common dlls, httphandlers, handlers etc. But, when I try to run (from Visual Studio 2015), it breaks at code line
// Setup responsive toolbar layout var self = this;
if ($) { window.$RSjQuery(window).on("resize", function () { self.ResizeToolbarIcons(); }); }
in Microsoft.Reporting.WebFormsClient._Toolbar.prototype.ConnectEventHandlers() of Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=14.0.802.134&Name=ViewerScript[dynamic] and I noticed that the error is because 'window.$RSjQuery is undefined'. What could I be missing in my installations ? Could you please help?
Thank you
Hi there
I have a dynamically created grid. Some of the columns are read-only. On clicking on a cell which is not read-only, it goes into edit mode for that cell only (via rowclick), and that seems to working quite well for gridboundcolumns, which currently all the "editable" cells are, and I've been able to control the types of fields used for editing using the dataformatstring option (to distinguish between text, dates, currency, etc).
So far, so good.
One of my "text" fields is actually a memo field so it needs to display as a multiline field rather than a normal text field.
Is it possible to show a multiline field for a gridboundcolumn?
Thanks for your time.
Dear Telerik team,
I have problem clear content of radeditor after button submit. My radeditor not inside updatepanel, but my button inside updatepanel.
When submit button i cannot clear content of radeditor.
Please inform how to clear with my condition.
Thanks,
<
system.webServer
>
<
handlers
>
<
add
name
=
"Telerik.Web.UI.WebResource"
path
=
"Telerik.Web.UI.WebResource.axd"
verb
=
"*"
type
=
"Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2011.2.915.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4"
/>
</
handlers
>
</
system.webServer
>