Following Kendo grid filter as suggested in below link
http://docs.telerik.com/kendo-ui/controls/data-management/grid/how-to/filtering/grid-filter-as-you-type.html
Question: When i type the character in the cell, the change event is getting triggered which is good. However the cursor position is always setting to the end of the text. for example, if user types in the middle of the word, immediately cursor is set to the end after trigger change event is fired.
Is there a way to retain the cursor position as the user type in?
I have a menu that i wish to change the datasource via javascript. Is this exposed?
Say i have 4 different XMLDatasources that could be used as the datasourceid on a menu depending on a button click. I need to change the radmenu DataSourceID to the different XML datasources in Javascript. Is this possible?
I had a simple question that I can't seem to find the answer to. On my RadGrid I am using a pager and I want the First/Last/Next/Previous buttons to disable dynamically depending on if they are on the first page or last page. I don't want to disappear, but just get disabled. I have attempted this chunk of code down below:
if (e.Item is GridPagerItem)
{
GridPagerItem pagerItem = (GridPagerItem)e.Item;
if (pagerItem.Paging.IsFirstPage)
{
pagerItem.CssClass = "RadFirstPage";
((Button)pagerItem.FindControl("ctl03")).Enabled = false;
}
else if (pagerItem.Paging.IsLastPage)
pagerItem.CssClass = "RadLastPage";
}
but the button still is able to be clicked on and hovered over. I want it to be completely disabled and without any hover action. Any ideas/suggestions/solutions/alcohol?
Hello,
I am trying to register my AsyncUpload's HttpHandler that is nested within a <location> tag and it does not appear to be recognized. The appropriate <handlers> and <httpHandlers> have been registered and work properly if we remove the <location> tag in question, but when we go to put it into production with the tag present and we receive errors. Is there a fix or work around for this?
<location path="." inheritInChildApplications="false">
<system.web>
<httpHandlers>
</system.web>
<system.webServer>
<handlers>
</system.webServer>
</location>
I want to highlight the parent menu item on selecting the child menu item. I have written the script written in the examples, but the FindItemByUrl returns empty don't know why.
Here is the script.
Dim currentItem As RadMenuItem = RadMenu1.FindItemByUrl(Request.Url.PathAndQuery)
If currentItem IsNot Nothing Then
'Select the current item and his parents
currentItem.HighlightPath()
Else
RadMenu1.Items(0).HighlightPath()
End If
I am trying to export a page to PDF that contains RadHtmlCharts, but I am getting a RadAjaxManager error.
Here is the html:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
</telerik:RadAjaxManager>
<telerik:RadHtmlChart ChartTitle-Text="Overall" runat="server" ID="rcOverall" Width="600px" Height="400px" Skin="Bootstrap" DataSourceID="sqlOverall" RegisterWithScriptManager="false">
<PlotArea>
<Series>
<telerik:BarSeries Name="BarSeries1" DataFieldY="points">
<LabelsAppearance Visible="false" />
<TooltipsAppearance Visible="false" />
</telerik:BarSeries>
</Series>
<XAxis DataLabelsField="Section" >
<TitleAppearance Text="Section">
<TextStyle FontSize="12" Bold="true" />
</TitleAppearance>
</XAxis>
<YAxis Visible="false" MinValue="0" MaxValue="27" Step="3">
<TitleAppearance Text="Total Mark">
<TextStyle FontSize="12" Bold="true" />
</TitleAppearance>
</YAxis>
</PlotArea>
<Legend>
<Appearance Visible="false" />
</Legend>
</telerik:RadHtmlChart>
The code to export is:
Response.ContentType = "application/pdf"
Response.AddHeader("content-disposition", "attachment;filename=Image.pdf")
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Dim sw As New StringWriter()
Dim hw As New HtmlTextWriter(sw)
Me.Page.RenderControl(hw)
Dim srdr As New StringReader(sw.ToString())
Dim pdfDoc As New Document(PageSize.A4, 15.0F, 15.0F, 75.0F, 0.2F)
Dim hparse As New HTMLWorker(pdfDoc)
PdfWriter.GetInstance(pdfDoc, Response.OutputStream)
pdfDoc.Open()
hparse.Parse(srdr)
pdfDoc.Close()
Response.Write(pdfDoc)
Response.[End]()
When I run it I get an error:
Script control 'RadAjaxManager1' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().
Can anyone please help with this as I have looked everywhere and anything I have tried doesn't work!!!.
Any help would be very welcome.
Thanks
K
I am trying to export a page to PDF and when the code reaches the page render section, I am getting an error for the RadAjaxManager.
I have several RadHtmlCharts on the page and am trying to export them to a PDF. Here is a snippet of the control:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
</telerik:RadAjaxManager>
<telerik:RadHtmlChart ChartTitle-Text="Overall" runat="server" ID="rcOverall" Width="600px" Height="400px" Skin="Bootstrap" DataSourceID="sqlOverall" RegisterWithScriptManager="false">
<PlotArea>
<Series>
<telerik:BarSeries Name="BarSeries1" DataFieldY="points">
<LabelsAppearance Visible="false" />
<TooltipsAppearance Visible="false" />
</telerik:BarSeries>
</Series>
<XAxis DataLabelsField="Section" >
<TitleAppearance Text="Section">
<TextStyle FontSize="12" Bold="true" />
</TitleAppearance>
</XAxis>
<YAxis Visible="false" MinValue="0" MaxValue="27" Step="3">
<TitleAppearance Text="Total Mark">
<TextStyle FontSize="12" Bold="true" />
</TitleAppearance>
</YAxis>
</PlotArea>
<Legend>
<Appearance Visible="false" />
</Legend>
</telerik:RadHtmlChart>
The code to export:
Protected Sub ExportButton_OnClick(sender As Object, e As EventArgs) Handles ExportButton.Click
Response.ContentType = "application/pdf"
Response.AddHeader("content-disposition", "attachment;filename=Image.pdf")
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Dim sw As New StringWriter()
Dim hw As New HtmlTextWriter(sw)
Me.Page.RenderControl(hw)
Dim srdr As New StringReader(sw.ToString())
Dim pdfDoc As New Document(PageSize.A4, 15.0F, 15.0F, 75.0F, 0.2F)
Dim hparse As New HTMLWorker(pdfDoc)
PdfWriter.GetInstance(pdfDoc, Response.OutputStream)
pdfDoc.Open()
hparse.Parse(srdr)
pdfDoc.Close()
Response.Write(pdfDoc)
Response.[End]()
End Sub
Hi,
I have a situation where we're wanting to use a Gantt in an ASP.NET repeater (so the user can look at individual project meta data and progress etc). However the Rad Gantt doesn't appear to play nicely in a repeater.
As soon as I add the gantt control (whether straight into the repeaters item template, or in a user control) it tries to do it;s binding and rendering while the repeater's header is being processed.
Any suggestions?
Cheers
-Roger
I've tried everything I can think of to get the export working but I keep getting:
System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.ArgumentOutOfRangeException: Width must be non negative. Parameter name: value at System.Web.UI.WebControls.Style.set_Width(Unit value) at Telerik.Web.UI.RadDataBoundControl.set_Width(Unit value) at Telerik.Web.UI.Scheduler.SchedulerExporter.RenderControl(Page page) at Telerik.Web.UI.Scheduler.SchedulerExporter.PdfExportRenderForm(HtmlTextWriter nullWriter, Control form)
I do not know which control(s) this is referring to.....