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.
I made a simple grid (using control) and have a that filters details on the grid based on the item selected item in the combo box
Here's what have on the client side for the
<
label
for
=
"Label1"
>Select One:</
label
>
<
telerik:RadComboBox
ID
=
"RadComboBox1"
runat
=
"server"
DataSourceID
=
"SqlDataSource2"
DataTextField
=
"GroupCompany"
DataValueField
=
"GroupCompany"
AutoPostBack
=
"true"
AppendDataBoundItems
=
"true"
>
<
Items
><
telerik:RadComboBoxItem
Text
=
" "
Value
=
" "
Selected
=
"true"
/></
Items
>
</
telerik:RadComboBox
>
<
asp:SqlDataSource
runat
=
"server"
ID
=
"SqlDataSource2"
ConnectionString='<%$ ConnectionStrings:SiteSqlServer %>' SelectCommand="SELECT * FROM [Table-GroupCompany]"></
asp:SqlDataSource
>
<
br
/>
The grid uses a different source (SqlDataSrouce1) just for everyone's reference. I used the demo for using Combobox as filter for RadGrid
How do make a button that will execute the filter functionality that the makes?
I couldn't follow nor find the demo for making a filter button (because perhaps it's too much spoon feeding :p) I appreciate any help possible.
Thank you!
Dear all,
I have enabled filtering in my grid, and out 8 column one only is having drop down filter where other are regular filtering.
Issue I'm facing is
I selected the drop down value first it works fine later I selected the regular filter column which filters the grid without taking the previous filter condition given my drop down .
How to fix this issue bit URGENT someone please respondH
WWith thanks
Amjath
Hello,
I have a problem, the customValidator with ClientValidationFunction (Client side) doesn't fire when I go to the next step.
If I use OnServerValidate in my CustomValidator, it's fire.
My RadWizardStep contains a radgrid and the customvalidator.
here is my code:
VB:
<telerik:RadWizardStep Title="Client" StepType="Step" ValidationGroup="RequireClient" CausesValidation="true">
<asp:CustomValidator ID="cvRequireClientStep" ClientValidationFunction="validerWizardClient"
EnableClientScript="true" ErrorMessage="" runat="server" ValidationGroup="RequireClient"/>
<telerik:RadGrid ID="rgWizardWekClient" runat="server" AllowPaging="true" PageSize="20"
CellSpacing="0" AutoGenerateColumns="false" AllowFilteringByColumn="True"
OnNeedDataSource="rgWizardWekClient_NeedDataSource"
CssClass="radGridStyle" GridLines="None">
<GroupingSettings CaseSensitive="false" />
<ClientSettings ReorderColumnsOnClient="True">
<Scrolling AllowScroll="True" SaveScrollPosition="true"
UseStaticHeaders="True" />
<Selecting AllowRowSelect="True"/>
</ClientSettings>
<MasterTableView AllowFilteringByColumn="True" DataKeyNames="kun_kunid">
<Columns>
<telerik:GridBoundColumn DataField="kun_kunnr" HeaderStyle-HorizontalAlign="Center" HeaderText="N°" UniqueName="Numero"
FilterControlWidth="80px" ShowFilterIcon="false" AutoPostBackOnFilter="true" CurrentFilterFunction="EqualTo" >
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="per_name1" HeaderStyle-HorizontalAlign="Center" HeaderText="Nom" UniqueName="Nom"
FilterControlWidth="80px" ShowFilterIcon="false" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" >
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Adresse" HeaderStyle-HorizontalAlign="Center" HeaderText="Adresse" UniqueName="Adresse"
FilterControlWidth="80px" ShowFilterIcon="false" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" >
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
</telerik:RadWizardStep>
JS:
function validerWizardClient(sender, eventArgs){
var rgClientWep = $find("<%= rgWizardWekClient.ClientID %>");
var masterTableView = rgClientWep.get_masterTableView();
var selectedItems = masterTableView.get_selectedItems();
eventArgs.IsValid = false;
if (selectedItems.length == 1) {
eventArgs.IsValid = true;
}
}
Thanks to spend time for me :)
01.
<telerik:RadGrid ID=
"rgNotes"
runat=
"server"
GroupPanelPosition=
"Top"
>
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=
"Subject"
FilterControlAltText=
"Filter Subject column"
HeaderText=
"subject"
ReadOnly=
"True"
SortExpression=
"Subject"
UniqueName=
"Subject"
>
08.
</telerik:GridBoundColumn>
09.
</Columns>
10.
11.
<EditFormSettings EditFormType=
"Template"
InsertCaption=
"Add new Note"
>
12.
<FormTemplate>
13.
Subject
14.
<p>
15.
<telerik:RadTextBox ID=
"txtSubjectNotes"
Width=
"200px"
runat=
"server"
></telerik:RadTextBox>
16.
</p>
17.
<p>
18.
</p>
19.
20.
<telerik:RadButton ID=
"rdSaveNotes"
OnClick=
"rdSaveNotes_Click"
Skin=
"Bootstrap"
BackColor=
"#512479"
ForeColor=
"White"
runat=
"server"
Text=
"Save Notes"
></telerik:RadButton>
21.
<telerik:RadButton ID=
"rdCancel"
OnClick=
"rdCancel_Click1"
CommandName=
"Cancel"
Skin=
"Bootstrap"
BackColor=
"#512479"
ForeColor=
"White"
runat=
"server"
Text=
"Cancel"
></telerik:RadButton>
22.
</FormTemplate>
23.
</EditFormSettings>
24.
</MasterTableView>
25.
<ClientSettings>
26.
<ClientEvents OnPopUpShowing=
"PopUpShowing"
/>
27.
<Selecting AllowRowSelect=
"true"
/>
28.
</ClientSettings>
29.
</telerik:RadGrid>
<telerik:RadDateTimePicker ID="formExten_AuthEndDate" runat="server" AutoPostBack ="true" >
</telerik:RadDateTimePicker>
Private Sub formExten_AuthEndDate_SelectedDateChanged(ByVal sender As Object, ByVal e As Telerik.Web.UI.Calendar.SelectedDateChangedEventArgs) Handles formExten_AuthEndDate.SelectedDateChanged
''''''''''
End Sub
Is there a way that I can have a colorpicker on the contextmenu of a radtreeview?
I need to pick a color for the node in javascript.
If not possible, can I open an auxiliary window and have the return color?
Thanks!
Hi,
I need to use RadClientExportManager within a broader framework such as DotNetNuke 8. From the examples on for the ClientExportManager it seems that it can only be used inside aspx file, is there a possibility to use it inside control (ascx) ?
If it is not possible, is there some sort of workaround that I can implement ?
Any advise is greatly appreciated.
Alex.
Hi Team,
I am using RadHTMLChart,
I am able to find the Layout mode property in Radchat which is used for Start the line from starting point of Y-Axis, The same equivalent property of x-axis in RadHTMLChart I am not able to find.
Please help me, Also please refer the screen shot which explain my requirement