Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
150 views
HI There,

i am just curious to know

1. is telerik RadGrid supporting the single data source for hierarchical grid ? i mean to say my data or list is in hierarchical format and i just input the list as a data source to the grid and automatically it recognizes the list structure and paint the Hierarchical grid. hence in this way i dont need to mention two different data sources for the grid, one at materTable level and second at childTable level.

2. (In Context Of MVC) when providing the data source for the Hierarchical grid then it paints the grid in the collapsed mode. okay this is fine till here. now when i click on the expand button, again it paints the whole grid at parent level along with details at child level, which is again a server call. hence server (Controller class in MVC Context) returns the list at the MaterTable level and list at the ChildTable level, which is additional burden to the server. 

    why it is not possible to return only the contents at the child level without returing the parent level list ? 
    
    why is it not possible to return the set of child records related only to the master record selected (Not the full list of child records ) ?, is it possible to employ Ajax in this context ?


i want it goes to server or controller only for the required child control and does not return the full parent level list.
please give your input on this.

ex: 

protected

void Page_Load(object sender, EventArgs e)

 

{

currentActivity = (CMSTracking.Data.

Activity)ViewData.Model;

 

RadGrid1.MasterTableView.DataSource = ViewData[

"Statuses"];

 

}

 

protected void RadGrid1_DetailTableDataBind(object source, Telerik.Web.UI.GridDetailTableDataBindEventArgs e)

 

{

 

GridDataItem dataItem = (GridDataItem)e.DetailTableView.ParentItem;

 

e.DetailTableView.DataSource = ViewData[

"Followups"];

 

}



Nikolay Rusev
Telerik team
 answered on 23 Feb 2009
1 answer
142 views
Hi, I am using OnRowDataBound client event handler to add new items to the Grid on the client side. However, I found that the GridClientSelectColumn is not populated, i.e. no check box appears, when a new item is added to the table view. So the question is how can I get the check box to appear? My wild guess is I might have to edit the innerHTML of the cell, but not sure at all.

Thanks for helping.
Tsvetoslav
Telerik team
 answered on 23 Feb 2009
3 answers
167 views
Hi...
i am using Radcombo with template. and using grid in template.
i created this referring http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/templates/defaultcs.aspx

i am setting text and value on grid row select. but on server side. i am not getting changed value.

on postback i am not getting the value which i set using javascript.
only able to get text in dropdownObj.Text. but i want value and text both.

in telerik demo also it happen same, not getting value on server side.

please help..

Veselin Vasilev
Telerik team
 answered on 23 Feb 2009
4 answers
207 views
a quick question..

I have been trying to get the color of my Pie chart slice to be a solid single blue color. But then it has this whitish tinge to it. It starts with a solid blue but  halfway through the slice, it becomes whitish blue. I tried the following setting:

   chartSerie.Appearance.FillStyle.FillType = Telerik.Charting.Styles.FillType.Solid;

What could be teh problem?

-Ketan Reddy



ketan reddy
Top achievements
Rank 1
 answered on 23 Feb 2009
3 answers
109 views
We are creating student scheduling application.

I have 3 questions:

1. I want to display each teacher in the individual column (i.e. Instead of the date being displayed in the vertical column I want to disaplay each teacher)?

2. How can I control the order of teachers in the columns. What is the default order of display?

3. I want to display custom information that could also be configured in the appnt box that is visible to user without the mouse over or tooltip? (i.e. Student name, pickup location and appointment duration).
Peter
Telerik team
 answered on 23 Feb 2009
1 answer
179 views
Hello,
I am following this example in the RadGrid(filtering - how to) documentation.
Filtering with MS DropDownList instead of textbox.

-----------------------------------------------------------------------------------------------------------------------------------
I have a page(sample.aspx.vb) where i am displaying the radgrid with,

AllowFilteringByColumn

 

="True"

I would like to replace a filter textbox with a dropdown list which has two options (YES/NO) for a specific column.
Say column "A" only has values, YES or NO.  So i would like to display these options in a dropdownlist.

I have copied the below code(given in the example) in my (sample.aspx.vb) at the end of class [Class sample]. 

