Hi,,..
I had added a parameter, however am not able to build the datasourse object
I do not want to use the sqldatasourse control, so how can I build it to get the data from the parameter I create.
How to bind the data to it
I use this code to build the parameter
Dim reportParameter1 As New Telerik.Reporting.ReportParameter()
reportParameter1.Name = "Parameter1"
reportParameter1.Text = "Category"
reportParameter1.Type = Telerik.Reporting.ReportParameterType.String
reportParameter1.AllowBlank = False
reportParameter1.AllowNull = False
reportParameter1.Value = "= Fields.Category"
reportParameter1.Visible = True
Report.ReportParameters.Add(reportParameter1)
reportParameter1.AvailableValues.DataSource = objectDataSource1
reportParameter1.AvailableValues.ValueMember = "= Fields.Category"
reportParameter1.AvailableValues.DisplayMember = "= Fields.Category"
Furthermore, I wanna bind this parameter to a objectdatasourse,,so I found this code but I could not use it
Public Sub HowToObjectDataSourceParameters()
Dim objectDataSource1 As New Telerik.Reporting.ObjectDataSource()
objectDataSource1.DataMember = "GetCars"
objectDataSource1.DataSource = GetType(Cars)
objectDataSource1.Parameters.Add(New Telerik.Reporting.ObjectDataSourceParameter("year", GetType(Integer), 2010))
objectDataSource1.Parameters.Add(New Telerik.Reporting.ObjectDataSourceParameter("color", GetType(String), "=Parameters.Color"))
End Sub
objectDataSource1.DataSource = GetType(Cars)<>>>> what is Cars? <<>>what do they mean by this type,, i did not get it.
Thanks in advance