Telerik MVC Grid - Putting A Button In A Column?
What im trying to do is have an edit button that instead of opening the line for editing, it forwards you to a page where you can edit. Is this possible? I tried something with the client template, but the grid render is ignoring it completely.
View 1 Replies (Posted: Oct 25 10 at 16:16)
Sponsored Links:
Related Forum Messages For ASP.NET category:
C# - Telerik Grid With A JavaScript Confirm Box To Update A Column?
I have a Telerik grid. For each row there is a details table. The row is of type NominationTypeClass and the rows in the details table is of type Nomination. So what this means for each nomination type there is a list of nominations. The grid's code: <telerik:RadGrid AllowPaging="true" AllowSorting="true" AutoGenerateColumns="false" GridLines="None" ID="rgMyNominations"....... I have an action column that has a link that says Withdrawn. When clicked I have a JavaScript confirm box with a Yes or No option. If yes, then the nomination status is updated to withdrawn. Then I want the grid to be refreshed to show the updated status. I used the grid's update command to to show the show the JavaScript's command box. It updates, but is it the correct way to do it? protected void rgMyNominations_UpdateCommand(object source, GridCommandEventArgs e) { try { StatusManager.InsertStatus( /* required parameters */ ); // Refresh grid rgMyNominations.DataSource = GetNominationTypes(); rgMyNominations.DataBind();..... ...it says that NominationDate is not a property of NominationTypeClass. This is wrong, I don't know why it is taking the type for the row to be the type of the details table? NominationDate is a property of Nomination. It seems like it is overriding the datasources.
Posted: Mar 8 at 13:45
View 1 Replies!
View Related
Telerik Grid MVC2 Missing Last Column Separator?
My grid has 5 data columns and 1 command column (update/delete)the column separator between command column and last data column is missing, making everything shift when entering inline edit mode. this is the grid's view code: <%= Html.Telerik().Grid<ActivityPOCO>() .Name("ActivityGrid") .DataKeys(dataKeys => { dataKeys.Add(e => e.ActivityID); } .ToolBar(commands => commands.Insert().ButtonType(GridButtonType.Image))........
Posted: Jan 14 at 8:54
View 1 Replies!
View Related
Best Practice To Manage Telerik RadGrid Grid And Column Widths?
I wanted to ask what is the best practice to manage width of the radGrid. For my application most users are running 1280 x 1024 so I would be happy to set my overall grid width to 1100. However, depending on the form in use, I sometimes have horizantal scroll bars. To solve this, I have been playing with the width of the grid, and also I have played with setting the itemstyle-width for one or two columns. Sometimes I accidentally get it right, and sometimes it is not quite right. What is the best way to manage this? Do I set the grid, and then all columns, or just the grid, or just the columns? I guess there is a best practice, so just wondering how you handle it,
Posted: May 25 10 at 10:12
View 2 Replies!
View Related
Customize The Filter Option For A Date Column Telerik Grid?
I am using telerik grid. I need to apply a filter for all the columns in my grid. Currenly I am customizing the filter option using the following code. By using the following code, I am removing the certain items for all the columns. But, for a date column what are the possible options for filtering in the grid and how to customize those filtering options? Code Behind protected void RGVTest_Init(object sender, EventArgs e) { GridFilterMenu menu = RGVTest.FilterMenu; [code]....
Posted: Dec 3 10 at 12:29
View 1 Replies!
View Related
C# - How To Disable Filtering In Telerik Grid
Currently i am using Telerik grid which filters are applied to each column. I am binding the SQL result set to grid. If the result set is empty from the database while binding, I should disable the filter option in the grid. How can i achive the same through ASPX or Code behind using C#. Does Telerik Grid have any property to disable the filtering option when thre are no records.
Posted: Sep 3 10 at 10:28
View 2 Replies!
View Related
C# - Disable Filtering In Telerik Grid?
Currently i am using Telerik grid which filters are applied to each column. I am binding the SQL result set to grid. If the result set is empty from the database while binding, I should disable the filter option in the grid. How can i achive the same through ASPX or Code behind using C#. Does Telerik Grid have any property to disable the filtering option when thre are no records.
Posted: Nov 18 10 at 13:58
View 1 Replies!
View Related
Telerik Grid Control With Editform
I have telerik rag grid. I use edit form to edit existing data. When i use edit button type as link button edit buttun working. But when i change edit button type as image button its not working. (I checked with push button it also not working).I ll provide my code below. Where is the wrong <telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AllowPaging="True" [code]...
Posted: Aug 24, 2009 03:45 PM
View 1 Replies!
View Related
Access Row In Telerik Grid In MVC2 Application?
I am using telerik grid in mvc2 application. I have to perform Watin UI test for my application. For that i need to select a row from the telerik grid. I was not able to select id for the telerik grid as the telerik grid doesn't have any id. can u please help me to select the particular row from the grid. I have 6 columns in the grid. Based on the value of a row in the column(should iterate though the column) i need to select the id of that row and hit on the select button of that row.
Posted: Dec 27 10 at 20:07
View 1 Replies!
View Related
Rendering Telerik MVC Grid In A Razor View?
I have the following markup in a 'content' page. Without the Render call, nothing renders, and with the Render call, the grid renders as the first element in the whole page, not inside the 'content' section defined by my view: @using Telerik.Web.Mvc.UI @model Outdoor.Mvc.ViewModels.OutdoorSite.SiteList @{ Html.Telerik().Grid(Model.ItemList).Name("Site Grid") .Columns(columns => { columns.Bound(o => o.SiteId); columns.Bound(o => o.Name); }) .Pageable() .Sortable() .Render(); }
Posted: Dec 16 10 at 8:33
View 1 Replies!
View Related
Telerik Grid - Export To CSV More Columns Than Displayed On Screen?
Problem: How to display more columns in a Telerik grid than are displayed in the rendered grid? eg I'd like to only display on the screen the Surname, but on dump to csv would like firstname too. I've tried visible = false, and display = false on the GridBoundColumns, but then they don't come out on the csv. <telerik:RadGrid ID="grdAuctions" runat="server" AllowAutomaticDeletes="True" AllowAutomaticUpdates="True" AllowPaging="False" AllowSorting="True" AutoGenerateColumns="False" DataSourceID="odsAuctionSales" GridLines="None" EnableEmbeddedSkins="False" OnItemDataBound="grdAuctionSales_ItemDataBound"> <ExportSettings HideStructureColumns="true" /> [Code]....
Posted: Dec 21 10 at 3:01
View 2 Replies!
View Related
MVC :: Using Telerik Grid To Present Memos Received By User?
i m using Telerik grid to present memos received by user below is the code [Code].... where i m binding third column (Subject) my intention is to make an ActionLink where subject is the display text and i want a dynamic ID coming from <#=MemoID#>. memo id is working fine and gives me a link with dynamic Memo IDs. the problem is with the subject i.e ("<#=Subject#>") is rendered as it is on the screen without mapping to the actual subject of the memo. i have also tried ("<%#=Subject%>") but to no gain.
Posted: Jun 15, 2010 06:52 AM
View 12 Replies!
View Related
C# - Accessing Linq Data In Telerik Grid ItemCreated Method?
I have a telerik grid bound to a Linq data object, however, I limit the fields returned: <IQueryable>filter = data.Select(x => new {x.ID, x.Name, x.Age}); I would like to access these fields in the ItemCreated method of the grid: protected void rgPeople_ItemCreated(object sender, GridItemEventArgs e) { Telerik.Web.UI.GridDataItem item = (GridDataItem)e.Item; ?????? Person = (???????)e.Item.DataItem; } What do I declare ?? as so that I can use: String ID = Person.ID; String Name = Person.Name; etc
Posted: May 17 10 at 1:09
View 2 Replies!
View Related
Forms Data Controls :: How To Access Telerik Grid's Rows And Cells
[Code].... And in a submit button click event,I am writting the following code:ut,the problem is:I am gettting null for ChannelNumber,ServiceID,TransponderID,NetworkID,i.e.,not being able to access the values entered in those respective textboxes.Where am I going wrong?Do I need to write the same code in diff event?or diff code in diff event
Posted: Oct 20, 2010 06:14 AM
View 1 Replies!
View Related
C# - Extra Column Appearing When Paging In Telerik RadGrid?
I'm getting a blank column when switching to another page using the default pager in the telerik radgrid. As data for each row, it shows the type of data i am using for the rows (SearchRecord) Anyone have any clues as to why this may be happening? It doesn't show up on initial population of the grid, but only when I do paging. My columns are built dynamically but i confirmed that when my columns are built, they are the correct number.
Posted: Oct 5 10 at 13:19
View 1 Replies!
View Related
C# - Allow Some Specific Character From Long Text In Telerik Column?
I have an aplication in asp.net MVC and using telerik grid for displaying the record. Now one of my field has some large text about 1000 character due to which the text is getting extended vertically and layout is not looking good. Is there any way to show some specific number of character in the column and show the whole text in a tool tip on mouse hover or any other way to show the complete text for that column.
Posted: Jul 20 10 at 4:34
View 2 Replies!
View Related
Using Telerik RadGrid - How To Set The Date Format For Autogenerated Column In Edit Mode
Using VS2008, and Telerik radGrid version 2010.1.519.35 I have a about 50 DNN modules using telerik radgrid and I need to display my dates in dd/mm/yy format. It is possible to do this easily in view mode, but when I switch to edit mode, it is more of a struggle. I can write a snippit of code to reformat the displayed date values to dd/mm/yy, but for inserts the user must enter mm/dd/yy. IOW, I need to change the culture of the form to en-GB culture. In my DotnetNuke App, I have made a change to the web.config, but it still assumes en-US format. I am not sure whether I need to set this at web.config level, page level or at the column within the control.
Posted: May 23 10 at 11:54
View 3 Replies!
View Related
How To Remove Filter Button On Telerik RadGrid
I'm really new to asp.net and Telerik... I have a RadGrid with filtering. I set AutoPostBackOnFilter="true" and CurrentFilterFunction="Contains" on my columns. Ok it works fine, user don't have to open drop-down list to select type of filter. But now, I want to hide filter buttons.
Posted: Jan 14 at 7:38
View 1 Replies!
View Related
Web Forms :: Link Button With JavaScript / Window Updates But Does Not Refocus By Putting It Back On Top
I have a link button on my page which has both an Oncommand event and an OnclientClickevent. The idea is that the oncommand updates some data via a postback and redisplays the page with the updates. The onclientclick event opens a new window. The new window is named so there is only ever one instance of it. What I'm trying to do is this. Open a new window (if its not already opened) and ensure it is on top of the parent window. The new window is a smaller size so the parent window is still visible beneath. On the first occurance the new window opens above, however when I refocus on the parent to click again, the new window updates but does not refocus by putting it back on top.
Posted: Feb 12, 2010 01:56 PM
View 1 Replies!
View Related
Forms Data Controls :: Click Button Outside Grid View And Display The Grid View Upon Load?
I am doing a online web application whereby user is able to enter in new template as well as search for template. The Add template is located outside the grid view and if user clicks on the button, it will load the grid view that is populated with data as there is a row of empty fields at the bottom. However when I click on the Add Template button, the grid view does not appear. This is my business logic that I used it to search for records as well to click on the Add Template button to add in new records: [Code].... [Code].... [Code]....
Posted: Feb 09, 2011 11:23 AM
View 6 Replies!
View Related
MVC :: How To Replicate In The Grid.Column Is Similar
In a classic Tabular MVC View I have put a column that shows or hide some Html.ActionLink() tags for every row, depending on the model. I was trying to do the same with the razor WebGrid, but not being able to do that. The code snippet I want to replicate in the grid.Column is similar to this @if (item.CanDelete) { Html.ActionLink("Delete","Delete", new {id=item.id} } else { Html.ActionLink("Edit","Edit",new {id=item.id}) }
Posted: Mar 02, 2011 05:14 PM
View 6 Replies!
View Related
|