Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
90 views

We are attempting to update the drag handle text to match the current value.  The basic technique is outlined here: https://www.telerik.com/forums/display-the-current-values

The problem is that the text is not updated when the page is loaded.  We tried to access the drag handles (get_dragHandles()[0]) in the client load event, but the drag handles are null at that point.  Looking at the state of the control at this point shows some interesting values such as "initialized internal" being false and not value being set the for the "drag handle element".  If I retrieve the drag handles in another event such as value changed they exist and these values are set as expected.

_dragHandleElement: null
_initializedInternal: false

 

We simplified our example down to the following and the behavior is reproducible.  We are using version 2019.1.215.45 of the controls.

<telerik:RadSlider ID="sldTest" RenderMode="Lightweight" BackColor="Red" Value="50" ForeColor="Blue" MinimumValue="0" MaximumValue="100" Width="500" ShowDragHandle="True" OnClientLoad="sldTest_ClientLoad" OnClientValueChanged="sldTest_ClientValueChanged" runat="server" />
 

          function sldTest_ClientLoad(slider, args) {
              //alert(slider.get_dragHandles()[0]);
          }

          function sldTest_ClientValueChanged(slider, args) {
              alert(slider.get_dragHandles()[0].firstChild.innerHTML);
          }

Rumen
Telerik team
 answered on 29 Jun 2020
3 answers
221 views

Hi,

 

I am trying to implement Batch edit mode for radGrid where on cell value changed triggers a javascript function. This function saves the changes made to the grid. I have this part working.

I wanted to do the same call using ajax but I couldn't find a way to do it. Following are the required details of this problem.

1. RadGrid is being added from codebehind and is added in a radPane like this.radpane.Controls.Add(RadGrid).

2. RadAjaxManager exists on the MasterPage and I am able to call the instance of it on my page.

 

Can someone guide me how to get this to work?

Thanks,

Swanand Nalawade

Doncho
Telerik team
 answered on 29 Jun 2020
5 answers
2.3K+ views
There is a DropDownHeight property that sets the height of the dropdownlist. How do I make this work like the MaxHeight property of the RadCombobox? It looks ridiculous with 1 entry with a large size set (eg 300px). If I allow the autocompletebox to resize the dropdownlist by itself, then its fine with a few records, but it scrolls off the page when many records match the filter.
Ciupaz
Top achievements
Rank 2
Veteran
 answered on 29 Jun 2020
12 answers
339 views

In autocomplete textbox i am able to select same item multiple times, how can i avoid selecting same item multiple times.

Example:

1. Autocomplete shows list of fruits

2. I will select Apple.

3. Next again i will select apple

 

Now apple is selected 2 times, this is a problem.

How to avoid this?

Please help me in this regard.

Thanks for your cooperation in advance.

 

--

Jagadish Konnur

Ciupaz
Top achievements
Rank 2
Veteran
 answered on 29 Jun 2020
4 answers
110 views

Hello,

We've been using the Telerik Upload and AsyncUpload since 2013 and they usually work great.

However in the last 24 hours an issue has started to pop up where some of our customers are unable to upload.  The upload starts and freezes at 2 mb in the Progress Control.

I'm wondering if anyone else is having the same issue.

Peter Milchev
Telerik team
 answered on 29 Jun 2020
0 answers
139 views
How to use this chat tool for application user conversation and store their chat to database. When user login, he would to get his chat history with other members.
SURYA
Top achievements
Rank 2
 asked on 28 Jun 2020
2 answers
203 views

I have a slider with divs that get updated on clientside with the slider value.

I noticed that my slidervalue changes first and there's a little lag when the draghandle responds. Below is my slider definition and my client side code. Could you help me figure the delay in the drag handle response?

<telerik:RadSlider  ID="RadSliderAge" runat="server"  MinimumValue="0" MaximumValue="90"
IsSelectionRangeEnabled="true" SelectionStart="45" SelectionEnd="70"  SmallChange="1"
OnClientSlide="clientValueAgeChange" OnClientLoad="clientValueAgeLoad" ShowDecreaseHandle="true"     ShowIncreaseHandle="true"  TrackMouseWheel="false"
    ThumbsInteractionMode="Lock" Skin="Material"
>
</telerik:RadSlider>
function clientValueAgeLoad(sender, eventArgs) {
    var CurrentAgeCtrl = document.getElementById("CurrentAgeCtrl");
    var RetirementAgeCtrl = document.getElementById("RetirementAgeCtrl");
    CurrentAgeCtrl.innerHTML = sender.get_selectionStart();
    RetirementAgeCtrl.innerHTML = sender.get_selectionEnd();
}

function clientValueAgeChange(sender, eventArgs) {
    var CurrentAgeCtrl = document.getElementById("CurrentAgeCtrl");
    var RetirementAgeCtrl = document.getElementById("RetirementAgeCtrl");
    CurrentAgeCtrl.innerHTML = sender.get_selectionStart();
    RetirementAgeCtrl.innerHTML = sender.get_selectionEnd();
    CalcOutputs();
}

 

Doncho
Telerik team
 answered on 26 Jun 2020
4 answers
1.0K+ views

Hi,

How can we supply a Strem or external URL in the PdfjsProcessingSettings.File in the code behind?

Thank you.

Peter Milchev
Telerik team
 answered on 26 Jun 2020
1 answer
3.3K+ views

I have recently inherited a ASP.NET WebFroms application that uses Telerik.Web.UI (version 2014.2.724.40). I am trying to run the application but getting the following error regarding "~/Telerik.Web.UI.WebResource.axd' is missing in web.config".

The web.config does contain Telerik.Web.UI.WebResource as in attached web.config images.

Please advise on a solution.

Rumen
Telerik team
 answered on 25 Jun 2020
2 answers
142 views

I would like to implement a feature that depends on what user types in -- so I need to constantly check the contents of the input box. The obvious way of doing it is by running a JS function invoked by the onkeyup (or onkeypress, etc) but AutoCompleteBox is not firing the event.

A snippet of my code:

<script>
function ChangeTest() {
   console.log('changed');
}
</script>
 
<telerik:RadAutoCompleteBox RenderMode="Lightweight" runat="server" ID="RadAutoCompleteBox1"
            autopostback="true"
            DataSourceID="SqlDataSource1" DataTextField="field1" DataValueField="field2" InputType="Token" Width="100%"
            DropDownWidth="150px"
            OnEntryAdded="RadAutoCompleteBox1_EntryAdded"
            OnEntryRemoved="RadAutoCompleteBox1_EntryRemoved"
            OnClientEntryAdded="CheckEntry"
            OnClientEntryRemoved="CheckEntry"
            onkeyup="ChangeTest"
>

 

What am I doing wrong?

Thanks!

Yan Moura
Top achievements
Rank 1
Veteran
Iron
 answered on 25 Jun 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?