Hi, I have a client rowclick event and also a checkbox column - how do you use both together without the checking causing a rowclick event - or how do I determine the column clicked inside the rowclick so I can ignore the event when it is in the checkbox column.
Regards
Jon
Hi,
I've got a RadHtmlChart that is displayed as a radar chart. I want to make it so that the labels around the outside, follow the same angle as their corresponding x-axis. As far as I have been able to work out, I can only change the angle of all of the labels at one time. What I currently have is:
<telerik:RadHtmlChart ID="RadHtmlChart1" runat="server" DataSourceID="sqlGetResults" Legend-Appearance-Visible="false" Height="100%" Width="100%" PlotArea-XAxis-DataLabelsField="QUESTION" PlotArea-XAxis-LabelsAppearance-Step="1" PlotArea-XAxis-StartAngle="45">
<Appearance>
</Appearance>
<PlotArea>
<XAxis Visible="True" StartAngle="45">
</XAxis>
<YAxis Visible="True">
</YAxis>
</PlotArea>
</telerik:RadHtmlChart>
Any help would be greatly appreciated.
Kind regards,
Dan
I need help understanding a couple of code blocks got from the demo but it works
1) got this code from the demo. It works. I just don't understand how it works. What does the Dictionary does (ELI5)
protected void RadSearchBox1_Search(object sender, SearchBoxEventArgs e)
{
RadSearchBox searchBox = (RadSearchBox)sender;
string JobOrderNumber = string.Empty;
string likeCondition;
if (e.DataItem != null)
{
JobOrderNumber = ((Dictionary<
string
, object>)e.DataItem)["JobOrderNumber"].ToString();
if (!string.IsNullOrEmpty(JobOrderNumber))
{
likeCondition = string.Format("'{0}{1}%'", searchBox.Filter == SearchBoxFilter.Contains ? "%" : "", ((Dictionary<
string
, object>)e.DataItem)["JobOrderNumber"].ToString());
SqlDataSource1.SelectCommand = "SELECT [JobOrderIndex], [JobOrderNumber], [JobOrderDate], [JobOrderStatus], [ProfitCenter], [JobType]" + "FROM[Bak-JobOrder] WHERE [" + searchBox.DataValueField + "] LIKE " + likeCondition;
RadGrid1.DataBind();
}
}
}
2) I added a scenario using the UI in visual studio. I Master/Detail scenario which is similar to this demo.
What does this code do?
protected void Page_PreRender(object sender, EventArgs e)
{
if (RadGrid1.SelectedIndexes.Count == 0)
RadGrid1.SelectedIndexes.Add(0);
if (RadGrid2.SelectedIndexes.Count == 0)
{
RadGrid2.Rebind();
RadGrid2.SelectedIndexes.Add(0);
}
}
protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
{
RadGrid2.SelectedIndexes.Clear();
}
So,I have an HtmlChart that I'm using for some graphs a client of mine needs. I've managed to get everything done up just so, but I noticed when I looked at the tooltip for the points,that the points appear to be plotted in the wrong location. (See image)
I've double-checked that the tooltip is showing the correct values for the points. But as you can see in the image, the points are off.
Any help with this is greatly appreciated.
Hi,
I am using a web application, which does not have a master page. I have a header.ascx page, in which I have declared TabStrip. The tabstrip is displaying fine, but on selecting a page, the tab header color is not getting changed and also not showing sub tabs.
I used the below code:
Header.ascx:
<
telerik:RadTabStrip
ID
=
"MyTab1"
CausesValidation
=
"false"
SelectedIndex
=
"0"
runat
=
"server"
Skin
=
"Forest"
EnableEmbeddedSkins
=
"false"
>
<
Tabs
>
<
telerik:RadTab
runat
=
"server"
Text
=
"Home"
NavigateUrl
=
"~/abc.aspx"
>
</
telerik:RadTab
>
</
Tabs
>
</
telerik:RadTabStrip
>
In abc.aspx, I have referenced the header.ascx page, and I am trying to use the radtab as below in cs code:
RadTabStrip menuStrip = (RadTabStrip).FindControl("RadTab");
menuStrip.FindTabByValue("abc").Selected = true;
How to refer the tab strip in subsequent pages?
Thanks
For some reason the previous and next buttons are not updating my clanedar the date with the back button and next button.
<telerik:RadScheduler ShowAllDayRow=
"false"
OnTimeSlotCreated=
"apertureAppointments_TimeSlotCreated"
OverflowBehavior=
"Auto"
runat=
"server"
WeekView-ShowDateHeaders=
"true"
ID=
"apertureAppointments"
TimelineView-UserSelectable=
"false"
DayView-UserSelectable=
"true"
AgendaView-UserSelectable=
"True"
DataKeyField=
"ID"
DataSubjectField=
"Subject"
AllowInsert=
"false"
AllowDelete=
"false"
AllowEdit=
"false"
DataStartField=
"Start"
DataEndField=
"End"
DataRecurrenceField=
"RecurrenceRule"
DayView-EnableExactTimeRendering=
"true"
WeekView-UserSelectable=
"True"
SelectedView=
"WeekView"
DataRecurrenceParentKeyField=
"RecurrenceParentID"
DataSourceID=
"EntityDataSource1"
StartInsertingInAdvancedForm=
"True"
MonthView-UserSelectable=
"True"
AgendaView-NumberOfDays=
"5"
RowHeight=
"40px"
RenderMode=
"Classic"
EnableExactTimeRendering=
"True"
DataReminderField=
"Reminder"
Width=
"800px"
Height=
"1000px"
EnableDatePicker=
"true"
ShowHeader=
"true"
ShowDateHeaders=
"true"
DayStartTime=
"09:00:00"
ShowFooter=
"false"
DayEndTime=
"18:00"
FirstDayOfWeek=
"Monday"
LastDayOfWeek=
"Friday"
HoursPanelTimeFormat=
"HH:mm tt"
OnAppointmentClick=
"apertureAppointments_AppointmentClick"
OnTimeSlotContextMenuItemClicking=
"apertureAppointments_TimeSlotContextMenuItemClicking"
EnableDescriptionField=
"true"
AppointmentStyleMode=
"Default"
Skin=
"Metro"
OnNavigationCommand=
"apertureAppointments_NavigationCommand"
>
<AdvancedForm Modal=
"True"
/>
<Reminders MaxAge=
"5"
/>
<Reminders Enabled=
"true"
></Reminders>
<TimeSlotContextMenuSettings EnableDefault=
"false"
/>
<AppointmentContextMenuSettings EnableDefault=
"false"
/>
<DayView EnableExactTimeRendering=
"True"
/>
<AdvancedForm Modal=
"true"
></AdvancedForm>
<ResourceTypes>
<telerik:ResourceType KeyField=
"lookup_code"
Name=
"Managers"
TextField=
"lookup_description"
ForeignKeyField=
"managerId"
DataSourceID=
"ManagersDataSource"
></telerik:ResourceType>
</ResourceTypes>
<ResourceStyles>
<%--AppointmentStyleMode must be explicitly
set
to Default (see above) otherwise setting BackColor/BorderColor
will
switch
the appointments to Simple rendering (no rounded corners and gradients)--%>
<telerik:ResourceStyleMapping Type=
"Managers"
Text=
"Natalie Edgar"
BackColor=
"#512479"
ApplyCssClass=
"appointment"
/>
<telerik:ResourceStyleMapping Type=
"Managers"
Text=
"Clare Coyle"
BackColor=
"#512479"
ApplyCssClass=
"appointment"
/>
<telerik:ResourceStyleMapping Type=
"Managers"
Text=
"Christine Clarke"
BackColor=
"#512479"
ApplyCssClass=
"appointment"
/>
<telerik:ResourceStyleMapping Type=
"Managers"
Text=
"Adam Adair"
BackColor=
"#512479"
ApplyCssClass=
"appointment"
/>
</ResourceStyles>
</telerik:RadScheduler>
</ContentTemplate>
</asp:UpdatePanel>
<asp:EntityDataSource runat=
"server"
ID=
"EntityDataSource1"
ConnectionString=
"name=aperturenetEntities"
DefaultContainerName=
"aperturenetEntities"
EntitySetName=
"Appointments"
EnableDelete=
"true"
EnableInsert=
"true"
EnableUpdate=
"true"
>
</asp:EntityDataSource>
<asp:SqlDataSource ID=
"RoomsDataSource"
runat=
"server"
ProviderName=
"System.Data.SqlClient"
ConnectionString=
"<%$ ConnectionStrings:aperturenetSql %>"
SelectCommand=
"SELECT * FROM [Rooms]"
></asp:SqlDataSource>
<asp:SqlDataSource ID=
"ManagersDataSource"
runat=
"server"
ConnectionString=
"<%$ ConnectionStrings:aperturenetSql %>"
SelectCommand=
"SELECT * FROM [tblApertureNetLookUps] WHERE lookup_type='11787CA6-DE99-4E0E-83D2-7D96E0FD11A3'"
></asp:SqlDataSource>
<telerik:GridNumericColumn NumericType="Currency" DataField="Valor" DataType="System.Decimal" HeaderText="Valor" SortExpression="Valor" UniqueName="Valor" DataFormatString="{0:C2}"> |
<ItemStyle HorizontalAlign="Right"></ItemStyle> |
</telerik:GridNumericColumn> |
I need to export my already filtered data grid, but my requirement says that inactive records should not be exported, so i'm trying to do this :
01.
grdCct.ExportSettings.IgnorePaging =
true
;
02.
grdCct.ExportSettings.ExportOnlyData =
true
;
03.
grdCct.ExportSettings.Csv.FileExtension =
"csv"
;
04.
grdCct.ExportSettings.FileName =
"Export_"
+ DateTime.Now.ToShortDateString();
05.
// Column 6 is my "Active" column as text "Y/N"
06.
grdCct.Columns[6].CurrentFilterValue=
"Y"
;
07.
grdCct.MasterTableView.Rebind();
08.
09.
grdCct.MasterTableView.ExportToCSV();
Regards,
Hi, i have a problem with a RadSearchBox in IE11.
My SearchBox works when i launch the page for the first time, but in my page i use a modal window, wich is simply a Div. When this modal window is open, i put the Div which contains the SearchBox (and other elements) in "visibility: hidden;".
And when i close my modal window, i put it back to "visibility: visible", and from that moment it is impossible to write in the SearchBox.
I tried to add javascript to solve the problem, but nothing worked. Does someone have an idea?
1.
var
input = $j(
"#<%=SearchBox.ClientID%> input[type=text]"
);
2.
input.focus(
function
() {
3.
this
.value =
""
;
4.
this
.contenteditable =
true
;
5.
})