Product Bundles
DevCraft
All Telerik .NET and Kendo UI JavaScript components and AI Tools in one package.
Kendo UI
Bundle of AI Tools plus four JavaScript UI libraries built natively for jQuery, Angular, React and Vue.
Build JavaScript UI
Javascript
Telerik
Build modern .NET business apps
.Net Web
Cross-Platform
Desktop
Reporting and Documents
AI for Developers & IT
Ensure AI program success
AI Coding
AI Engineering
Additional Tools
Enhance the developer and designer experience
Testing & Mocking
Debugging
AI-Enhanced UI Tools
CMS
Free Tools
Support and Learning
Productivity and Design Tools
<
telerik:RadTextBox
ID
=
"RadTextBox1"
runat
"server"
>
</
telerik:RadButton
"RadButton1"
Text
"Generate Gird"
OnClick
"RadButton1_Click"
telerik:RadGrid
"RadGrid1"
AllowPaging
"true"
AllowSorting
AllowFilteringByColumn
Width
"100%"
PagerStyle
AlwaysVisible
></
asp:ObjectDataSource
"ObjectDataSource1"
TypeName
"Class1"
OnSelecting
"ObjectDataSource1_Selecting"
SelectParameters
asp:Parameter
Name
"textvalue"
Type
"String"
/>
protected
void
RadButton1_Click(
object
sender, EventArgs e)
{
RadGrid1.DataSourceID =
;
ObjectDataSource1.SelectMethod =
"GetData"
}
ObjectDataSource1_Selecting(
sender, ObjectDataSourceSelectingEventArgs e)
//passing the parameter value from code
e.InputParameters[
] = RadTextBox1.Text;
public
class
Class1
DataTable GetData(
string
textvalue)
String connectionstring = WebConfigurationManager.ConnectionStrings[
"NorthwindConnectionString"
].ConnectionString;
SqlConnection sqlconn =
new
SqlConnection(connectionstring);
SqlDataAdapter adapter =
SqlDataAdapter();
adapter.SelectCommand =
SqlCommand(
"SELECT text from Details WHERE id LIKE '"
+ textvalue +
"%'"
, sqlconn);
DataTable data =
DataTable();
sqlconn.Open();
try
adapter.Fill(data);
return
data;
finally
sqlconn.Close();