Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
153 views

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? 

 

Senthil
Top achievements
Rank 1
 asked on 17 Aug 2017
0 answers
112 views

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?

 

 

 

SDI
Top achievements
Rank 1
 asked on 17 Aug 2017
0 answers
144 views

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?

Charles
Top achievements
Rank 1
 asked on 17 Aug 2017
0 answers
76 views
I am trying to get an ID field from a radGrid row that I have a checkbox on.  what I want to do is when the user clicks the checkbox is to update a related field in my database to indicate that the item is included or not included.  I am having problems accessing the ID field that I need to.  I tried putting the code in the ClickChanged event for the checkbox but it is not pulling the ID field up.  How is the best way to do this?  Any help would be appreciated.
Donald
Top achievements
Rank 1
 asked on 17 Aug 2017
2 answers
116 views

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>

Vessy
Telerik team
 answered on 17 Aug 2017
1 answer
169 views

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

Eyup
Telerik team
 answered on 17 Aug 2017
0 answers
81 views

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

K W
Top achievements
Rank 1
 asked on 17 Aug 2017
0 answers
87 views

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

 

 

 

K W
Top achievements
Rank 1
 asked on 17 Aug 2017
0 answers
93 views

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

Roger
Top achievements
Rank 1
 asked on 17 Aug 2017
1 answer
149 views

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.....

Christopher
Top achievements
Rank 1
 answered on 16 Aug 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?