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

 I have two tabs. Tab#1 contains a form which has validation  controls.
The problem is I can not click on tab#2 to open unless I complete the form in tab#1.
How can I disable validation for the RadTab?

Thanks
Brew

Shikhar
Top achievements
Rank 1
 answered on 07 Jul 2015
1 answer
641 views

Has anyone found a way to increase a multiline radtextbox automatically as a user types so that if can fit their input vertically?

We'd like to put the text box on the page with a base height of 100px. However, once the user has filled that space and keeps typing, instead of the text box getting scrollbars, we want it to add enough pixels to keep all the text visible. 

This would need to occur up to a "max height" at which point the normal scroll bar behaviour would kick in...

Any thoughts?

Viktor Tachev
Telerik team
 answered on 07 Jul 2015
1 answer
369 views

Hello

 I'm trying to disable the "Add New Record" button in a Telerik RadGrid. I found many solutions to hide it, but what I want is that it's visible, but if the user clicks on it, it doesn't do anything. I found a way to disable the "InitInsertButton", but not the "AddNewRecordButton". Here you can see my e

 

GridCommandItem cmditem = (GridCommandItem)RadGrid1.MasterTableView.GetItems(GridItemType.CommandItem)[0];
Control ctrl = cmditem.FindControl("AddNewRecordButton");
ctrl.Visible = false;

LinkButton btn = (LinkButton)cmditem.FindControl("InitInsertButton");
btn.Enabled = false;

 

As you can see the "InitInsertButton" is disabled, but there is no property "Enabled" for System.Web.UI.Control so I don't know how to disable it as well.

Hope you can help me

Regards,
Danilo

Danilo
Top achievements
Rank 1
 answered on 07 Jul 2015
3 answers
827 views

I have this

 

 

for (int i = 0; i < RadUpload1.UploadedFiles.Count; i++)

 

{

 

        TextBox1.Text = TextBox1.Text +

"\n"+RadUpload1.UploadedFiles[i].FileName;

 

}

This FileName method returns the file name ONLY. How can i get the full source path?

For example if i upload from : c:/upload/test.jpg

I want to print out the whole "c:/upload/test.jpg" , not just "test.jpg"

Thank you!

Nencho
Telerik team
 answered on 07 Jul 2015
12 answers
547 views
How can I change the default "blue" color of the metrotouch skin?

I need to have this color as the main color in the metrotouch skin hex #157164

Thanks in advance.
Vessy
Telerik team
 answered on 07 Jul 2015
1 answer
221 views

Hi,I'm playing with one website and here is the thing:

On this page are plenty of divs, each with different content. I want to load the core (div headers, user info etc.) and after that, when user see this core, I want to async load content of each div. After that I want refresh content of divs, but in different timespan. 

Can I do that somehow with Telerik Ajax? I tried something with AjaxPanel, but the content shows after the full page load.

Thank you very much for your advice.

Maria Ilieva
Telerik team
 answered on 07 Jul 2015
2 answers
274 views

Hi,

Is there a way to change specified column's cells Background color ?

For example, I would like to represent holidays' period by changing the column's cells color.

 Thanks, Rémi.

Rémi
Top achievements
Rank 1
 answered on 07 Jul 2015
4 answers
150 views
I need a solution to work for a dynamically loaded user control that contains the grid and the context menu. When using...

<
ClientEvents OnRowContextMenu="RowSelected" />

... and having the javascipt method embedded on the .ascx, the application throws error "RowSelected is undefined." I read on another post to use RegisterClientScriptBlock in the user control code behind which does get works for getting the RowSelected method recognized; however, the .show method of the context menu is undefined. When I code the following using RegisterClientScriptBlock, I get the undefined error for .show()

$find(
"<%= GridContextMenu.ClientID %>").show(args.get_domEvent());

...so I then tried...

document.getElementById('"

+ GridContextMenu.ClientID + "');

...which didn't work either.

So, the back to the original question: How do I get a context menu to work for a rad grid that is on a dynamically loaded user control?

I thought I'd make this a Post. I had asked the question in a reply to another Post, which may have not been appropriate.

http://www.telerik.com/community/forums/thread/b311D-bbktgd.aspx

Thanks for any help!

John D

Dimitar
Telerik team
 answered on 07 Jul 2015
1 answer
110 views
Dear Team,

We have implemented video upload and preview functionalities. User should be able to upload any video and should be able to preview it. We are using Telerik Rad Media Player. I'm able to preview MP4 format videos. When I try to play WMV, MOV format videos, some icon to download adobe flash player is getting displayed. Adobe flash player is already there in my machine and it is enabled in my browser. We are using IE.

Please let me know if I have to do any settings in my machine/application.

Thanks,
Phani
Maria Ilieva
Telerik team
 answered on 07 Jul 2015
1 answer
149 views

I have an edit page that is able to edit administrators of a site, on reload or edit of the admin I need to load the name in the autocomplete box and then disable so they cannot change it on edit.  Problem is I can seem to figure out how to reload the autocompletebox with the text.

 

myDataTable = New DataTable
        myDataTable = getReader(sql)
 
        If myDataTable.Rows.Count > 0 Then
            HFAdminId.Value = myDataTable.Rows(0)(0)
            txtItemSearch.Text = myDataTable.Rows(0)(0).ToString()
            ddlLocations.SelectedValue = myDataTable.Rows(0)(2)
       End If
 
Also tried this but to no avail.
 
   myDataTable = New DataTable
        myDataTable = getReader(sql)
 
        If myDataTable.Rows.Count > 0 Then
            HFAdminId.Value = myDataTable.Rows(0)(0)
            txtItemSearch.Entries(0).Text = myDataTable.Rows(0)(1).ToString
            ddlLocations.SelectedValue = myDataTable.Rows(0)(2)
         end if
 
Both gave me this error
 
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
  Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
 
 Exception Details: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
 
Source Error:

Bozhidar
Telerik team
 answered on 07 Jul 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?