Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
124 views
What's the easiest way to find the parent row of a nested grid that you just dragged and dropped to (ie destination).

Here's what I have and it works fine but I know there's a simpler way because I remember seeing one like a year or so ago and just can't remember.

DirectCast(e.DestDataItem.Parent.Parent.Parent.Parent.Parent.Parent, Telerik.Web.UI.GridNestedViewItem).ParentItem

This does give me the parent row of a nested grid when I dragged and drop on the nested grid, but like I mentionned there's a simpler way and I just can't remember it.

Thanks
Alex
Top achievements
Rank 2
 answered on 26 Jan 2010
1 answer
93 views
I am using a telerik:RadTabStrip in a .ascx user control.  I want to call a function in a javascript object when the client tab is changed.

In the code-behind, I'm doing:

radTabStrip.OnClientTabSelected = "foo.clientTabSelected"

Where "foo" is a javascript object that contains some data, and a number of functions - one of which is clientTabSelected.

function Foo() 
    this.selectedTab = loadCookie('foo.cookie'); 
 
 
Foo.prototype = { 
    clientTabSelected: function(sender, eventArgs) 
    {
        debugger;
        var tab = eventArgs.get_tab(); 
        if (tab) 
            this.selectedTab = tab.get_index(); 
        storeCookie('foo.cookie'this.selectedTab); 
    }, 
    //... 
 

The object "foo", of course, is initialized prior to the user clicking a tab.

The problem is that when the user clicks on the tab, the "clientSelected" function is called, but not on the object "foo". In other words, when I trace through the execution, the correct function is being called, but within the function, "this" is not set to the "foo" object.

Any ideas as to how I can connect a Telerik event to a function in a specific object?



Jeff
Top achievements
Rank 1
 answered on 26 Jan 2010
3 answers
169 views
Does anyone know if we are able to have both Rowclick AND RowDblClick fire together?  If I have them both configured, only Rowclick seems to fire.

Any ideas?

Thanks!
Daniel
Telerik team
 answered on 26 Jan 2010
9 answers
782 views
I have a SqlDataSource (Regions_SqlDataSource) populating the RadListBox.
I have another SqlDataSource (SelectedRegions_SqlDataSource) that gets the selected values from the database.

I cannot seem to figure out how to set the selected values of the RadListBox based on the SelectedRegions_SqlDataSource.
I can get it to select the first returned value of the SelectedRegions_SqlDataSource, but it does not select all of the returned values.

Here is my code.

Dim regionsSql As DataView = DirectCast(SelectedRegions_SqlDataSource.Select(DataSourceSelectArguments.Empty), DataView)  
        For Each regionsviewSql As DataRowView In regionsSql  
            If Not Page.IsPostBack And regionsviewSql("PreferenceValue").ToString <> "" Then 
                Regions_RadListBox.SelectedValue = regionsviewSql("PreferenceValue")  
            End If 
        Next 

And here is the listbox and data sources.

<telerik:RadListBox ID="Regions_RadListBox" runat="server" Width="200px"   
      SelectionMode="Multiple" Rows="3" TextMode="MultiLine" DataSortField="Region"   
      DataSourceID="Regions_SqlDataSource1" DataTextField="Region"   
      DataValueField="RegionID" Height="60px">  
</telerik:RadListBox> 
<asp:SqlDataSource ID="Regions_SqlDataSource1" runat="server"   
    ConnectionString="<%$ ConnectionStrings:SiteSqlServer %>"   
    SelectCommand="SELECT [RegionID], [Region] FROM [NC_CT_Regions]"></asp:SqlDataSource>  
<asp:SqlDataSource ID="SelectedRegions_SqlDataSource" runat="server"   
    ConnectionString="<%$ ConnectionStrings:SiteSqlServer %>"   
    SelectCommand="SELECT PreferenceValue FROM NC_EmployeePreference WHERE PreferenceTypeID = '4' AND EmpID = @EmpID">  
    <SelectParameters>  
        <asp:QueryStringParameter Name="EmpID" QueryStringField="EmpID" />  
    </SelectParameters>  
</asp:SqlDataSource> 

Joseph
Top achievements
Rank 2
 answered on 26 Jan 2010
3 answers
128 views
Hi,
      I have upgraded to the 2008.2.1001.35 release of RadTools.
I had implemented your solution for displaying the RadEditor with a single pixel border (to look like a simple imput box) using the Default skin.
The solution does not work for the Outlook skin.

Can you provide a modification to that solution which works with the Outlook skin?

This solution you provided was taken from documentation section your Web site.

Thanks, Andy
Rumen
Telerik team
 answered on 26 Jan 2010
3 answers
497 views
Hello,

currently I have ~300 rows and over 21 columns of data.(Both of those will rise over time) And I'm also implementing paging. It takes a long time to switch between pages, because RadGrid is accessing the Database each time I switch a page, is it possible to load all the data into the RadGrid, for all pages, so when I would change pages it would just show those from cache or somewhere and reduce the time taking between those page changes?

Thanks in advance and regards,
Thomas
Pavlina
Telerik team
 answered on 26 Jan 2010
11 answers
227 views
How can I reduce the height of combobox below 22 pixels as we need to use a lot on one page and it is effecting the layout of our page.  I have tried changing the CSS but increasing the height works but decreasing it doesn't.  I assume it is related to the images?
Kamen Bundev
Telerik team
 answered on 26 Jan 2010
3 answers
100 views
Hi,
i have a TreeView in of about 200-400 nodes in 4 differents levels, my problem is when i expend a node in Internet Explorer i have a delay of 0 to 5 seconds depending of how many nodes i have in that parent node.
I do the same thing in Firefox and i don't have that delay.
Someone can help or refer me to a thread that can help me please.
Thanks..

Pascal
Top achievements
Rank 1
 answered on 26 Jan 2010
5 answers
161 views
I have a customvalidator a DataBoundColumn in a RadGrid.  In the validator I need to know whether I am inserting a new item or editing an old item in the ServerValidate handler.

Is there any well to tell at that point?

Also, while in the ServerValidate handler is there a way to get the previous value of the control?


Thanks,
Steve
Steve Wolfe
Top achievements
Rank 1
 answered on 26 Jan 2010
5 answers
314 views
We are using an ajaxified Dropdown list and RadEdit to edit different content blobs from a database. We have found that the Undo function will load the content of the RadEdit from a previous content loaded/replaced by ajax event.

So my question is, how -- using js and/or code-behind -- can I clear the Undo history?
Martin
Top achievements
Rank 1
 answered on 26 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?