forum.venkateswarlu.net
Register
Login
Technology
Forum
Home
Timeline
Recent
Most Visited
Unanswered
Recently Answered
Members
? Ask Question
Feedback
Add Birthday
Reply : Add new record in Telerik radgrid not working when there are no records
*
Submit
Cancel
Add new record in Telerik radgrid not working when there are no records
1 replies to this topic
Murali Krishna
#1
Member
26 Points
Posted on 15 Jul 2013 12:44 PM IST
While we are working with
Telerik rad grid control there is a an attribute AddNewRecordText in CommandItemSettings tag . Whenever we click on AddNewRecordText button it displays the fields along with textboxes to enter the values. The displayed fields are equal to the fields in the rows which we are populating in the grid. If there is atleast one record we can able to use this AddNewRecordText button without any issue. The issue comes when the datasource is with no records. At this time when we click on button it wont provide the fields to enter the values. To fix this we have to use DataTable as below:
DataTable table = new DataTable();
table.Columns.Add("xxxxx");
Radgridcntrl.DataSource = table;
Dot Net
1440 views
Reply to this topic
Jahnavi N
#2
Member
164 Points
Replied on 15 Jul 2013 02:43 PM IST
Hi Murali,
I have faced the same issue long back I found the same solution which you provided in some other blogs.
Good to see your post on this forum.
Thanks,
Jahnavi
Reply to this topic
Tags
Web Services
Remoting
Java
CSS3
WCF
WPF
Silverlight
MVC
HTML5
Training Projects
Interview Questions
Freshers Jobs
Experience Jobs
Installation
Uninstallation
Upgradation
DBA
Movies
ASP.NET
C#.NET
Dot Net
SQL Server
VB.NET
SSRS
SSIS
SSAS
SharePoint
AJAX
PHP
JavaScript
JQuery
Online Training
Other
Top Contributors
Jahnavi N
164 Points
Subramaniam R
152 Points
Kalyan Suman
150 Points
Cherukuri Venkateswarlu
140 Points
Harikrishna Sikhakolli
108 Points
Aisha Bobby
96 Points
Gaurav Dutt
62 Points
Saravanan Ramamoorhty
58 Points
MalliKarjuna Cherukuri
52 Points
Etuuj Dgg
48 Points