I want to add custom attributes to model fields.
Think can I add data-email-msg as attribute to a field in Kendo Grid.(Please look at my example and how I add it..)
here is a example.....
$("#grid").kendoGrid({
columns: [
{ field: "name",
title: "Name",
attributes: {
"class": "table-cell",
style: "text-align: right; font-size: 14px",
data-email-msg : "enter a valid email massage" } } ],
dataSource: [ { name: "Jane Doe" }, { name: "John Doe" }] });
I already know that above is wrong. I am asking, is there a way to do that ??
I need to make my application in such a way that there would be a centralized configurable dateformat for the whole application.
I would store the applicable dateformats in an xml file or a database & the selected dateformat will also be stored.
If for example the user has selected dd/MM/yyyy as the default format, Then every page,user control would display the datepickers,grids,form fields that are datetime in dd/MM/yyyy format throughout the application.
Can you give me a possible solution or approach I should use to achieve this?
Any suggestions of doing it in a generic way so that I dont have to configure it on every page/control/usercontrol(grid, datepicker etc).
Can this be achieved through globalization feature of Telerik UI ? Some demo or documentation would be great.
We're using one version back from the latest telerik release and the grid setup is pretty straight-forward.
There is one detail grid for each row and each column on both the master and detail grids are template columns who have their values displayed with calls to Eval().
If InsertItemDisplay="top" everything looks fine, however InsertItemDisplay="bottom" causes the grid to render as in the attached screenshots.
Notice in the second screenshot the insert row looks fine on the detail grid which makes me think it's an issue with the expand indicator column on the master grid.
Can anyone else reproduce this?
<
telerik:RadScheduler
runat
=
"server"
CssClass
=
"DPScheduler"
OverflowBehavior
=
"Scroll"
ID
=
"rsCalendarEventScheduler"
Skin
=
"Windows7"
DataKeyField
=
"dp_calendar_event_id"
DataStartField
=
"start"
DataEndField
=
"end"
DataSubjectField
=
"subject"
Height
=
"335px"
MonthView-AdaptiveRowHeight
=
"false"
ShowFooter
=
"false"
ReadOnly
=
"true"
ShowViewTabs
=
"false"
TimeSlotContextMenuSettings-EnableDefault
=
"false"
FirstDayOfWeek
=
"Monday"
LastDayOfWeek
=
"Sunday"
OnNavigationComplete
=
"rsCalendarEventScheduler_NavigationComplete"
EnableDescriptionField
=
"true"
MonthView-VisibleAppointmentsPerDay
=
"1"
SelectedView
=
"MonthView"
OnTimeSlotCreated
=
"rsCalendarEventScheduler_TimeSlotCreated"
AppointmentStyleMode
=
"Default"
MonthView-HeaderDateFormat
=
"MMMM yyyy"
>
<
TimeSlotContextMenuSettings
EnableDefault
=
"true"
/>
<
AppointmentContextMenuSettings
EnableDefault
=
"true"
/>
<
AppointmentTemplate
/>
</
telerik:RadScheduler
>
I want to manipulate edittemplate controls from a radgrid from a textchanged event
I cannot figure out how to define the textbox and labels outside of a gridevent.
Does anyone have an example?
Hi,
Create RadDockZone,RadDock dynamically .And in this RadDock inside we can show the rad chart dynamically please help me
<asp:LinkButton ID="lbAddPhone" runat="server" onclientclick="javascript:InsertPhone(); return false;">+ Phone/Email</asp:LinkButton> |
function InsertPhone() { |
var hid = document.getElementById("<%= hidContactId.ClientID %>"); |
var oWnd = $find("<%= wndAddPhone.ClientID %>"); |
oWnd.setUrl("popup_addcontact.aspx?which=3&id=" + hid.value); |
oWnd.show(); |
} |
protected void btnPhoneSave_Click(object sender, EventArgs e) |
{ |
string closingscript = "closeWin();"; |
ScriptManager.RegisterStartupScript(this, this.GetType(), "closeWin", closingscript, true); |
} |
function closeWin() { |
var wind = GetRadWindow(); |
wind.close(); |
} |
function GetRadWindow() { |
var oWindow = null; |
if (window.radWindow) { |
oWindow = window.radWindow; |
} |
else if (window.frameElement.radWindow) { |
oWindow = window.frameElement.radWindow; |
} |
return oWindow; |
} |