Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
278 views

Hello,

I am trying to implement the Telerik sample Scrolling to the Selected Item. I modifed my ASP.NET page based on this sample. Within the sample, function GridCreated() has the following (second command-line within the function):

    var row = this.MasterTableView.SelectedRows[0];

When my ASP.NET page calls function GridCreated(), it fails on the second command-line, and throws the following error:

    Microsoft JScript runtime error:
    Unable to get value of property 'SelectedRows':
    Object is null or undefined.

The RadGrid on my page has AllowPaging="false" and AllowScroll="true". The grid contains 100 rows, but only 20 rows are visible at any given time. You have to scroll up or down to see the other 80 rows. This is exactly how I want the grid to behave. And every row in the grid is assigned a unique number (numbers from 1 to 100). There is a textbox above the grid and when a row number between 1 and 100 is entered into the textbox, the Textbox_TextChanged() programmatically locates the row within the grid, and automatically highlights (selects) that row (that all works fine).

If you are viewing rows 1 - 20 at the time you enter 85 into the textbox, row 85 is programmatically selected, but you have to manually scroll down to see highlighted row 85. This is why I am trying to use the above sample (http://www.telerik.com/help/aspnet/grid/grdscrolltotheselecteditem.html). I do not want to filter the grid. I want the grid to automatically scroll to the row that was programmatically selected. How do I resolve the above error? Do I need to provide more info?

Thank you,
Steven

Vasil
Telerik team
 answered on 17 May 2012
5 answers
250 views
Hello,

Javascript such as this:

 var editor = $find("RadEditor1"); 
 editor.pasteHtml('test    test');


Is stripping all the extra consecutive spaces between the two words test. Anyway to preserve the extra spaces?
vikas
Top achievements
Rank 1
 answered on 17 May 2012
1 answer
162 views
EmptyMessageStyle-Font-Italic="true" is not work.
Princy
Top achievements
Rank 2
 answered on 17 May 2012
1 answer
107 views
How to open RadWindow from server side based on selected item in combobox in SelectedIndexChanged event of combobox?
Princy
Top achievements
Rank 2
 answered on 17 May 2012
3 answers
120 views
Is there a way to use a radlistbox like a checklistbox with vertical checkboxes and not horrizonal. I am looking for checkbox controls for rad but dont see anything.
Princy
Top achievements
Rank 2
 answered on 17 May 2012
1 answer
288 views
Hello,

I am making column invisible like this in code behind.

But the header is still displaying.

gridDataItem("EPrice").Visible = False

How to make header column and column invisible.

TIA
Shinu
Top achievements
Rank 2
 answered on 17 May 2012
8 answers
780 views
Hi there,

I have created a form that contains a RadGrid and I am trying to use the PopUp edit mode to display a usercontrol.

I have got it working and it pops up however I dont like the location of the popup. Can anyone suggest how I can have it so it pops up in the center of the screen?

Thank you
Lucania
Top achievements
Rank 1
 answered on 17 May 2012
4 answers
252 views
I have a RadTimePicker in a RadGrid.  The grid is bound to a SqlDataSource which is connected to a SQL Server 2008 database table.  The table contains a column with a datatype of "time," which is not null.

When I attempt to bind a RadTimePicker to this time column, I receive the error 
System.InvalidCastException:Specified cast is not valid.

This is how I'm attempting to do the databinding:
<telerik:RadTimePicker ID="RadTimePicker1" runat="server" DbSelectedDate='<%# Bind("TimeMon") %>' /> 


Please advise if I am missing something, or if the time data type in SQL Server is too new, preventing me from doing this.  I am using RadControls for ASP.NET AJAX 2008.3 1314

Thanks!
Travis
Oscar
Top achievements
Rank 1
 answered on 16 May 2012
3 answers
105 views
Any update on the status of this request?  It's been 5 years since the request was initialized.  I'd really like to see this get implemented.

http://www.telerik.com/community/forums/aspnet/grid/using-a-different-usercontrol-form-template-for-edit-and-insert.aspx
Pavlina
Telerik team
 answered on 16 May 2012
8 answers
126 views
Hi.

I'm using raddock to let the users to design a dashboard.  I would like to achieve this

http://jqueryui.com/demos/draggable/#visual-feedback 

I mean, keep "a copy" of the dock in the dockzone, while i'm dragging it to the target dockzone.

Is this possible?

Thanks in advance.

Guillermo
Guillermo Sornoza
Top achievements
Rank 1
 answered on 16 May 2012
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?