Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
79 views

Hi Team

We have removed the AjaxControlToolkit reference as it is no longer required from our solution.  However, one file, where no changes were made, is now breaking, after we removed the AjaxControlToolkit package. This file uses the Telerik RadCalendar control and is breaking during initialization.

Interestingly, the error disappears when the AjaxControlToolkit package is re-added.  The following error is noticed when toolkit package is removed ,

Uncaught TypeError: Cannot read properties of undefined (reading '_events')
    at Sys.UI.DomEvent.addHandler (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_rsmMain_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a4533c2d0-c52e-4b49-a697-806d77e9914d%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2021.3.1111.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3abcb430ee-771a-4d39-a6d4-3550d81a8d67%3a16e4e7cd%3a365331c3%3a88144a7a%3aed16cbdc%3a24ee1bba%3ab2e06756%3a92fe8ea0%3afa31b949%3ac128760b%3a19620875%3a874f8ea2%3af46195d3%3a4877f69a%3a33715776%3a490a9d4e%3abd8f85e4%3a58366029%3a2003d0b8%3a1e771326%3aaa288e2d%3a258f1c72%3ae330518b%3ac8618e41%3ae4f8f289%3a1a73651d%3a333f8d94:6:57366)
    at Telerik.Web.UI.RadCalendar.initialize (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_rsmMain_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bTelerik.Web.UI%2c+Version%3d2021.3.1111.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3abcb430ee-771a-4d39-a6d4-3550d81a8d67%3a59462f1%3aa51ee93e:109:8)
    at Telerik.Web.UI.RadCalendar.endUpdate (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_rsmMain_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a4533c2d0-c52e-4b49-a697-806d77e9914d%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2021.3.1111.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3abcb430ee-771a-4d39-a6d4-3550d81a8d67%3a16e4e7cd%3a365331c3%3a88144a7a%3aed16cbdc%3a24ee1bba%3ab2e06756%3a92fe8ea0%3afa31b949%3ac128760b%3a19620875%3a874f8ea2%3af46195d3%3a4877f69a%3a33715776%3a490a9d4e%3abd8f85e4%3a58366029%3a2003d0b8%3a1e771326%3aaa288e2d%3a258f1c72%3ae330518b%3ac8618e41%3ae4f8f289%3a1a73651d%3a333f8d94:6:53689)
    at Sys.Component.create (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_rsmMain_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a4533c2d0-c52e-4b49-a697-806d77e9914d%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2021.3.1111.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3abcb430ee-771a-4d39-a6d4-3550d81a8d67%3a16e4e7cd%3a365331c3%3a88144a7a%3aed16cbdc%3a24ee1bba%3ab2e06756%3a92fe8ea0%3afa31b949%3ac128760b%3a19620875%3a874f8ea2%3af46195d3%3a4877f69a%3a33715776%3a490a9d4e%3abd8f85e4%3a58366029%3a2003d0b8%3a1e771326%3aaa288e2d%3a258f1c72%3ae330518b%3ac8618e41%3ae4f8f289%3a1a73651d%3a333f8d94:6:55151)
    at <anonymous>:4:5
    at Sys._Application.add_init (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_rsmMain_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a4533c2d0-c52e-4b49-a697-806d77e9914d%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2021.3.1111.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3abcb430ee-771a-4d39-a6d4-3550d81a8d67%3a16e4e7cd%3a365331c3%3a88144a7a%3aed16cbdc%3a24ee1bba%3ab2e06756%3a92fe8ea0%3afa31b949%3ac128760b%3a19620875%3a874f8ea2%3af46195d3%3a4877f69a%3a33715776%3a490a9d4e%3abd8f85e4%3a58366029%3a2003d0b8%3a1e771326%3aaa288e2d%3a258f1c72%3ae330518b%3ac8618e41%3ae4f8f289%3a1a73651d%3a333f8d94:6:67025)
    at <anonymous>:1:17
    at Sys._ScriptLoader._loadScriptsInternal (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_rsmMain_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a4533c2d0-c52e-4b49-a697-806d77e9914d%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2021.3.1111.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3abcb430ee-771a-4d39-a6d4-3550d81a8d67%3a16e4e7cd%3a365331c3%3a88144a7a%3aed16cbdc%3a24ee1bba%3ab2e06756%3a92fe8ea0%3afa31b949%3ac128760b%3a19620875%3a874f8ea2%3af46195d3%3a4877f69a%3a33715776%3a490a9d4e%3abd8f85e4%3a58366029%3a2003d0b8%3a1e771326%3aaa288e2d%3a258f1c72%3ae330518b%3ac8618e41%3ae4f8f289%3a1a73651d%3a333f8d94:15:4736)
    at Sys._ScriptLoader._loadScriptsInternal (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_rsmMain_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a4533c2d0-c52e-4b49-a697-806d77e9914d%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2021.3.1111.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3abcb430ee-771a-4d39-a6d4-3550d81a8d67%3a16e4e7cd%3a365331c3%3a88144a7a%3aed16cbdc%3a24ee1bba%3ab2e06756%3a92fe8ea0%3afa31b949%3ac128760b%3a19620875%3a874f8ea2%3af46195d3%3a4877f69a%3a33715776%3a490a9d4e%3abd8f85e4%3a58366029%3a2003d0b8%3a1e771326%3aaa288e2d%3a258f1c72%3ae330518b%3ac8618e41%3ae4f8f289%3a1a73651d%3a333f8d94:15:4794)
    at Sys._ScriptLoader._loadScriptsInternal (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_rsmMain_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a4533c2d0-c52e-4b49-a697-806d77e9914d%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2021.3.1111.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3abcb430ee-771a-4d39-a6d4-3550d81a8d67%3a16e4e7cd%3a365331c3%3a88144a7a%3aed16cbdc%3a24ee1bba%3ab2e06756%3a92fe8ea0%3afa31b949%3ac128760b%3a19620875%3a874f8ea2%3af46195d3%3a4877f69a%3a33715776%3a490a9d4e%3abd8f85e4%3a58366029%3a2003d0b8%3a1e771326%3aaa288e2d%3a258f1c72%3ae330518b%3ac8618e41%3ae4f8f289%3a1a73651d%3a333f8d94:15:4794)

