I am using the latest version of Telerik Reporting. My Report has 3 parameters that use seperate Datasources for each. One of the Datasource objects returns a large dataset. I would like to know how to implement the same Load on Demand functionallity as I use on the RadComboBox Controls Load on Demand.
It would even work if I had the functionallity like Telerik uses on the ComboBox used when you Select your Country on the Create accout page.
Thanks,
DM
Example from RadComboBox
protected void RadComboBox2_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
{
DataTable data = GetData(e.Text);
}
private static DataTable GetData(string text)
{
SqlDataAdapter adapter = new SqlDataAdapter("SELECT * from Customers WHERE CompanyName LIKE @text + '%'",
ConfigurationManager.ConnectionStrings["NorthwindConnectionString"].ConnectionString);
adapter.SelectCommand.Parameters.AddWithValue("@text", text);
DataTable data = new DataTable();
adapter.Fill(data);
return data;
}
It would even work if I had the functionallity like Telerik uses on the ComboBox used when you Select your Country on the Create accout page.
Thanks,
DM
Example from RadComboBox
protected void RadComboBox2_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
{
DataTable data = GetData(e.Text);
}
private static DataTable GetData(string text)
{
SqlDataAdapter adapter = new SqlDataAdapter("SELECT * from Customers WHERE CompanyName LIKE @text + '%'",
ConfigurationManager.ConnectionStrings["NorthwindConnectionString"].ConnectionString);
adapter.SelectCommand.Parameters.AddWithValue("@text", text);
DataTable data = new DataTable();
adapter.Fill(data);
return data;
}