Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
238 views
Good Day/Evening,

I'm having some problems with the setting the datasource of 3 radgrid controls each in it's own RadPageView in the Multipage for a tabstrip.

E.G

RadGridUsers
Column 1 Column 2 Column 3 SelectButton

TAB 1 | TAB 2 | TAB 3

MULTIPAGE
----------------
RADGrid1
----------------
RADGrid2
----------------
RADGrid3
----------------

Now what I'm doing is when I get a SelectedIndexChanged event from RadGridUsers, i want to set the RadGrid1,RadGrid2 and RadGrid3's datasource to Nothing (Null in C#) before I update the grids with new data. The problem I'm having is that the Grids Row Count of RadGrid1, RadGrid2 and RadGrid3 is still greater than 0 even after I set the datasource to Nothing.

Private Sub RadGridUsers_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadGridUsers.SelectedIndexChanged
 
'Clear all Grids of any previous account's data
RADGrid1.DataSource = Nothing
RADGrid1.DataBind()
RADGrid2.DataSource = Nothing
RADGrid2.DataBind()
RADGrid3.DataSource = Nothing
RADGrid3.DataBind()
 
Select Case TabStrip.SelectedTab.Text
Case "TAB 1"
     RADGrid1.Datasource = GetProfile
     RADGrid1.DataBind()
     Exit Select
Case "TAB 2"
     RADGrid2.Datasource = GetAddressDetails
     RADGrid1.DataBind()
     Exit Select
Case "TAB 3"
     RADGrid3.Datasource = GetOrderHistory
     RADGrid1.DataBind()
     Exit Select
End Select
 
End Sub

After I set all the RadGrid's Datasource to nothing and then only update the selected tabs RadGrid, I want the user to selecte another TAB (e.g TAB 3) and what I do then is check if the TAB3's RADGrid has any Items by doing this

Private Sub TabStrip_TabClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadTabStripEventArgs) Handles TabStrip.TabClick
 
 Select Case e.Tab.Text
        Case "TAB1"
            If Not RadGrid1.Items.Count > 0 Then
                 RadGrid1.Datasource = GetProfile
            End If
        Case "TAB2"
            If Not RadGrid2.Items.Count > 0 Then
                 RadGrid2.Datasource = GetAddressDetails
            End If
        Case "TAB3"
            If Not RadGrid3.Items.Count > 0 Then
                 RadGrid3.Datasource = GetOrderHistory
            End If
 End Select
End Sub

My Problem is that the item count is always greater than 0 even after I've set the Datasource to Nothing and then did a RadGrid.DataBind.

Your help would be much appreicated.
Helen
Telerik team
 answered on 19 Apr 2011
2 answers
130 views
Is there a way I can utilize the skinning functionality for the RadWindow, but instead of keeping the CSS files in the /skins/ folder (/skins/Window.css and /skins/MySkin/Window.MySkin.css), merge them into my site CSS file?  I am working on site optimization and I would like to remove the 2 extra server calls.
Mark
Top achievements
Rank 1
 answered on 19 Apr 2011
2 answers
40 views

My grid contains the following: I want to be able to control the displaying of the image button based on whether there are any detail records in the code behind, some records will have detail data and some will not.  What event do I need to use and how do I set its property to visible or not visible?

Thanks

 

 

<MasterTableView Width="100%" DataKeyNames="Odline" HierarchyLoadMode="Client"

 

 

 

 

ExpandCollapseColumn-ButtonType="ImageButton"

 

 

 

 

ExpandCollapseColumn-CollapseImageUrl="hide.bmp"

 

 

 

 

ExpandCollapseColumn-ExpandImageUrl="detail.bmp" >

 

 

John
Top achievements
Rank 1
 answered on 19 Apr 2011
2 answers
104 views

I am using a vertical bar chart and want to be able to set the value of the start and end value of ChartMarkedZone, is that posible in the code behind?

I am using version: Telerik WebUI VSExtensions   2011.01.315.0

Thanks
John
Top achievements
Rank 1
 answered on 19 Apr 2011
1 answer
127 views
Hello,

I had downloaded sharepoint acceleration kit but its not installing on my pc
its saying that installation package is not supported by this processor type.contact your product vender
pls reply soon for the above issue..and if possible pls provide dll for the same..

thanks..
Andrey
Telerik team
 answered on 19 Apr 2011
0 answers
84 views
I try this demo Window / RadWindow And MDI and this work good but in my case I have in my page an ajaxified grid when grid refresh with ajax, I can't see my radwindow when i click on tabstrip tab. If I check javascript function function OnClientTabSelected(sender, args)I have no error and my win object is not null but i don't see anything. Do you have an idea ? Possible problem with zindex calcul ?

Thanks
ericc34
Top achievements
Rank 1
 asked on 19 Apr 2011
1 answer
181 views
Hello,

I have a RadTreeView control that fails with the following error, if I populate it with a large (say, 2000) number of nodes:

"Error during serialization or deserialization using the JSON JavaScriptSerializer.  The length of the string exceeds the value set on the maxJsonLength property."

I am able to set the maxJsonLength property in the web.config of my application - however no matter what value I give to maxJsonLength (up to Int32.MaxValue), the above error appears.  I've tried every combination of maxJsonLength value and number of nodes in my tree.  

In the Microsoft docs (http://msdn.microsoft.com/en-us/library/system.web.configuration.scriptingjsonserializationsection.maxjsonlength(v=VS.90).aspx), it says:

"The value of the MaxJsonLength property applies only to the internal JavaScriptSerializer instance that is used by the asynchronous communication layer to invoke Web services methods."

So now I'm thinking that RadTreeView doesn't pay attention to maxJsonLength.  Is this correct?

Thanks,
Leigh
Leigh
Top achievements
Rank 1
 answered on 19 Apr 2011
3 answers
136 views
How can I set the default height for a RadScheduler that's using the timeline view? I don't want to set a fixed height, cause I want it to grow vertically when I add resources.

Thanks
Veronica
Telerik team
 answered on 19 Apr 2011
3 answers
105 views
Hi,

When I enter some invalid data into a RadDateTimePicker, the field is marked as invalid (warning triangle and red border)- That's nice and fine.
But when I submit the form, however, the page is considered as valid (this.IsValid returns true) and the postback is executed.

How can I prevent the form to do a postback on invalid data?

Thanks in advance.
Maria Ilieva
Telerik team
 answered on 19 Apr 2011
2 answers
166 views
Hi,

One of my users is having an issue with selecting items in a RadListBox.  When they click on an item in the ListBox, characters in the text of the item is highlighted, but the actual item is not selected.  It is very strange behaviour.  This problem is occuring in all browser, but only on one particular computer.  I have not been able to replicate the problem myself  It has me completely stumped.  Does anyone have any ideas what could be causing this?

See the attached screenshot for an example of the problem.  The user has clicked on the fifth item in the listbox (Hulland) but as you can see the text "Hulland" gets highlighted, but he listitem is not selected.

Thanks
Andrew Dixon
Peter Filipov
Telerik team
 answered on 19 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?