Had an issue where a column converted from a text column to a dropdownlist column would display fine and update/insert fine as a text column but when converted to a dropdownlist (for the edit/insert form), the renderd 'grid' would not reflect the underlying value in the database, but would allow selection and would update the underlying database when in the edit/insert mode. Other fields converted from text to dropdown list in the same grid would behave fine. I traced this error back to the underlying column definition in the database. The misbehaving column was defined as char(10) and the working columns were varchar(10). When I converted the underlying column with the issue to varchar(10), the issue was resolved.
Just an FYI.
Greetings,
As per a previous ticket, in a page we're disabling the ability for users to change the expressions in a radfilter, other than the values and the condition type (contains, starts with, etc).
To do that, we're using, as suggested, in the ExpressionItemCreated event the code:
if (e.Item is RadFilterGroupExpressionItem)
{
RadFilterGroupExpressionItem groupItem = e.Item as RadFilterGroupExpressionItem;
groupItem.RemoveButton.Visible = (sender as RadFilter) == FilterChoice;
groupItem.AddExpressionButton.Visible = (sender as RadFilter) == FilterChoice;
groupItem.AddGroupExpressionButton.Visible = (sender as RadFilter) == FilterChoice;
groupItem.GroupOperationChooserLink.Enabled = (sender as RadFilter) == FilterChoice;
}
if (e.Item is RadFilterSingleExpressionItem)
{
RadFilterSingleExpressionItem singleItem = e.Item as RadFilterSingleExpressionItem;
singleItem.FieldNameChooserLink.Enabled = (sender as RadFilter) == FilterChoice;
singleItem.RemoveButton.Visible = (sender as RadFilter) == FilterChoice;
}
This was working perfectly until we've upgraded to the latest version (due to the security warning you sent). Since then, the dropdown to select the field name and to select And/Or are enabled, even though the code suffered no changes.
We really need to disable these options. Please advise. Thank you.
Best Regards,
Nuno Cabrinha
<
telerik:GridTemplateColumn
UniqueName
=
"tcAxis"
HeaderText
=
"Axis"
>
<
ItemTemplate
>
<
asp:Label
ID
=
"lblAxis"
runat
=
"server"
></
asp:Label
>
</
ItemTemplate
>
<
EditItemTemplate
>
<
asp:DropDownList
ID
=
"ddlAxis"
runat
=
"server"
>
<
asp:ListItem
Text
=
"--Select--"
Value
=
"--Select--"
></
asp:ListItem
>
<
asp:ListItem
Text
=
"PrimaryB"
Value
=
"PrimaryB"
></
asp:ListItem
>
<
asp:ListItem
Text
=
"PrimaryT"
Value
=
"PrimaryT"
></
asp:ListItem
>
<
asp:ListItem
Text
=
"SecondaryT"
Value
=
"SecondaryT"
></
asp:ListItem
>
<
asp:ListItem
Text
=
"SecondaryB"
Value
=
"SecondaryB"
></
asp:ListItem
>
</
asp:DropDownList
>
<
asp:RequiredFieldValidator
ID
=
"rfvAxis"
runat
=
"server"
ErrorMessage
=
"*"
ControlToValidate
=
"ddlAxis"
InitialValue
=
"--Select--"
></
asp:RequiredFieldValidator
>
</
EditItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
UniqueName
=
"tcIsSameAxis"
HeaderText
=
"Is Same Axis"
>
<
ItemTemplate
>
<
asp:CheckBox
ID
=
"cbIsSameAxisDisplay"
runat
=
"server"
Enabled
=
"false"
/>
</
ItemTemplate
>
<
EditItemTemplate
>
<
asp:CheckBox
ID
=
"cbIsSameAxis"
runat
=
"server"
/>
</
EditItemTemplate
>
</
telerik:GridTemplateColumn
>
Aspx :
<
telerik:GridDateTimeColumn
DataField
=
"StartDateTime"
HeaderText
=
"Start"
DataType
=
"System.DateTime"
PickerType
=
"DateTimePicker"
/>
VB :
Dim dteFrom As RadDateTimePicker = CType(item("StartDateTime").Controls(0), RadDateTimePicker)
dteFrom.SharedTimeView.TimeFormat = GetShortTimeFormat()
dteFrom.TimeView.TimeFormat = GetShortTimeFormat()
dteFrom.DateInput.DateFormat = GetShortDateFormat() + " " + GetShortTimeFormat()
dteFrom.DateInput.DisplayDateFormat = GetShortDateFormat() + " " + GetShortTimeFormat()
dteFrom.SharedTimeView.Interval = New TimeSpan(0, 15, 0)
dteFrom.SharedTimeView.Columns = 8
The Time Picker appears as a huge list of 8 x 12 times for selection.
Is there an option to have a Hour selector, and a Minute selector?
Seems there is a workaround for a RadDateTimePicker :
http://www.telerik.com/forums/raddatetimepicker-select-seperate-hours-and-time
How can I hook this into the GridDateTimeColumn?
<
Efficio:EfficioGridView
runat
=
"server"
ID
=
"grdIncrease"
AllowSorting
=
"True"
RetainDataInViewState
=
"True"
>
<
MasterTableView
Width
=
"100%"
>
<
Columns
>
<
Efficio:EfficioGridTemplateColumn
HeaderText
=
"Account"
HeaderStyle-HorizontalAlign
=
"Left"
ItemStyle-HorizontalAlign
=
"Left"
SortExpression
=
"AdvertiserName"
>
<
ItemTemplate
>
<
asp:HyperLink
CssClass
=
"ListLineCEL"
ID
=
"lnkAdvertizer"
NavigateUrl='<%# "/Efficio/Account/AccountSummary.aspx?
aid
=
" + DataBinder.Eval(Container.DataItem, "
advertiserguid") %>' Text='<%# DataBinder.Eval(Container.DataItem, "advertisername") %>' runat="server" />
</
ItemTemplate
>
</
Efficio:EfficioGridTemplateColumn
>
<
Efficio:EfficioGridTemplateColumn
HeaderText
=
"This Year"
HeaderStyle-HorizontalAlign
=
"Right"
ItemStyle-HorizontalAlign
=
"Right"
SortExpression
=
"ThisYearAmount"
DataType
=
"System.Int32"
>
<
ItemTemplate
>
<%# Common.Utilities.FormatMoney(Convert.ToString(DataBinder.Eval(Container.DataItem, "ThisYearAmount")), true)%>
</
ItemTemplate
>
</
Efficio:EfficioGridTemplateColumn
>
<
Efficio:EfficioGridTemplateColumn
HeaderText
=
"Last Year"
HeaderStyle-HorizontalAlign
=
"Right"
ItemStyle-HorizontalAlign
=
"Right"
SortExpression
=
"LastYearAmount"
DataType
=
"System.Int32"
>
<
ItemTemplate
>
<%# Common.Utilities.FormatMoney(Convert.ToString(DataBinder.Eval(Container.DataItem, "LastYearAmount")), true)%>
</
ItemTemplate
>
</
Efficio:EfficioGridTemplateColumn
>
<
Efficio:EfficioBoundDifferenceColumn
HeaderText
=
"$ Diff"
DataField
=
"DiffAmount"
SortExpression
=
"DiffAmount"
DifferenceType
=
"Money"
HeaderStyle-HorizontalAlign
=
"Right"
ItemStyle-HorizontalAlign
=
"Right"
DataType
=
"System.Int32"
>
</
Efficio:EfficioBoundDifferenceColumn
>
<
Efficio:EfficioBoundDifferenceColumn
HeaderText
=
"% Diff"
DataField
=
"PercentAmount"
SortExpression
=
"PercentAmount"
DifferenceType
=
"Percentage"
HeaderStyle-HorizontalAlign
=
"Right"
ItemStyle-HorizontalAlign
=
"Right"
DataType
=
"System.Int32"
>
</
Efficio:EfficioBoundDifferenceColumn
>
</
Columns
>
</
MasterTableView
>
</
Efficio:EfficioGridView
>
if (State.IsMobileDevice(Page.Request.UserAgent))
{
grdIncrease.ClientSettings.Scrolling.AllowScroll = true;
grdIncrease.ClientSettings.Scrolling.UseStaticHeaders = true;
grdIncrease.ClientSettings.Scrolling.FrozenColumnsCount = 1;
grdIncrease.MasterTableView.TableLayout = GridTableLayout.Fixed;
grdIncrease.HeaderStyle.Width = 200;
}
I am seeing this error message when I run my Visual Studio 2015 web application, plus several of my web controls are not recognized element when I drag and drop them on my page. Error message is
There was a conflict between "Telerik.Web.UI, Version=2012.3.1308.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4" and "Telerik.Web.UI, Version=2015.1.401.45, Culture=neutral, PublicKeyToken=121fae78165ba3d4"
What is the proper way to correct this situation?
I have a grid which use Header Context Menu. Filtering option is not working with DateTime Fields
<telerik:RadGrid RenderMode="Lightweight" ID="itinerariosGrid" runat="server" AutoGenerateColumns="False" EnableEmbeddedSkins="false" Skin="telerikbootstrap"
AllowFilteringByColumn="True" AllowSorting="True" AllowPaging="True" Culture="es-MX" FilterType="HeaderContext" EnableHeaderContextMenu="true" EnableHeaderContextFilterMenu="true"
AllowMultiRowSelection="True" AllowAutomaticUpdates="False" AllowAutomaticInserts="False" OnItemDataBound="itinerariosGrid_ItemDataBound"
OnNeedDataSource="itinerariosGrid_NeedDataSource" AllowAutomaticDeletes="false" EnableLinqExpressions="false"
OnInsertCommand="itinerariosGrid_InsertCommand" OnUpdateCommand="itinerariosGrid_UpdateCommand" OnDeleteCommand="itinerariosGrid_DeleteCommand">