How To Display Data Using Radgrid Getting Error
Jun 11, 2010
When I am trying to display data using radgrid I am getting error like "Index was out of range. Must be non-negative and less than the size of the collection. Parameter: Index".
Here is my code
[Code]....
View 1 Replies
Similar Messages:
Mar 17, 2010
I have a page with a drop-down. Based on the selection in the drop-down, data gets loaded and populates a RadGrid. I am using a custom user control for the EditTemplate, so I can't use radGrid.DataBind(). Instead, I have to use radGrid.MasterTableView.Rebind() in association with a NeedDataSource event handler.
My problem is that when I load the page initially, I populate the drop-down and automatically select a value (first item in the list) which triggers the databinding on the RadGrid. I can step through the code in debug mode and see that the grid is being populated with data, but when the page displays, it doesn't get rendered. When I then manually choose an item from the drop-down, which triggers the same grid databinding code, it displays properly the second time.
How do I get it to display the grid the first time the page loads?
View 2 Replies
Mar 11, 2011
i am facing the error
The Microsoft Jet database engine could not find the object 'MyDataFile$'. Make sure the object exists and that you spell its name and the path name correctly.
below is my code, i am exporting my excel sheet in HTML format. in case of importing i am facing the above mentioned error.
[code]...
View 2 Replies
Mar 11, 2010
I'm using telerik radgrid in my web form.When i add new row in this grid, the new irow only display in my grid. After click refresh button the full rows are display.
View 2 Replies
Aug 23, 2010
All I want to do, is to get a values from a grid when it is not in edit mode. Note that I'm able to get two of the values (both the int32 fields), but I cannot get a reference to the "IsActive" Checkbox or the string "Delimiter" field.
let me know how I can accomplish this. Below is my code-behind. Notice the boldfaced fields I can't get...
[code]....
View 2 Replies
Apr 19, 2010
I have a RadGrid on my UserControl which i wanted to print. I dont know how to print it.
View 2 Replies
Apr 27, 2016
i want to display a sum of column values in radgrid footer.
View 1 Replies
Mar 11, 2010
I'm using telerik radgrid with some record rows , after updates one row from grid,where dispaly only that row.After click refresh button,all the records are view.
View 2 Replies
Sep 6, 2010
i want to add a blank row in a radgrid.. how do i do that?
View 2 Replies
Jan 5, 2011
I've got a DNN application using Telerik RadGrid. We're exporting some data from the Grid but when we drill down on the grid control and export the data we only see the initial top level data, never the updated Grid. Here's my table tag and supporting code. I'm not an expert in ASPX/C#so please forgive my newbie-ness.
<mastertableview autogeneratecolumns="False" datakeynames="AccountId" datasourceid="SqlDataSource1"
groupsdefaultexpanded="False">
<DetailTables>
[code]...
View 1 Replies
Feb 24, 2010
I was creating another usercontrol with Telerik's RadGrid and Calendar.
[code].....
The problems are, (1) when I click the submit button. the data in the RadGrid is not changed. (2) how can we check if there is nothing selected in the Calendar controls, because there is a date (01/01/0001) set even if we do not select anything from that calendar, thus Calendar1.SelectedDate != null is not enough.
View 1 Replies
Jan 19, 2010
I am having one column in each row of my radgrid in which i want to show an image. I am getting values from database saying 1,2 for that particular column and for each of these values i want to show different images for different values. For Example if i am getting 1 from database i want to show "roseImage" and for 2 i want to show "lotusimage",
View 3 Replies
Jul 19, 2010
I've posted this in the 'Datasource Controls' thread and didn't get the answers I was looking for. So I thought I'd try here; I recieved some good answers in this thread. I have a page where a user inserts new data in a table. The page consists of a series of textboxes and a button. My sqldatasource code is below. I don't have a SELECT statement, just an INSERT statement. I want to be able to have an error message (response.redirect, label, msgbox, etc.) when the user tries to enter an ID ( the PK) that already exists (instead of the usual "unique constraint violated" message)
View 19 Replies
Apr 15, 2010
I m working on application that works similar to our email i.e when user enter his emailid and password his inbox should be display and those unread should be in bold and i have a treeview for inbox, sent, deleted .when inbox is selected the inbox detail should be displayed using gridview by default like in email the inbox data shoul be display on pageload so i have written databind code for grid view in page load event
protected
void Page_Load(object sender,
EventArgs e)
{
if (!IsPostBack)
{
Class1 obj =
new
Class1();
string toid = Context.User.Identity.Name;
obj.gridfill(gv, "select * from inbox inner join usermaster on inbox.userid=usermaster.userid where inbox.toid= '" + toid +
"'");
string id = Context.User.Identity.Name;
lblemaiid.Text = id;
Session["inbox"] =
"false";.........................................
View 7 Replies
Nov 30, 2010
I am a MVC newbie & am lost in various ways validation can be implemented in my application.
I created a custom model-level data annotation validator attribute, but am unable to display its error message in the view. Basically, I have let's say 5 properties in the Entity class Job (model-level custom attribute called UniqueKeywords defined on it):
1) LoginID: value comes in the URL
2) Title: Required property level attribute defined on it
3) CatID1, CatID2, CatID3 - 3 categoryIDs - these are dropdowns in the view with same list of keywords in all 3.
I want to mandate that the values picked by the user in all 3 category dropdowns should be different.
With reference to the code pasted below, here is the explanation of what happens:
When I submit the form without specifying a title or picking anything from any of the 3 category dropdowns, the validation occurs for the property level Required attribute as well as model level uniquekeywords attribute, but the error is displayed only next to the required field "Title". I can confirm that the custom validation also works by filling in some text in the Title field & then re-posting the form...this re-displays the view, but the error message "Category cannot be duplicated" is not displayed.
Only relevant code sections are pasted below:
My Entity class code:
[Code]....
View 10 Replies
Mar 8, 2011
All the examples and websites i have looked at redirect a user to the error.aspx page when an error occurs. How do you just display a friendly error message on the page the user is viewing saying something like "Sorry unable to do whatever" I've tried using a try catch block on my class that executes a stored procedure and put another try catch on the controller, but this does not work and i still get the default error message (System.InvalidOperationException was unhandled by user code) My code is below:
[Code]....
So how can i just return ViewData["SqlError"] message in page.
View 7 Replies
Jul 2, 2012
I am trying to handle the unhandled exceptions in my project.I tried with this following code in my web.config filebut it is not at all redirecting to an error page which i have created instead of that it is throwing an exception in my code itselef. How to print the error description over therein my custom error page.
---------------------------------------------------------------------------------------------------
<sys.web>......<customErrors mode="On" defaultRedirect="~/Error.aspx"></customErrors>...</sys.web>
---------------------------------------------------------------------------------------------------
And even i tried in Global.asax page in Application_Error() method like below
Exception ex = Server.GetLastError();Response.Redirect("~/Error.aspx?errmsg="+ex.message);Server.ClearError();
And in my Error.aspx.cs page i have placed a label and i have written code like this
protected void Page_Load(object sender, EventArgs e) {
Label1.Text=Request["errmsg"];
}
But it is not getting redirected my error page and not displaying anything on it.
View 1 Replies
Nov 17, 2010
I am currently using Visual Studio 2008 to develop a hierarchical grid that displays records, its got 3 levels. The code looks roughly like this.
<telerik:RadMultiPage runat="server" ID="RadMultiPage1" SelectedIndex="0" RenderSelectedPageOnly="false">
<telerik:RadPageView ID="RadPageView1" runat="server">
<telerik:RadGrid ID="radGrd1">
<MasterTableView>
[Code]....
I have ommited all the code and just provided the skeleton.
The problem i am having is that when i add the Radgrid, the intellisense does not seem to pick it up and visual studio does not add it to the designer class either.
I have tried viewing it in design view and forcing it to sync and even manually added it to the designer class myself. These solutions have not solved my problem as although the intellisense does pick up the control after adding it manually, the control itself is set to null during run time.
So basically is it possible to add a rad grid in the first place and if so what am i doing wrong.
View 1 Replies
Jan 14, 2011
Is anyone able to offer any decent alternatives to the telerik ASP.Net controls.
I'm in the market for a decent grid control with all singing all dancing extensions... bt I'm finding the telerik grid really hard work to deal with.
The telerik controls do look good, but after a day of hard work with them I'm just looking to see if there are any other 3rd party offerings?
View 3 Replies
Feb 5, 2010
What's the simplest way to add a new row to a Telerik RadGrid in ASP.NET from code behind?
View 2 Replies
Jul 22, 2010
I'm using the Telerik rad grid and I'm allow the user to enter data directly to the grid.
I am using the "EditForms" edit mode and I also allow inserts using the same.
If the user edits a row, then I don't want to allow any other edits or inserts until the current one is complete or cancelled.
View 1 Replies
Jun 9, 2010
I am currently highlighting a row in a radgrid using OnMouseOver. I would like to know if it is possible to use OnMouseOver to select the row rather than highlight it.
Alternatively, I would like the highlighted row to remain highlighted if the radgrid loses focus, such as when a confirmation box pops up.
View 2 Replies
Jan 15, 2010
I created a RadGrid with a couple of fields for filtering and I can't seem to get the filtering to work. I can see it clearly posting back (the ajax spinny circle thing) after typing something in the filter box, however my results are always the same. I am using the following definition in the aspx file:
<telerik:RadGrid PageSize="4" ID="RadGrid1" runat="server" AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="False" OnNeedDataSource="RadGrid1_NeedDataSource"
OnSelectedIndexChanged="RadGrid1_SelectedIndexChanged" Skin="Black" ShowFooter="True"
ShowStatusBar="True" AllowFilteringByColumn="True"
[Code]....
View 2 Replies
Mar 24, 2011
give me any pointers for free tutorial on RADGRID or give me a simple example on how to create a RADGRID and bind it to data source.
View 2 Replies
Nov 26, 2010
I've tried to find the answer, but am not having any luck and am wasting to much time trying to figure it out. Using RadGrid from Telerik, latest version of their Ajax Controls, I've added a Select to each row, and can't figure out how to get the value of the selected row. Prefer to get the value of the ID column (from ID field in my database) or other specific columns. C# or VB example will work, VB preferred.
View 2 Replies