I have RadioButtonList with 2 items
<
rad:GridTemplateColumn
HeaderText
=
"Modalidad"
UniqueName
=
"Modalidad"
>
<
ItemTemplate
>
<
asp:Label
runat
=
"server"
ID
=
"lblModalidad"
Text='<%# Eval("Modalidad") %>'></
asp:Label
>
</
ItemTemplate
>
<
EditItemTemplate
>
<
asp:RadioButtonList
runat
=
"server"
ID
=
"rblModalidad"
RepeatDirection
=
"Horizontal"
AutoPostBack
=
"true"
OnSelectedIndexChanged
=
"rblModalidad_SelectedIndexChanged1"
>
<
asp:ListItem
Text
=
"Valor"
Value
=
"0"
></
asp:ListItem
>
<
asp:ListItem
Text
=
"Obligatorio"
Value
=
"1"
></
asp:ListItem
>
</
asp:RadioButtonList
>
<
asp:RequiredFieldValidator
runat
=
"server"
ID
=
"rfvRblModalidad"
ControlToValidate
=
"rblModalidad"
ErrorMessage
=
"Debe seleccionar una Modalidad."
Display
=
"none"
></
asp:RequiredFieldValidator
>
</
EditItemTemplate
>
</
rad:GridTemplateColumn
>
The radiobuttonlist with a RequiredFieldValidator in a EditItemTemplate, the Radgrid and the ValidationSummary is in side of a fieldset.
This RadioButtonList has a bit of logic in server side, and the visualization and server code works perfect.
If I use Ajax, the selected item set the "dot" but it disappears the dot, so if I do click a second time, then dot appears correctly
If I don't use Ajax, the dot appears correctly
<
rad:RadAjaxManager
ID
=
"RajaxManager"
runat
=
"server"
EnableAJAX
=
"true"
>
<
AjaxSettings
>
<
rad:AjaxSetting
AjaxControlID
=
"fsGrilla"
>
<
UpdatedControls
>
<
rad:AjaxUpdatedControl
ControlID
=
"fsGrilla"
LoadingPanelID
=
"RadAjaxLoadingPanel"
/>
</
UpdatedControls
>
</
rad:AjaxSetting
>
</
AjaxSettings
>
</
rad:RadAjaxManager
>
<
rad:AjaxLoadingPanel
ID
=
"RadAjaxLoadingPanel"
runat
=
"server"
Transparency
=
"25"
ZIndex
=
"10"
>
<
asp:Image
ID
=
"Image1"
runat
=
"server"
ImageUrl
=
"~/images/load.gif"
AlternateText
=
"Loading..."
>
</
asp:Image
>
</
rad:AjaxLoadingPanel
>
Any ideas?
saludos
I am wanting to try and create a reoccurance rule through just code I found the guide of http://docs.telerik.com/devtools/aspnet-ajax/controls/scheduler/recurrence-editor/server-side-programming/populating-the-recurrence-rule by the way their is a spelling error at the top of the document in the h2 created.
I understand that I need to use recurrenncerange but I am saving my appointment via entity framework so i have two properties which i gather I need to populate.
RecurrenceRule
RecurrenceParentID
Can you please explain using the below methods if I can save the required information into the nvarchar that will allow the re ourrance data to show I am wanting to use this to show the days off that a staff memeber has.
01.
/Creating a Weekly Recurrence rule
02.
int
interval = 2;
03.
RecurrenceRange range =
new
RecurrenceRange();
04.
range.Start = DateTime.Now;
05.
range.EventDuration = TimeSpan.FromMinutes(30);
06.
range.MaxOccurrences = 3;
07.
RecurrenceDay recurrenceDay = RecurrenceDay.Wednesday;
08.
recurrenceEditor.RecurrenceRule =
new
WeeklyRecurrenceRule(interval, recurrenceDay, range);
09.
//DayOfWeek startDayOfWeek = DayOfWeek.Tuesday;
10.
//recurrenceEditor.RecurrenceRule = new WeeklyRecurrenceRule(interval, recurrenceDay, range, startDayOfWeek);
I am trying to figure out how to achevie the following I am using the edit pop to allow user to edit multple note records my problem I am having is that I cant seem to figure out how to get the id passed to my save command on the popup dialog.
01.
<telerik:RadGrid ID=
"rgNotes"
runat=
"server"
GroupPanelPosition=
"Top"
OnItemCommand=
"rgNotes_ItemCommand"
>
02.
<GroupingSettings CollapseAllTooltip=
"Collapse all groups"
></GroupingSettings>
03.
<MasterTableView NoDetailRecordsText=
"No notes for this Appointment"
AutoGenerateColumns=
"False"
CommandItemDisplay=
"Top"
CommandItemSettings-AddNewRecordText=
"Add Notes"
AllowAutomaticInserts=
"true"
EditMode=
"PopUp"
>
04.
<Columns>
05.
<telerik:GridEditCommandColumn UniqueName=
"EditCommandColumn"
>
06.
</telerik:GridEditCommandColumn>
07.
<telerik:GridBoundColumn DataField=
"notes_id"
FilterControlAltText=
"Filter notes_id column"
HeaderText=
"notes_id"
ReadOnly=
"True"
SortExpression=
"notes_id"
Visible=
"false"
UniqueName=
"notes_id"
>
08.
</telerik:GridBoundColumn>
09.
<telerik:GridBoundColumn DataField=
"Subject"
FilterControlAltText=
"Filter Subject column"
HeaderText=
"Subject"
ReadOnly=
"True"
SortExpression=
"Subject"
UniqueName=
"Subject"
>
10.
</telerik:GridBoundColumn>
11.
</Columns>
12.
13.
<EditFormSettings EditFormType=
"Template"
InsertCaption=
"Add new Note"
CaptionFormatString=
"Please enter or update note"
>
14.
<FormTemplate>
15.
16.
<telerik:RadTextBox ID=
"txtNotesId"
Width=
"200px"
runat=
"server"
></telerik:RadTextBox>
17.
18.
Subject
19.
<p>
20.
<telerik:RadTextBox ID=
"txtSubjectNotes"
Width=
"200px"
runat=
"server"
></telerik:RadTextBox>
21.
</p>
22.
<p>
23.
Notes<br />
24.
<telerik:RadTextBox ID=
"RadTextBox1"
TextMode=
"MultiLine"
Rows=
"10"
Columns=
"10"
Width=
"200px"
runat=
"server"
></telerik:RadTextBox>
25.
</p>
26.
27.
<telerik:RadButton ID=
"rdSaveNotes"
OnClick=
"rdSaveNotes_Click"
Skin=
"Bootstrap"
BackColor=
"#512479"
ForeColor=
"White"
runat=
"server"
Text=
"Save Notes"
></telerik:RadButton>
28.
<telerik:RadButton ID=
"rdCancel"
OnClick=
"rdCancel_Click1"
CommandName=
"Cancel"
Skin=
"Bootstrap"
BackColor=
"#512479"
ForeColor=
"White"
runat=
"server"
Text=
"Cancel"
></telerik:RadButton>
29.
</FormTemplate>
30.
</EditFormSettings>
31.
</MasterTableView>
32.
<ClientSettings>
33.
<ClientEvents OnPopUpShowing=
"PopUpShowing"
/>
34.
<Selecting AllowRowSelect=
"true"
/>
35.
</ClientSettings>
36.
</telerik:RadGrid>
37.
</telerik:RadAjaxPanel>
Obv I need a way of passing the value to my save event but I cant seem to think how at present I no in the grids normal way of doing it you can dothis in the item command.
01.
protected
void
rdSaveNotes_Click(
object
sender, EventArgs e)
02.
{
03.
try
04.
{
05.
int
id = Convert.ToInt32(Request.QueryString[
"id"
]);
06.
tblApertureNetNote _note =
new
tblApertureNetNote();
07.
08.
// _note = _dal.GetNotesById(id);
09.
10.
_note.appointment_id = id;
11.
12.
_note.isActive =
true
;
13.
_note.isDeleted =
false
;
14.
_note.subject = txtSubject.Text;
15.
if
(_note.EntityState == System.Data.EntityState.Detached)
16.
_dal.Addnotes(_note);
17.
18.
rgNotes.DataBind();
19.
}
20.
catch
(Exception ex)
21.
{
22.
logger.Error(
"Error in rdSaveNotes_Click function calandar edit.aspx"
+ ex.ToString());
23.
}
24.
}
And this is how I would normally pass the primary key but here I do not no how to ?.
1.
protected
void
rgNotes_ItemCommand(
object
sender, Telerik.Web.UI.GridCommandEventArgs e)
2.
{
3.
GridDataItem item = e.Item
as
GridDataItem;
4.
Guid id =
new
Guid(item.GetDataKeyValue(
"notes_id"
).ToString());
5.
}
Hello,
Saving to excel is not working depending on the amount of data. Columns with formulas are the cause.
Less amount of data can be converted to excel.
Sample JSON here: https://drive.google.com/file/d/0B-ORCNWgXhVoYWVvQUYybjhRWVE/view?usp=sharing
Telerik.Web.Spreadsheet.dll 2016.1.301.45
Hello! I'm new to the forum,I hope you can help,I created a RadHtmlChart with Telerik,when I pass the mouse over a point the topltip shown as I show in the image Link: http://imgur.com/KE1D5qW
How I can do to change the format to Spanish?
Dear Telerik team,
I am developing MVC web site. I am using telerik (grid in existing views) and Kendo(combobox in new view). In _layouts page Jquery-1.7.1.min.js was referenced.
Grid is working. but If I changed reference from JQuery-1.7.1 to Jquery.min.js file getting script issues like version not supported like that.
If I use JQuery-1.7.1 only then KendoComboBox is undefined.
If I use both 2012.2.607/JQuery-1.7.1(_layouts) and Kendo/Jquery.min.js(view) then nothing is working.
Please help me how to resolve these issues. Please suggest good approach.
Hello,
I want to export a grid whose width exceeds the width of a A4 in landscape. The last right column is cut in the middle and the right margin has disappeared. It's
very ugly.
Is there a standard solution or configuration to export correctly the grid i.e. that the last column is not exported because it is not complete ? or must I that completly program...
or it is possible at least to Keep the right margin even if the column is cut ?
Thanks in advance.
Sébastien
I just upgrade to 2016.1.225 (Feb 25, 2016) and I'm having a problem with legacy code that used a client side template to add some more information to the appointment.
This is how the appointment div was rendered before.
<
div
class
=
"rsAptContent"
style
=
""
>
Anthony Lee, Jr.<
span
class
=
"apptDate "
> - 1:30 PM</
span
>
<
div
class
=
"apptDescription"
> - Civil</
div
>
<
a
href
=
"#"
class
=
"rsAptDelete"
style
=
"visibility: hidden;"
>delete</
a
>
</
div
>
This is how it renders now in release 2016.1.225 (Feb 25, 2016)
<
div
class
=
"rsAptContent"
style
=
""
>DAP Clinic Salisbury 10-1 Ann Shaw</
div
>
<
span
class
=
"apptDate "
> - 9:30 AM</
span
><
div
class
=
"apptDescription"
></
div
>
<
a
href
=
"#"
class
=
"rsAptDelete"
style
=
"visibility: hidden;"
title
=
"delete"
><
span
class
=
"rsIcon rsIconDelete"
></
span
></
a
>
<
span
class
=
"rsAptResize rsAptResizeStart"
></
span
>
<
span
class
=
"rsAptResize rsAptResizeEnd"
></
span
>
The rsAptDelete link is not inside of the appointment content div.
I got this code from Telerik to modify the appointment content.
function
OnClientDataBound(scheduler) {
var
$ = jQuery;
// using templates to create the subject & date on the appointment
$(
".rsAptDelete"
).each(
function
() {
var
apt = scheduler.getAppointmentFromDomElement(
this
);
// creating an object containing the data that should be applied on the template
var
descValue = { Description: apt.get_description() };
var
startValue = { Start: apt.get_start().format(
'h:mm tt'
) };
if
(descValue.Description.indexOf(
'Cambridge'
) != -1)
apt.set_cssClass(
'rsCategoryYellow'
);
// instantiate the template, populate it and insert before the delete handler (".rsAptDelete")
$(
"#tmplAppDate"
).tmpl(startValue).insertBefore(
this
);
$(
"#tmplAppDescription"
).tmpl(descValue).insertBefore(
this
);
});
}
Not sure how to get this working now.