The corresponding ajax and vb file is uploaded here for review.

Rumen
Telerik team
 answered on 21 Nov 2024
1 answer
58 views

Hi,

I am using telerik data grid, i hav menu on datagrid header, when i click its going very far from datagrid, i want to keep my this menu popup just next to header where ever I click.

 

its in aspx page and using vb.net code behind.

 

any suggestion?

 

Thanks

1 answer
72 views

Hi, I have a RadGrid with AllowFilteringByColumn="True" and multiple columns with with the properties set up for filtering, like so:
AutoPostBackOnFilter="false" FilterControlWidth="100%" CurrentFilterFunction="StartsWith" ShowFilterIcon="false" FilterDelay="4000"

When I filter by 1 column, it works fine. Then I filter by an additional column, it works fine.

The problem seems to be when I clear those 2 column filters at the same time.  The first column that is cleared, retains the filter value.

Another option would be to only do the filter when the user hits <enter>.  After thinking about it, this may be the better choice, anyway, as it is more what the users are accustomed to.  I see a bunch of old answers on how to do this, but nothing very current.

Thanks!

Vasko
Telerik team
 answered on 19 Nov 2024
1 answer
93 views
I have Radtreeview loaded with data, I click item in the tree to select it, but the selected item is NOT highlighted
Vasko
Telerik team
 answered on 19 Nov 2024
11 answers
206 views
I am an oncologist who is now using electronic medical records for patient care.  About 5 weeks ago our practice purchased software from Altos Solutions for EMR.  We use their product OncEMR.  It is a web based program and they use RadEditor as their text editor.


When creating a web-based visit note on a patient, there are several sections where one can enter information.  "Past medical history", "Physical Exam" etc.  The one section that I am interested in keeping up-to-date is an ongoing treatment history.

