radgrid

radgrid autogenerated delete and edit command button, not firing the postback on first click

Hi, I have a radgrid bound to a custom datatable. The radgrid is created in the design, but the Cols are added at runtime in the code depending on some conditions. I have Edit and Delete Columns on the grid to perform the respective operations. Of the rows generated, the bottom half rows do not fire the postabck event completely and ...

Telerik RadGrid CustomSorting without hitting database?

I tried to post on Telerik forum, but now each time I try to open my thread, I get "Oops... It seems there was a problem with our server." So I posted this question here. I am pretty new to Telerik and RadGrid. I am trying to modify existing project because client needs custom sorting. There is a data field which may contain numbers or...

Telerik RadGrid doesn't display on first Page_Load but does on postback

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...

Iterate over rows/checkboxes in a RadGrid

Hi, I have a Telerik RadGrid with a GridTemplateColumn that contains a checkbox, as follows: <telerik:GridTemplateColumn HeaderText="MINE" UniqueName="MyTemplateColumn"> <ItemTemplate> <asp:CheckBox id="MyCheckBox" runat="server"></asp:CheckBox> </ItemTemplate> </telerik:GridTemplateColumn> I want to set the box t...

Clickable link in RadGrid column

I have a RadGrid where a column in the grid holds a URL. When a put a value in the column I can see the URL but the URL is not clickable (to go to the URL). How can I make the URL clickable? Here is a rough example of what I'm doing now: DataTable table = new DataTable(); DataRow row = table.Rows[0]; row["URL"] = "http://www.google.c...

How to avoid the refetch of records when paging button is clicked on the radgrid.

Iam using the radgrid, in my web application. Iwant to avoid the refetch of records when paging button is clicked on the radgrid. I have a method SetTodaysAlerts which gets near about 100 records and binds to my radgrid. The page size of the radgrid is 10, hence First, Next, Previous and Last buttons are available. When I click the next ...

Telerik inline edit, window close

Hi Using the Telerik RadGrid control in ASP.Net, using editing "inplace" all works well and performs as expected (even got some validation) but when the edit is complete the edit/insert window doesn't close .. and I would like it to ... any ideas as to what I need to set to make it do this ? Cheers ...

Dynamically created LinkButton not firing any events

I'm customising the Group Headers on a Telerik RadGrid by injecting a LinkButton into it during the ItemDataBound event. The button renders perfectly, but I can't get it to hit any event handlers. Here is the code for the button creation: Private Sub rgWorkRequestItemCosts_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI...

RadGrid does not display filtered data when except when on Page 1.

I have a Telerik RadGrid that is bound to a Linq Datasource. On the intial page load, the data shows up fine in the RadGrid. If I remain on Page 1 and filter the data, it shows correctly. However, if I go to page 2 or 3 or any page but the first 1 and filter the data, it does not display in the RadGrid. I examined the sql that linq i...

Telerik RadGridView problem

I am using Telerik RadGridView in my project. I want to show image in column. GridViewImageColumn col1 = new GridViewImageColumn(); col1.Width = 100; col1.DataMemberBinding = new Binding("id"); col1.Header = "PhotoByConverter"; col1.DataMemberBinding.Conver...

Is using an EntityDataSource in keeping with the MVC pattern?

I'm utterly new to APS.NET and in particular the MVC model...! I have a Telerik RadGrid control that I'm using. Until now (following NerdDinner) I was having the Model passed back to the view and this provided access to the various properties I wanted. eg: Inherits="System.Web.Mvc.ViewPage<MySqlMvc.Helpers.PaginatedList<MySqlMvc.Model...

How to set the SelectedValue attribute of Telerik RadComboBox inside the FormTemplate of a RadGrid

I have what I think should be a straightforward question. I have a RadGrid with FormTemplate editing and AJAX enabled. One of the fields in the FormTemplate is a RadComboBox filled with U.S. State selections. I can bind the RadComboBox to the data source to populate all the items, but I'm not able to set the SelectedValue attribute. ...

How to export radgrids template columns into single columns in excel?

I have a RadGrid which contains template columns. When I export to excel, it exports the columns as they appear in the grid. What I would like to do is to export the each field in a template column into their own column in excel? ...

Reading text out of textbox in Radgrid

I have a Radgrid with 2 Textboxes and 2 DatePickers. The idea is that I have a grid with a Property name, value, valid from and until. I'm filling the first Textbox myself, the user has to fill in the value, from and until. Filling in the propertynames: (In the pageload) foreach (String s in testProperties) { DataRow dr = dt.NewRow(...

Insert Records in Radgrid using user control.

How can I insert in Radgrid using user control when I clock on the Add New Record. ...

Telerik RADGrid - linq and updating

Hi Telerik's RADGrid, basing on their example on http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/programaticlinqupdates/defaultcs.aspx Problem: I can insert and delete, however updating doesn't work. No error trapped. Data just doesn't change. From the code below it looks like Telerik Grid is doing some kung-fu behin...

Telerik Radgrid GridDataItem.DataItem is empty when updating (OnUpdateCommand handler)

Hi, When handling the OnUpdateCommand event on a RadGrid the DataItem is null. I thought that this would also represent the data item being represented by the row. The Radgrid is populated from an IList and in the handler the code looks like this... protected void rgAllocatedClients_UpdateCommand(object sender, GridCommandEventArgs e...

radgrid insert using radwinow

Hello Everybody, The company details page in my system has a user control to show the founders of the company, that user control represents the founders by using a Rad Grid and three buttons for insert/edit/delete founders, the founders grid is being bind by using a WCF service. the insert button calls a javascript method that opens a Ra...

How to hide specific header item in grid

Hi, I am using RadGrid and i am displaying the header item with months if the month data is null then i have to make invisible the entire column including the header text i am using Telerik version Grid. Please reply it fast Waiting for the reply, Thanks in Advance Vara Prasad.M ...

setting a radGrid to edit mode from an external button

Hello, I have a rad grid where I can insert/update and delete items of data. i have set up a CommandItemTemplate with a button that, when clicked will put the grid in edit mode. What I would like to do is have the same functionality but from an external asp.net button. If I can get this button to trigger the radGrid_ItemCommand event ...