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

Hi,

I'm using a RadTreeList with data bound using a DataTable in NeedDataSource.

I set AllowRecursiveSelection to true so that all child nodes are selected too, even if they are not expanded.

Unfortunately, it doesn't work as expected. If I check SelectedItems on the server, I only get a list containing the currently VISIBLE selected items. The child items are not included. If I expand this selected node, the children are selected as expected and appear in the SelectedItems. If I collapse the node again, they don't appear in SelectedItems anymore.

Also, the Items property only contains the currently VISIBLE items,  I expected it to contain all items.

The SelectedIndexes property is always correct, but I don't know how I could use this information to find the according data in the DataTable.

 

What do I have to do to get SelectedItems to return the invisble selected items too?

Thanks!

Eyup
Telerik team
 answered on 22 Mar 2017
6 answers
975 views

I have a page with some search criteria. When the page comes up the first time, I would like to present the page with no data in the grid. And once the user clicks the search button, I would populate the grid with data using the search criteria selected.

    'Search Button Click Event
    Private Sub cmdSearch_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdSearch.Click
        RadGrid2.DataSource = Data.SubmissionTracking.GetSubmissionDetails()

    End Sub

    'Rad Grid NeedDataSource Event
    Private Sub RadGrid2_NeedDataSource(ByVal source As Object, ByVal e As GridNeedDataSourceEventArgs) Handles RadGrid2.NeedDataSource
        If Not e.IsFromDetailTable Then
            RadGrid2.DataSource = Data.SubmissionTracking.GetSubmissionDetails()
        End If
    End Sub

This is what I see that occurs at runtime:
The page populates with some data even on initial load, because the NeedDataSource event is fired. I would like to avoid that and present the user with no grid.
Also, when the search button is clicked, the NeedDataSource event is fired before the Search button click event. And in some cases, I found that the entire grid events are bypassed (in the sense none of the events get fired on postback).

Please let me know what I may be missing.

Thanks!
Naveen
Top achievements
Rank 1
 answered on 22 Mar 2017
3 answers
112 views
It's possibile add custom controls (ex: RadButton) in a RadGrid pager?
Rumen
Telerik team
 answered on 22 Mar 2017
5 answers
156 views
I'm having a problem with the RadGrid GridSelectColumn where if the user misses the checkbox by a single pixel, it deselects the rest of the items they've selected and selects just that one row. I realize this is because clicking a row selects only that row by default, but I was wondering if there was some way that I could make it so that clicking anywhere in the cell with the checkbox would work the same as clicking the checkbox.
Pavlina
Telerik team
 answered on 22 Mar 2017
1 answer
411 views

Hi,

I have a RadDatePicker with AutoPostBack="true". I need this post back to perform some logic and fetch some value for other controls.

I have having issue with date validation of this control. I have RequiredFieldValidator which check this date field. Now if I make date textbox as empty it fires the validation but also performs a post back which causes issues. How can I check for blank and invalid date in my  RadDatePicker on client side and post back only when it has valid values?

 

<telerik:RadDatePicker ID="rdpStartDate" runat="server" EnableEmbeddedSkins="true" Skin="Bootstrap"  RenderMode="Lightweight" OnSelectedDateChanged="rdpStartDate_SelectedDateChanged" AutoPostBack="true" 
                        Calendar-Font-Size="Small" Calendar-CalendarTableStyle-Font-Size="Small" Calendar-DayStyle-Font-Size="Small" Calendar-TitleStyle-Font-Size="Small" />

<asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidatorStartDate" ControlToValidate="rdpStartDate" Display="Dynamic" ErrorMessage="Start Date is invalid." CssClass ="controlValidationLabels"> </asp:RequiredFieldValidator>

Ashish
Top achievements
Rank 1
 answered on 22 Mar 2017
0 answers
92 views

hi,

I am looking for ways to hide parent tabs/levels in my page as I dig down a hierarchical tabstrip(Telerik.Web.UI.RadTabStrip) that can go upto 4-5 levels deep and is not looking good on the UI. For exampIe, if I have 5 levels of tabs, I only want to display the fifth level. I am using a sitemap for the page. (I am also building a clickable breadcrumb that will allow the user to navigate back and I do not need the parent tabs when I go beyond 2 levels or so)

When I try to hide the tabs by using the tab.Visible property or the tabstrip.Remove it removes all the children including the one that I actually want to display.

I would appreciate any help you can provide.

Thanks,

Pratheesh

 

Pratheesh
Top achievements
Rank 1
 asked on 21 Mar 2017
2 answers
127 views
I am using the ImageManager separately using DialogOpener. I have a scenario that, I need to show the selected image by default when opening the image manager. Is there any way to do this?
Gilles
Top achievements
Rank 1
 answered on 21 Mar 2017
0 answers
102 views

After upgrading my .net Framework from 4.0 to 4.6.1 my async upload control seems to have stopped working.

This is the version of the async control I'm using.

<add assembly="Telerik.Web.Design, Version=2012.3.1016.40, Culture=neutral, PublicKeyToken=121FAE78165BA3D4"/>

Could this be the cause of the problem?

Rob Gaudet
Top achievements
Rank 1
 asked on 21 Mar 2017
0 answers
69 views

Hi,  

i am using your Radgrid_Rowdrop Event to sort some rows in the RadGrid, but it seems like the e.DestDataItem variable is often null under Chrome.                   This Behaviour doesnt appear to happen in Firefox or Internet Explorer. My Browser isnt zoomed in (Standard 100% settings), does anybody know why the Rowdrop Event behaves differently under Chrome?   

 

Thank you in Advance for your Help

 

Additional Information:

Chrome Version 56.0.2924.87 (64-bit)

Ali
Top achievements
Rank 1
 asked on 21 Mar 2017
1 answer
110 views

I have what seems like a simple problem, but I can't seem to come up with the best way to code my grid to the datasource that I require.

 

My application is very simple.  It has a radtextbox prompt for the Customer #.   It has a radbutton for "Find Sales Orders".

In my RadGrid I want to display a list of sales order information for the customer # that the user enters.  When the user clicks on the

radbutton "Find Sales Orders", I want to execute my SQL code and populate the RadGrid with the resulting data table.   My RadGrid will also have a

telerik:GridCleintSelectColumn, because I want the user to be able to select sales orders from the grid, and when they are finished selecting sales orders, I will

have another radbutton to store those selected sales orders into another SQL table (I've already found a telerik radgrid example that shows me how to code the

events for rowselect and rowdeselect and it persists when paging back and forward.  The example also showed me how to loop through the grid and get a list of

selected key values).  This example uses a hard coded sqldatasource with a built in SQL select statement.   The data source that I

need must be driven from the customer # that the user enters and executed when the user clicks the "Find Sales Orders" button.     Does Telerik have any

examples of what I'm describing?    Everything I've found for examples so far has a built in select statement that isn't geared from other controls that a

user would typically enter on to the page.  

Marin Bratanov
Telerik team
 answered on 21 Mar 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?