Is it possible to get a DatePicker as the editor when doing client-side batch editing? I've tried:
<
telerik:GridDateTimeColumn
DataField
=
"FirstPaymentDate"
PickerType
=
"DatePicker"
HeaderText
=
"1st Pmt. Due"
UniqueName
=
"FirstPaymentDate"
HeaderStyle-Width
=
"100px"
ItemStyle-Width
=
"100px"
HeaderStyle-HorizontalAlign
=
"Center"
ItemStyle-HorizontalAlign
=
"Center"
AllowSorting
=
"false"
/>
and
<telerik:GridTemplateColumn HeaderText="1st Pmt. Due" UniqueName="FirstPaymentDate" DataType="System.DateTime" HeaderStyle-Width="100px" ItemStyle-Width="100px" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" AllowSorting="false"><br> <ItemTemplate><br> <asp:Label runat="server" ID="date"Text='<%# Eval("FirstPaymentDate") %>'><br> </asp:Label><br> </ItemTemplate><br> <EditItemTemplate><br> <telerik:RadDateTimePicker ID="picker1" runat="server" DbSelectedDate='<%# Bind("date") %>'><br> </telerik:RadDateTimePicker><br> </EditItemTemplate><br> </telerik:GridTemplateColumn>
and in neither case do I get a DatePicker control when I click to enter edit mode.
I've searched extensively and haven't been able to find an example that does this. Is it possible? Can someone provide or point me to an example?
Is there an easy way to repeat headers for each record in a radgrid master/detail table?
In records with a lot of children, the headers can scroll off the screen, and then the user has to scroll up and down to read the headers. It would be nice if there were a way to automatically repeat the header each time you write a new MasterHeader, for instance, since RadGrid doesn't have a "freeze" feature where the headers will remain frozen at the top of the screen while the user scrolls down.
Is there an easy way to do this?
MasterHeader
MasterDetail
ChildHeader
ChildDetail
ChildHeader
ChildDetail
ChildHeader
ChildDetail
MasterHeader
MasterDetail
Hello,
I am calling a telerik radbutton's click event via javascript from within a RadAjaxPanel and it is causing a postback rather than a call back. When I click the button manually all works as expected (a callback occurs).
Example:
document.getElementById('<% = SaveEditorButton.ClientID %>').click();
Please help.
protected
void
Page_Load(
object
sender, EventArgs e)
{
tblApertureNetShiftPattern _shifts =
new
tblApertureNetShiftPattern();
string
timeCode =
""
;
string
id = Request.QueryString[
"id"
];
Guid _guid =
string
.IsNullOrEmpty(id) ?
new
Guid() :
new
Guid(id);
_shifts = _dal.GetShiftPatternById(_guid);
if
(Request.Browser.Browser ==
"Firefox"
)
Form.Attributes.Add(
"autocomplete"
,
"off"
);
if
(!IsPostBack)
{
var dlManagersSource = _dal.GetManagers();
rdManagers.DataSource = dlManagersSource;
rdManagers.DataValueField =
"LookupValue"
;
rdManagers.DataTextField =
"LookupDescription"
;
rdManagers.DataBind();
// Then add your first item
var ddlDaysOfWeek = _dal.GetDaysOfWeek().OrderBy(o => o.Order);
rdDayOfWeek.DataSource = ddlDaysOfWeek;
rdDayOfWeek.DataValueField =
"LookupValue"
;
rdDayOfWeek.DataTextField =
"LookupDescription"
;
rdDayOfWeek.DataBind();
var ddlShiftPatterns = _dal.GetShiftPatternTypes();
rdAppointmentType.DataSource = ddlShiftPatterns;
rdAppointmentType.DataValueField =
"LookupValue"
;
rdAppointmentType.DataTextField =
"LookupDescription"
;
rdAppointmentType.DataBind();
}
txtDescription.Text = _shifts.Description;
rdStartShift.SelectedDate = _shifts.startdate;
rdShiftEnd.SelectedDate = _shifts.endDate;
rdDayOfWeek.SelectedValue = _shifts.dayOfWeek.ToString();
rdAppointmentType.SelectedValue = _shifts.appointmentType.ToString();
rdManagers.SelectedValue = _shifts.manager_Id.ToString();
}
/// <summary>
/// Gets the days of week.
/// </summary>
/// <returns></returns>
public
List<StandardLookup> GetDaysOfWeek()
{
List<StandardLookup> lookups =
new
List<StandardLookup>();
try
{
var q = from lookup
in
apertureNetEntities.tblApertureNetLookUps.Where(a => a.lookup_type == Constants.daysOfWeek).OrderByDescending(o => o.colOrder)
orderby lookup.lookup_description
select
new
{
LookLookupValue = lookup.lookup_Code,
LookupDescription = lookup.lookup_description.Trim(),
Order = lookup.colOrder
};
if
(q !=
null
)
{
Array.ForEach(q.ToArray(), l =>
{
lookups.Add(
new
StandardLookup(l.LookLookupValue, l.LookupDescription, l.Order));
});
}
}
catch
(Exception ex)
{
string
inner =
string
.Empty;
if
(ex.InnerException !=
null
)
{
inner = ex.InnerException.ToString();
}
logger.Error(
"Error in GetDaysOfWeek function aperturenetdal "
+ ex.ToString() +
" "
+ inner);
return
null
;
}
return
lookups;
}
Hi,
I'm using the Telerik Rad Spell Checker in my page attached screenshot.
A Textbox and Rad Spell Check.
When I tried to navigate the page using tab key in the Keyboard. At First it is navigated into the Textbox "Text 1" field and when I pressed tab key again, it is pointed to the Rad Spell Checker and Spell Check Dialog Box is opened this seems like a tab key is considered as a click event and once I clicked ok the Dialog Box disappears.
When I press tab key again, the dialog box continuously
opened instead of navigating into the next field in the page which is
"Text 2" Text box.
This behavior is observed in the Firefox Browser only.
But in the Chrome and IE. It's working fine. When I
press tab key after the Text box “Text 1”, it is pointing to the spell checker
but no dialog box is opened and when I pressed tab again it is pointing to the
next fields in the page.
The Telerik Version details are below:
Runtime Version: v4.0.30319
Version:
2014.2.618.45
Attached the screenshots for both.
Regards
Mani