-----------------------------------------------------------------------------------------
Namespace MyStuff
 Public Class MyCustomFilteringColumn
   Inherits GridBoundColumn
  Private listDataSource As Object = Nothing
  'RadGrid calls this method when it initializes the controls inside the filtering item cells
  Protected Overloads Overrides Sub SetupFilterControls(ByVal cell As TableCell)
   MyBase.SetupFilterControls(cell)
   cell.Controls.RemoveAt(0)
   Dim list As New DropDownList()
   list.ID = "list" + Me.DataField
   list.Height = Unit.Pixel(300)
   list.AutoPostBack = True
   AddHandler list.SelectedIndexChanged, AddressOf list_SelectedIndexChanged
   cell.Controls.AddAt(0, list)
   cell.Controls.RemoveAt(1)
   list.DataTextField = Me.DataField
   list.DataValueField = Me.DataField
   list.DataSource = Me.ListDataSource
   list.DataBind()
  End Sub
  Sub list_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs)
   Dim filterItem As GridFilteringItem = TryCast((TryCast(sender, DropDownList)).NamingContainer, GridFilteringItem)
   If Me.DataType = GetType("System.Int32") OrElse Me.DataType = GetType("System.Int16") OrElse Me.DataType = GetType("System.Int64") Then
    filterItem.FireCommandEvent("Filter", New Pair("EqualTo", Me.UniqueName))
   Else
    filterItem.FireCommandEvent("Filter", New Pair("Contains", Me.UniqueName))
    ' treat everything else like a string
   End If
  End Sub
  Public Property ListDataSource() As Object
   Get
    Return Me.listDataSource
   End Get
   Set
    listDataSource = value
   End Set
  End Property
  'RadGrid calls this method when the value should be set to the filtering input control(s)
  Protected Overloads Overrides Sub SetCurrentFilterValueToControl(ByVal cell As TableCell)
   MyBase.SetCurrentFilterValueToControl(cell)
   Dim list As DropDownList = DirectCast(cell.Controls(0), DropDownList)
   If Me.CurrentFilterValue <> String.Empty Then
    list.SelectedValue = Me.CurrentFilterValue
   End If
  End Sub
  'RadGrid calls this method to extract the filtering value from the filtering input control(s)
  Protected Overloads Overrides Function GetCurrentFilterValueFromControl(ByVal cell As TableCell) As String
   Dim list As DropDownList = DirectCast(cell.Controls(0), DropDownList)
   Return list.SelectedValue
  End Function
  Protected Overloads Overrides Function GetFilterDataField() As String
   Return Me.DataField
  End Function
 End Class
End Namespace
---------------------------

1.  i get the following errors at these lines.

a. 

 

 

If Me.DataType = GetType("System.Int32") OrElse Me.DataType = GetType("System.Int16") OrElse Me.DataType = GetType("System.Int64") Then

 

 

 

 

At this statement - GetType

 

("System.Int32")  ----  type expected

 

 

b. 

 

 

Public Property ListDataSource() As Object

 

 

 

'ListDataSource' is already declared as 'Private Dim lstDataSource As Object' in this class.

I have all the required imports statements.

Did anyone had such problems before, how should i fix these errors

2.  Do i need to create another class(.vb) file and put all this code.

Need some help.

Thank you,
tyra

Yavor
Telerik team
 answered on 23 Feb 2009
2 answers
133 views
hi!,
I am new to telerik rad controls. can any one please guide me to how to decorate the asp:buttons with this formdecorator control? i have a <div> with id="div1" element and inside that <div> i have my asp:button control. I have taken a radFormDecorator to my form. now how decorate the button with this control? Please help me.
Thanks in advance.

regards,
Suvresh
Georgi Tunev
Telerik team
 answered on 23 Feb 2009
3 answers
84 views
I am populating a radgrid when I load my page and al columns are properly bound to the grid.

When I page or sort I am using a web service call to return the data and bind it client side.  One cloumn is not showing the returned value.  I checked the webservice call and the query is returning the value.  I even checked the data at the client side and the value is present, but it does not appear in the grid.  It is only affecting one column.

Is this a bug?  Please help!

Cynthia
Yavor
Telerik team
 answered on 23 Feb 2009
1 answer
83 views
I'm watching the Telerik Trainer videos (which are GREAT by the way) and things don't seem to be right on my system.  I'm running VS2008 on Vista.  For example, the video suggests you start with the "ASP.NET AJAX Enabled Web Site" template so you automatically get the ScriptManager control. I believe I've already confirmed that this template is not included in VS2008 for .NET 3.5 projects.

I'm watching "An Overview of the RadComboBox (part 1)" and following along by building my own project connected to my own DB.  I have the combo talking to the DB (very cool!) but then he adds 2 label controls to the page and hooks one up to show the selected value based on the "SelectedIndexChanged" event.  To do this he selects the combobox and clicks the lightning bolt icon at the top of the properties box.  I don't have a lightning bolt icon. 

So how do I create a function to do what he is doing in the video with the current version?

Thanks so much!

- Robert

[UPDATE]
Well, I've burned some hours trying to work this out.  Finally I rebooted my PC (for other reasons) and when I go back in the project the lightning bolt iconis there.  I closed VS and reopened the project several times as I was playing with it so I don't think VS was locked up.  I'm not sure why it came back after a reboot.  Weird that one element of the UI would disappear.  Anyway, I worked it out.
Veselin Vasilev
Telerik team
 answered on 23 Feb 2009
1 answer
97 views
Im using it an ASPx Page, and it gives the an object referenced to null. Can anyone plz provide a fix
Peter
Telerik team
 answered on 23 Feb 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?