Hi there,
Can anyone guide me on how to display custom text in RadScheduler AgendaView?
1 Change word "Agenda" on to "Custom Text"
2 Change Column header from "Appointment" to "Custom Text"
3 Change the word "appointment" in "Are you sure you want to delete this appoinement" to "Custom Text"
Please help. Thank you.
Hi, I am trying to export the scheduler to pdf using the exportToPdf method, and on long schedules with paging enabled returns black images after the first page, where the schedule image should be. Does anyone know the cause and solution to this?
The code for when the export occurs looks like this:
var schedulerPdfSettings = RadScheduler1.ExportSettings.Pdf;
schedulerPdfSettings.PageTitle = "some title";
schedulerPdfSettings.PaperOrientation = ScheduleSessionManager.IsTimelineView ? SchedulerPaperOrientation.Landscape : SchedulerPaperOrientation.Portrait;
schedulerPdfSettings.AllowPaging =
true
;
RadScheduler1.ExportSettings.OpenInNewWindow =
true
;
string
[] styleSheets = {
"../../Content/css/scheduleExport.css"
};
schedulerPdfSettings.StyleSheets = styleSheets;
RadScheduler1.ExportToPdf();
Hi
I have a working treelist on the page and need to add some functionality via buttons so when one is pressed some javascript attempts to find the treelist control using the standard $find(controlname) syntax. This fails and just returns null. I have double checked the clientID is correct and when using document.getElementById it returns the element part so I know that is OK.
Other than this the actual control with paging etc works just fine on the page.
Any suggestions on what might cause this?
Regards
Jon
Hi
Quite tricky one to explain this but it would appear the RADHtmlChart with a Data navigator is plotting the incorrect values.
I set the datasource to a datatable which has 1353 rows. When I hover the Star label it should a tooltip with a note in it. Some work OK but others don't. Please see attached images.
I have noticed when I use JavaScript to get the data (instead of the dataitem) the ID column is incorrect it is using "251" and should be using 281. I have attached an image of the data table in excel.
It would appear for the pressureAltitude_129_ParameterNote it is plotting the wrong row in the datatable.
Hi Guys,
I spend lots of time but unable to success to skip the wizard step based on condition. I used differernt techniques but didn't get success kindly guide me. I just want to skip some steps based on certain condition.
Using:
function changeActiveIndex(gotoIndex) {
var wizard = $find("<%= RadWizard1.ClientID %>");
wizard.set_activeIndex(gotoIndex);
//wizard.set_activeWizardStep = wizard.get_wizardStepByIndex(2);
}
My RadGrid mark up is like this.
<telerik:RadAjaxPanel ID="gridPanel" runat="server" EnableViewState="true">
<telerik:RadGrid runat="server" ShowGroupPanel="true" PagerStyle-AlwaysVisible="true" MasterTableView-TableLayout="Fixed" ID="cmhgrid" Skin="Metro" Height="425px"
EnableViewState="true" AutoGenerateColumns="false" AllowPaging="true" OnNeedDataSource="cmhgrid_NeedDataSource">
<MasterTableView AllowPaging="true" GroupLoadMode="Server" PagerStyle-PageSizes="15" PagerStyle-Mode="NextPrevAndNumeric" TableLayout="Fixed" AllowFilteringByColumn="true"
AllowMultiColumnSorting="true" ClientDataKeyNames="SRVC_ORDER_UNIT, ORDER_NUMBER">
<Columns>
<telerik:GridBoundColumn DataField="SRVC_ORDER_UNIT" HeaderText="Service Order Unit" HeaderStyle-Width="150px" FilterControlWidth="114px"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="ORDER_NUMBER" HeaderText="Order Number" HeaderStyle-Width="150px" FilterControlWidth="114px"></telerik:GridBoundColumn>
<telerik:GridNumericColumn DataField="MRR" HeaderText="MRR" DataFormatString="{0:c}" HeaderStyle-Width="150px" FilterControlWidth="114px"></telerik:GridNumericColumn>
<telerik:GridBoundColumn DataField="BUSINESS_ORG_NAME" HeaderText="Business Organisation Name" HeaderStyle-Width="300px" FilterControlWidth="264px"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="FORECAST" HeaderText="Forecast" HeaderStyle-Width="110px" FilterControlWidth="74px" ></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="TARGET_MONTH" HeaderText="Target" HeaderStyle-Width="110px" FilterControlWidth="74px"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="CCM_USR" HeaderText="CCM" HeaderStyle-Width="150px" FilterControlWidth="114px"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="CCM_MGR" HeaderText="CCM_MGR" HeaderStyle-Width="150px" FilterControlWidth="114px"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="CCM_DIR" HeaderText="CCM_DIR" HeaderStyle-Width="150px" FilterControlWidth="114px" ></telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<ClientSettings EnableRowHoverStyle="true" AllowColumnsReorder="true" ColumnsReorderMethod="Reorder"
AllowDragToGroup="true" AllowGroupExpandCollapse="false" AllowColumnHide="true" ReorderColumnsOnClient="false">
<Selecting AllowRowSelect="true" />
<Scrolling AllowScroll="true" UseStaticHeaders="true" SaveScrollPosition="true" />
<Resizing EnableRealTimeResize="true" AllowColumnResize="false" ResizeGridOnColumnResize="true" />
</ClientSettings>
<GroupingSettings CaseSensitive="false" ShowUnGroupButton="true" />
</telerik:RadGrid>
</telerik:RadAjaxPanel>
I'm able to group data, collapse/expand grouping data. But when I click on the "Click here to ungroup" i.e) small 'x' icon on the grouped column I get a error like this in the below mentioned section.
0x800a138f - JavaScript runtime error: Unable to get property 'get_masterTableView' of undefined or null reference
function onclick(event)
{
$find('cmhgrid').get_masterTableView()._ungroupByExpression('0:0'); return false;__doPostBack('cmhgrid$GroupPanel$ctl04','') //Error occurs here
}
I'm unsure why this occurs. The radgrid is present in a simple aspx page without any other controls. And also similar functionality on other pages have been working fine.
Any help would be great. Thanks!
Hello,
Is there a way to set the title bar height of the dock, i tried using a custom css class found in another thread but it does not seem to be working.
Could it be overriden by the Skin set in appConfig?
.CustomHeight .rdTop .rdLeft,
.CustomHeight .rdTop .rdRight,
.CustomHeight .rdTop .rdCenter
{
height: 80px;
}
/*overwirtes the original line-height of the Dock in order to fit the new titbar height*/
.CustomHeight .rdTitleBar em
{
font: Arial;
height: 50px;
font-size: large;
}
Thanks
Hi, I have been trying to enable and disable zoom in my column htmlchart through a RadCheckBox and a Javascript function which I call in the RadCheckBox event OnClientCheckedChanged, and this is my function:
function Cambio_Chk_Zoom(args) {
var b = $find("ctl00_MainContent_ChartCantClientes");
a = $telerik.toHtmlChart(b);
if ($telerik.findCheckBox("<%=CheckBox1.ClientID %>").get_checked() == false) {
a.get_kendoWidget().options.zoomable.mousewheel = "false";
a.get_kendoWidget().options.zoomable.mousewheel.lock = "none";
}
else {
a.get_kendoWidget().options.zoomable.mousewheel = "true";
a.get_kendoWidget().options.zoomable.mousewheel.lock = "y";
}
a.repaint();
}
Initially of course I can't zoom with the mouse scroll.
I have already tested the function and it goes correctly to the if statement, i.e.: when it should enable zooming, it goes to else and it enables the wheel zoom, and when it should disable zooming it goes to the if part but it does't disable the zoom.
The other problem is that it really doesn't lock my y axis in the zoom.
I have this in my chart creation: ChartName.Zoom.Enabled = true;
I have read something about the default state of the chart but that didn't help me.
Any help will be appreciated.
Thanks in advance.
I have searched and tried different things for 2 days. I am exporting RadGrid to Excel. Has worked in the past and just quit working in production. Works on my local machine.
<telerik:RadGrid ID="grdCustom" AllowSorting="True" runat="server" GridLines="None" Width="100%"
OnExcelMLExportStylesCreated="grdCustom_ExcelMLExportStylesCreated"
OnExcelMLExportRowCreated="grdCustom_ExcelMLExportRowCreated" AutoGenerateColumns="true" Style="overflow: hidden">
<MasterTableView UseAllDataFields="true"></MasterTableView>
</telerik:RadGrid>
When the 'Export to Excel' button is clicked, the following is executed:
grdCustom.ExportSettings.ExportOnlyData = True
grdCustom.ExportSettings.OpenInNewWindow = True
grdCustom.MasterTableView.UseAllDataFields = True
grdCustom.MasterTableView.ExportToExcel()
Like I mentioned earlier, works on my local machine but not in production environment.
I have a radgrid using a form template to do my inserts and updates. I was wondering how you would keep the grid in edit or update mode from the onInsertCommand/onUpdateComman event handlers? I have tried using the onItemInserted and onItemUpdated handlers but my code never reaches the event. I would just like to display an error if validation failed. I have attached snippets of my code.
<
telerik:radgrid
runat
=
"server"
id
=
"gridSection"
skin
=
"Windows7"
OnNeedDataSource
=
"gridSection_NeedDataSource"
onitemdatabound
=
"gridSection_ItemDataBound"
OnDetailTableDataBind
=
"gridSection_DetailTableDataBind"
onupdatecommand
=
"gridSection_UpdateCommand"
oninsertcommand
=
"gridSection_InsertCommand"
onitemcommand
=
"gridSection_ItemCommand"
onprerender
=
"gridSection_PreRender"
HierarchySettings-CollapseTooltip
=
"Hide child defects."
HierarchySettings-ExpandTooltip
=
"View child defects."
oniteminserted
=
"gridSection_ItemInserted"
onitemupdated
=
"gridSection_ItemUpdated"
>
protected void gridSection_UpdateCommand(object sender, GridCommandEventArgs e)
{
try
{
QASectionDTO dto = convertSelectedGridSectionItemToDto(e);
validateSection(dto);
update(dto);
}
catch (Exception ex)
{
//display error and keep in update mode
}
}
protected void gridSection_InsertCommand(object sender, GridCommandEventArgs e)
{
try
{
QASectionDTO dto = convertSelectedGridSectionItemToDto(e);
validateSection(dto);
insert(dto);
}
catch (Exception ex)
{
//display error and keep in edit mode
}
}
protected void gridSection_ItemInserted(object sender, GridInsertedEventArgs e)
{
e.KeepInInsertMode = true;
}
protected void gridSection_ItemUpdated(object sender, GridUpdatedEventArgs e)
{
e.KeepInEditMode = true;
}
protected void validateSection(QASectionDTO dto)
{
if (dto.QASectionID == 0) throw new ArgumentException("A Section was not Selected.");
if (dto.QAQuestionID == 0) throw new ArgumentException("A Question was not Selected.");
if (dto.Result == "0") throw new ArgumentException("A Result was not Selected.");
if (dto.QAQuestionID == 0) throw new ArgumentException("A Question was not Selected.");
if (dto.Result.Equals("Pass") && dto.QAQuestionID.Equals("0")) throw new ArgumentException("A Defect Code was not Selected.");
if (dto.HasChild && (dto.ChildDefectIDs.Count == 0)) throw new ArgumentException("At least one Child Defect is required.");
}