Is it possible to use ColumnValidation and EditFormIndexColumnIndex index together?
I have a grid where the validation was working as expected. Added editformcolumnindex and now it cannot "find" those columns.
Example following works fine without EditFormIndexColumnIndex
<
telerik:GridDropDownColumn
DataField
=
"itemManager"
UniqueName
=
"editManager"
HeaderText
=
"Manager"
DataSourceID
=
"sqlDataSource6"
ListValueField
=
"adId"
ListTextField
=
"adName"
EditFormColumnIndex
=
"2"
EnableEmptyListItem
=
"true"
EmptyListItemText
=
"Select"
DropDownControlType
=
"RadComboBox"
>
<
ColumnValidationSettings
EnableRequiredFieldValidation
=
"true"
EnableModelErrorMessageValidation
=
"true"
>
<
RequiredFieldValidator
ForeColor
=
"Red"
ErrorMessage
=
" Required Field"
></
RequiredFieldValidator
>
<
ModelErrorMessage
BackColor
=
"Red"
/>
</
ColumnValidationSettings
>
</
telerik:GridDropDownColumn
>
Hi
I bind Appointments manually with resources, but i can't see the added appointment in radscheudler.
RadScheduler1.Resources.Clear();
RadScheduler1.ResourceTypes.Clear();
ResourceType UserName = new ResourceType("User");
UserName.ForeignKeyField = "TEILNEHMERID";
UserName.KeyField = "TEILNEHMERID";
UserName.TextField = "NACHNAME";
UserName.DataSource = dsTLNINGRP_VIEW.Tables[0].DefaultView;
RadScheduler1.ResourceTypes.Add(UserName);
RadScheduler1.GroupBy = "User";
//RadScheduler1.GroupingDirection = GroupingDirection.Vertical;
RadScheduler1.DataSource = ds.Tables[0].DefaultView;
bindHolidays(dsTLNINGRP_VIEW);
RadScheduler1.DataBind();
Here is the bindHolidays Method
…
Appointment appointment = new Appointment();
appointment.ID = ds.Tables[0].Rows[i]["TEILNEHMERID"].ToString();
appointment.Subject = WAMResource.Abwesend;
appointment.Attributes["TYP"] = "A"; //Abwesend Custom Attributes
appointment.Attributes["BACKCOLOR"] = Color.Red.ToString();
appointment.BackColor = Color.Red;
appointment.Resources.Add(new Telerik.Web.UI.Resource("User", ds.Tables[0].Rows[i]["TEILNEHMERID"].ToString(), "Toprak"));
appointment.Start = DateTime.Parse(ds.Tables[0].Rows[i]["STARTTIME"].ToString());
appointment.End = DateTime.Parse(ds.Tables[0].Rows[i]["ENDTIME"].ToString());
RadScheduler1.InsertAppointment(appointment);
Hi,
We have some columns one decimal and some are two decimals. When we export to excel one decimal column values exported to two decimals and hide the last "o" digit. For example, we have a value in a grid 10.20 while export to excel showing 10.2. How to fix the decimal value issues? Any sample application would be appreciated.
Hi,
We need to set the column width in export to excel file. Currently, its fit the width by using its Header Text. We need to customize it like in grid we have 50px column width but when we export to excel we want to set 20px. How can we achieve the goal? Any sample application would be appreciated.
Hi All,
Have RadGrid, which works fine.
I want data Loadding in RadGrid
It Works fine in FireFox and IE
But Google Chrome RadGrid is not Full displayed.
Have attached the screen shot.
Is there any option to rectify this
Thanking You
I need to retrieve the value of the docTitle GridTemplateColumn, but I'm not having any luck. How can I modify my code to get the docTitle value of the selected row:
Here's the grid markup:
<
telerik:RadGrid
ID
=
"rgVenDocs"
runat
=
"server"
DataSourceID
=
"sdsRgVenDocs"
AutoGenerateColumns
=
"False"
AllowPaging
=
"True"
AllowSorting
=
"True"
AllowFilteringByColumn
=
"True"
ShowGroupPanel
=
"True"
Skin
=
"Office2010Black"
OnPreRender
=
"rgVenDocs_PreRender"
OnItemCommand
=
"rgVenDocs_ItemCommand"
OnSelectedIndexChanged
=
"rgVenDocs_SelectedIndexChanged"
ShowStatusBar
=
"true"
ViewStateMode
=
"Enabled"
>
<
ClientSettings
AllowDragToGroup
=
"True"
AllowColumnsReorder
=
"True"
ReorderColumnsOnClient
=
"True"
>
</
ClientSettings
>
<
MasterTableView
DataKeyNames
=
"docIdPk"
DataSourceID
=
"sdsRgVenDocs"
PagerStyle-AlwaysVisible
=
"true"
>
<
Columns
>
<
telerik:GridButtonColumn
ButtonType
=
"LinkButton"
CommandName
=
"Select"
Text
=
"Select"
></
telerik:GridButtonColumn
>
<
telerik:GridBoundColumn
DataField
=
"docIdPk"
ReadOnly
=
"True"
HeaderText
=
"docIdPk"
SortExpression
=
"docIdPk"
UniqueName
=
"docIdPk"
DataType
=
"System.Int32"
FilterControlAltText
=
"Filter docIdPk column"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"docFileName"
HeaderText
=
"docFileName"
SortExpression
=
"docFileName"
UniqueName
=
"docFileName"
FilterControlAltText
=
"Filter docFileName column"
></
telerik:GridBoundColumn
>
<
telerik:GridTemplateColumn
DataField
=
"docTitle"
HeaderText
=
"Document"
UniqueName
=
"docTitle"
SortExpression
=
"docTitle"
HeaderStyle-HorizontalAlign
=
"Center"
ItemStyle-HorizontalAlign
=
"Center"
HeaderStyle-Font-Bold
=
"true"
>
<
ItemTemplate
>
<
asp:LinkButton
ID
=
"lnkDownload"
Text='<%# Eval("docTitle") %>' CommandArgument='<%# Eval("docPath") %>' runat="server" OnClick="lnkDownload_Click"></
asp:LinkButton
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
Here's the SelectedIndexChanged code:
protected
void
rgVenDocs_SelectedIndexChanged(
object
sender, EventArgs e)
{
foreach
(GridDataItem item
in
rgVenDocs.SelectedItems)
{
doctitletest.Text = item[
"docTitle"
].Text;
}
}
Requirements |
|
Telerik Product and Version |
2014.1.410.0 |
Supported Browsers and Platforms |
Windows 7 - Internet Explorer 11, Chrome Version 34.0.1847.131 m, Firefox v28.0 |
Components/Widgets used (JS frameworks, etc.) |
PHP, Javascript, JQuery, HTML, CSS |
[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/5093566007214080. I get 1 error message for every pixel the grid scrolls.
What causes this and how can i prevent it?
i followed the doc of telerik
create new material theme in theme builder, download, unzip to App_themes -> MyTheme folder
Added a MySkin.skin file and add <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
in web.config, add app settings
<add key="Telerik.Skin" value="MySkin"/>
<add key="Telerik.EnableEmbeddedSkins" value="false" />
<add key="Telerik.EnableEmbeddedBaseStylesheet" value="false" />
<add key="Telerik.Web.UI.RenderMode" value="lightweight"/>
Create a new aspx page, add a telerik button control, but skin not implement
I tried add skin="MySkin" on the control, not working
i saw the source code, the button already have "RadButton_MySkin" class there
do i missing anything?
Please help
Thx