Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
165 views
I am looking to programmatically insert a new item in the TreeList client-side (javascript). I basically want to create a new item, set the new cell values,  its parent, and insert it into the tree at a predetermined position.  I found how to do this with the TreeView, but not the TreeList.
Eyup
Telerik team
 answered on 01 May 2017
1 answer
92 views

Hi,
I have problems retrieving the text of a raddropdownlist.
I populate the ddl in a quite basic way (Articles is a datatable):

ddlArticle.DataSource = Articles;
ddlArticle.DataTextField = "Description";
ddlArticle.DataValueField = "CodArt";
ddlArticle.DataBind();

Changing the selected value triggers nothing.
A button near the ddl triggers some events (basically, a databind on a radgrid); at this time i need to read datatextfield and datavaluefield:

string opv = ddlArticle.SelectedValue;
string articlename = ddlArticle.SelectedItem.Text;

ddlArticle.SelectedValue works perfectly and opv really contains the selected value, but ddlArticle.SelectedItem.Text throws an exception:

Exception thrown: 'System.NullReferenceException' in App_Web_prodotto.aspx.11948b1e.cmqcknjt.dll ("Object reference not set to an instance of an object.")

So i tried another way:

string opv = ddlArticle.SelectedValue;
RadComboBoxItem Item = ddlArticle.FindItemByValue(opv);
string article = Item.Text;

Again, opv contains the correct value, but Item.text is null, and Item is null too.

I am using Telerik 2016.3.

Thank you for any help you can provide.

 

 
Eyup
Telerik team
 answered on 01 May 2017
1 answer
215 views

Hi Team,

We need to prevent auto correct for raddatepicker. such as client entered 04/31/2017 it is automatically changed as 05/01/2017. we dont want autocorrect. instead of we need to show warning. if i entered 04/32/2017 it is throw warning correctly. we dont want just script for fix this issue. In our application we are using more than 500 pages. we need to have the common fix. it is very urjent. Please help us ASAP.

 

Thanks,

 

 

Eyup
Telerik team
 answered on 01 May 2017
0 answers
137 views

HI,

I  am using a Batch Mode to do updates and deletes,I am using GridButtonColumn for delete  operations and I am using OnDeleteCommand to bind the server side code. Now when I click the Delete buttons the row is deleted on Client side but server side even is triggered only when I hit 'Save Changes' which is fine.

I want to disable the row until the user hits save changes button(for visual indication that this row is marked for deletion and will be deleted on hitting save changes button) and causes a post back.

 

 

Thanks,

Harish.

Harish
Top achievements
Rank 1
 asked on 28 Apr 2017
3 answers
104 views

There are 4 directories I'm curious if I need to distribute along with our deployed web products:

RadControls

Scripts

TabControl

radSkins

Rumen
Telerik team
 answered on 28 Apr 2017
5 answers
155 views

There are some compatibility issues which we are facing corresponding to the Radtreeview in IE 11 browser. We are getting a JavaScript error on a particular function which is called on the "OnClientNodeClicking", due to which the page is not rendering in the IE 11 browser. However, the same page is rendering fine without any JavaScript error on IE 8.

Please provide a solution for this

Ivan Danchev
Telerik team
 answered on 28 Apr 2017
1 answer
78 views

I'm having difficulty finding a way to accomplish what I want to do.

My Webform has the following controls on it:

1.  RadTextBox

2.  RadButton

3.  RadGrid

Very simple.   The user is prompted (RadTextBox) to enter the first letters of the customer name that they would like to view (RadGrid).  When they click on the view button (RadButton), the code behind executes in button click event to query the data and executes a .Rebind to refresh the RadGrid.  That all works very well.  My problem is that I'm trying to find a way to empty the RadGrid datasource when the user clicks back into the RadTextBox and it receives focus.  I found a few lines of Javascript in another post on the Telerik forms.   

Here is the script:

            var masterTable = $find("<%= RadGrid_CustData.ClientID %>").get_masterTableView();
            masterTable.set_dataSource([]);
            masterTable.dataBind();

I am able to execute this javascript code from a client-side button click event, but it fails when I try to execute it from the RadTextBox OnFocus client event.   

Does anyone have any ideas on how I can accomplish this ?

 

Thank you

 

 

     

Peter Milchev
Telerik team
 answered on 28 Apr 2017
1 answer
117 views

Hi,

I'm trying to create a multi-column dropdown list based on this example: Telerik APS.Net ComboBox Demo. My problem is I'm getting my data back as a DataSet, it's not a DataSource, and I'm unclear as to how to bind the dataset to the control. I tried using the evals etc as described in the example, but I get an error DataSource expected.

Any help would be greatly appreciated.

Rodney

Marin Bratanov
Telerik team
 answered on 28 Apr 2017
1 answer
187 views

Hi, i faced 2 problems

1. Error: Web.config registration missing! The Telerik dialogs require a HttpHandler registration in the web.config file.

I tried all the method as shown in the article, it still face the same problem. http://www.telerik.com/support/kb/aspnet-ajax/editor/details/error-web-config-registration-missing!-the-telerik-dialogs-require-a-httphandler-registration-in-the-web-config-file-

2. I got error page when i want to edit the page in Sharepoint 2013. It prompt me "Object reference not set to an instance of an object." 

Please help. Thank you. 

yeoh
Top achievements
Rank 1
 answered on 28 Apr 2017
1 answer
47 views

Hi Telerik Team,

heres my issue i have been working with detailtables on my sistem for a school the what it supposed to do its show me the grades of the students and i have a button outside the grid to export that to excel the thing is that the table needs to be expanded to show the grades because the student data its the parent  part and the grades are the child 2 days ago it worked now only one record from the table wont expand(automatically or pushing the lil arrow) but all the 200 records from the same sqldatasource works and since that one wont expand i cant export it what could it be? thanks.

 

 

Omar
Top achievements
Rank 1
 answered on 27 Apr 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
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
Iron
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?