In the "treatment history" I'd like to keep track of certain results.  In doing so, I would like to make simple charts (without lines) that demonstrate certain key elements in the progress of the patient.

OncoEMR uses RadEditor (not that they tell me that, but when I click on the "?" button on the editor, to tells me that it is "RadEditor."  Now, this may be a toned down, free version of the editor.... I suspect it is.  But it is amazing to me what it cannot seem to do.  And if you say that RadEditor is WYSIWYG, this most certainly isn't.  But perhaps I am criticizing a fine product for what it's junior free version cannot do..... or perhaps there is a way to accomplish what I want that I can't figure out.  (Nevermind that the Altos Solutions has no clue how to fully use the web editor that they provide with their EMR... so far they have not been able to help and seem very puzzled.)

I'd like to make a simple chart, something like this.

date:      Hemoglobin:

02/14/11       13.3
06/10/11       12.5
11/14//11      10.9
03/22/12         9.6

Someone in business might do something similar:

name:       contract dollars:     Costs:

Randy              $12,500             $600
Karl                  $11,100             $700
Frank                 $9,000             $360

Now, I don't know if the above columns will line up until  I post.  They would not line up in most internet forums.  They would like up if I prepared this post on Hotmail.  In word perfect and in word for window they line up without a problem, whether I use the tab button or not.  In OncoEMR they line up some of the time and most times do not, but can be made to line up with mulitple edits.  Even then, they may lose their positions.  I find it very difficult to line up date like this into column no matter which formating I use, align left, or any of the other posibilities.

My sense is that there is not a function for the tab key in any internet program (I don't know why) and that RadEditor, like any email program does not recognize the tab function (too bad!) but the fact that RadEditor assigns more space to a "space" than to a "letter" also makes this lining up task more difficult.  (I can do a half-decent job by makeing the $9,000 above a $09,000 which looks clumsy but works.

So, is the difficulty in lining up columns in RadEditor just a missing function that no one ever considered important?  Or do I need to get Altos Solutions to pony up for a better version of RadEditor?  Or is there a way to do this with the free, or junior version that I can't figure out (and Altos has no clue either)?

By the way, I do notice the table function in the editor and suppose that this could be a resource... but I can't figure it out and like I said, Altos Solutions, who incorporates this version of RadEditor into their software doesn't know how to use it either.

Thanks for your help!

David

ps: yep, they line up quite well on this forum post..... something that I can't do within RadEditor
Prateek Sanganeria
Top achievements
Rank 1
Iron
 updated answer on 18 Nov 2024
4 answers
404 views

I am trying to use the self-referencing hierarchy functionality of the grid but not working properly when we have huge data.

We are getting the error as follows,

 "Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property."

When i googgled,i got the following code snippet has to be added in  the web.config to increase the maxJsonLength property:

 <system.web.extensions>
    <scripting>
      <webServices>
        <jsonSerialization maxJsonLength="500000">
        </jsonSerialization>
      </webServices>
    </scripting>
  </system.web.extensions>

We also tried to increase the maxJsonLength value. But still  getting the same error.

My code:

.aspx page:

<telerik:RadGrid ID="RadGrid1" runat="server" Skin="" Width="97%" GridLines="None"
        ShowHeader="False">
        <MasterTableView HierarchyDefaultExpanded="True" HierarchyLoadMode="Client" DataKeyNames="ID,ParentScheduleID"
            Width="100%" AutoGenerateColumns="False">
            <SelfHierarchySettings ParentKeyName="ParentScheduleID" KeyName="ID" MaximumDepth="2"  />
            <Columns>
                <telerik:GridBoundColumn DataField="ScheduleName" HeaderText="ScheduleName" UniqueName="ScheduleName">
                </telerik:GridBoundColumn>
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>

.aspx.cs:(code behind)

  protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {        

            BindGrid();
        }
    }

    public void BindGrid()
    {
        DBLayer objDbLayer= new DBLayer();    

        DataSet dsSchedules = objDbLayer.GetScheduleData(ProjectId);

        if (dsSchedules.Tables.Count > 0)
        {           
            RadGrid1.DataSource = dsSchedules.Tables[0];

            RadGrid1.DataBind();
        }


    }

kindly help to resolve this error.

Thanks & Regards,

Venkatraman Gururaj.

Rumen
Telerik team
 answered on 18 Nov 2024
1 answer
150 views
 Hi I am using telerik:RadEditor control when i try to load the file into editor window i am getting "Error while executing filter CleanAttributesFilter - RangeError: Maximum call stack size exceeded" error. im getting this error oly my file size is more then 3MB HTML text. Can some one help me out how to resolve this ?
Rumen
Telerik team
 answered on 15 Nov 2024
2 answers
408 views

look at you site it doesnt work on here either

https://demos.telerik.com/aspnet-ajax/multiselect/serversideevents/defaultcs.aspx

Vasko
Telerik team
 answered on 15 Nov 2024
1 answer
59 views

I am using a function that updates the style of the input controls on a webform.

<script>
$(function () {
if (typeof ValidatorUpdateDisplay != 'undefined') {
var originalValidatorUpdateDisplay = ValidatorUpdateDisplay;
ValidatorUpdateDisplay = function (val) {
if (!val.isvalid) {
$("#" + val.controltovalidate).css("border", "1px solid #C00");
}
else {
$("#" + val.controltovalidate).css("border", "0px solid #777");
}
originalValidatorUpdateDisplay(val);
}
}
});
</script>

<telerik:RadDatePicker ID="rdpServiceDateFrom" runat="server" MinDate="1/1/1900" MaxDate='<%# Now() %>' Width="100px" >
<Calendar ID="Calendar9" runat="server" ShowRowHeaders="false">
<SpecialDays>
<telerik:RadCalendarDay Repeatable="Today" ItemStyle-BackColor="#DDEEFF" />
</SpecialDays>
</Calendar><DateInput CssClass="requiredField" DateFormat="MM/dd/yy" Width="1"></DateInput>
</telerik:RadDatePicker>
<asp:RequiredFieldValidator ID="rfvrdpServiceDateFrom" runat="server" ControlToValidate="rdpServiceDateFrom" ErrorMessage="Service Date is required" ValidationGroup="ValidationGroupGetAProcedure" Display="None" />

All works well with other controls on the form (RadTextBox, RadDropdown, etc), but it cannot set the style on a RadDatePicker
Any ideas on how this can be modified or a workaround?

Vasko
Telerik team
 answered on 11 Nov 2024
1 answer
70 views

Hi,

Been using Telerik UI for ASP.NET AJAX from 2012.
This year we decided to update to newer version.

When we started using the newer version we started having some layout related problems.
We have not made any changes to our code between updating the Telerik package.

When creating an appointment in scheduler we have added three custom attributes, BookedBy, Created and Temperatur.
The three attributes are shown but they show the property name instead of the custom label we have set for the control as shown in third picture.

First picture shows how the GUI have looked so far.
Second picture shows how the GUI looks after changing to the newer version.
Third and fourth pictures are screen dumps of the code.

Thanks in advance for any help you can give.

Edit

I realize my initial post wasn't very clear on my question.

My question is how to get the label of the custom attributes in
the appointment window, to be different from the names given in the telerik:Radscheduler tag.

In the older version of telerik package you could override the label shown in the appointment window.
In earlier version of telerik UI package this was done in the function you set in onformedcreated parameter of telerik:Radscheduler tag,
get the control linked to the custom attribute using following code:

RadTextBox CreatedByTextbox = (RadTextBox)e.Container.FindControl("AttrBookedBy");

and then change the label shown by changing the label of the control:

CreatedByTextbox.Label = "Skapad av:";

However in newer version of telerik UI package this doesn't seem to give the same behavior any more.

In my example I want the custom attribute BookedBy label in appointment window to be shown as "Skapad av:", how would I go about getting this behavior?

Joakim
Top achievements
Rank 1
 updated question on 11 Nov 2024
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?