Telerik MVC Grid - Putting A Button In A Column?

Oct 25 10 at 16:16

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.



ADVERTISEMENT

C# - Telerik Grid With A JavaScript Confirm Box To Update A Column?

Mar 8 at 13:45

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.

View 1 Replies View Related

Telerik Grid MVC2 Missing Last Column Separator?

Jan 14 at 8:54

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

View 1 Replies View Related

Best Practice To Manage Telerik RadGrid Grid And Column Widths?

May 25 10 at 10:12

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,

View 2 Replies View Related

Forms Data Controls :: How To Select Row In Telerik Grid And Get Value Of Column 1

Jun 29, 2010 03:31 AM

I want to select the row of telerik radgrid and get the value of column 1For thi can't use select or deselect columns, Here i want to select row by clicking only.here I also require code to get the value of column 1 of selected row

View 4 Replies View Related

Customize The Filter Option For A Date Column Telerik Grid?

Dec 3 10 at 12:29

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

View 1 Replies View Related

Telerik Grid With Checkbox - Checkbox Not Showing Up When The Grid Initially Paints?

Nov 22 10 at 20:07

I have a telerik grid with a checkbox. I am using a client template. There is a .DataBinding Ajax call attached. When the grid initially comes up, instead of a checkbox, it has the id value as text.If I hit refresh, the ajax call gets executed and when it comes back the checkbox appears. Is there any way to force the ajax call to happen when the grid initially paints so that I have a checkbox and not text..

View 1 Replies View Related

How To Get Telerik MVC Grid Data

Dec 15 10 at 14:19

How can i pass asp.net mvc telerik grid data to controller using Ajax call.I need to save the telerik MVC grid data in database.

View 2 Replies View Related

C# - How To Disable Filtering In Telerik Grid

Sep 3 10 at 10:28

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.

View 2 Replies View Related

C# - Disable Filtering In Telerik Grid?

Nov 18 10 at 13:58

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.

View 1 Replies View Related

Telerik Grid Control With Editform

Aug 24, 2009 03:45 PM

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

View 1 Replies View Related

MVC :: Error Deploying Telerik MVC Grid Control

May 12, 2010 03:25 PM

I've introduced the (awesome) grid control and got it working fine on my dev environment.I deployed my site to my local dev server and got the following error:

[Code]....

View 4 Replies View Related

Access Row In Telerik Grid In MVC2 Application?

Dec 27 10 at 20:07

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.

View 1 Replies View Related

Rendering Telerik MVC Grid In A Razor View?

Dec 16 10 at 8:33

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();
}

View 1 Replies View Related

Client Side Validation In Telerik's MVC Grid?

Apr 20 10 at 13:31

Is it possible to add client side validation to the fields of the Telerik MVC Grid at runtime. I am having validation JSON strings stored in the DB which I need to use when inserting or updating content

View 1 Replies View Related

MVC :: Possible To Insert Grid Inside Panelbar UIcompenents Telerik

Aug 01, 2010 05:42 AM

is it possible ro insert grid inside a panelbar i try this but i have some errorsi define a grid in the inctructuion .content()

View 1 Replies View Related

Telerik Grid - Export To CSV More Columns Than Displayed On Screen?

Dec 21 10 at 3:01

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

View 2 Replies View Related

MVC :: Using Telerik Grid To Present Memos Received By User?

Jun 15, 2010 06:52 AM

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.

View 12 Replies View Related

Telerik Rag Grid Data Refresh Error After Edit?

Aug 24, 2009 06:02 PM

I using telerik grid with templateform for add and edit data. When i edit data or add data i cant see changes until restart page.I load data in following method

protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)

[code]...

View 1 Replies View Related

Putting Average Of Column In Footer - Can Get The Average Of All The Numbers In The Column?

Dec 3 10 at 15:54

I am able to sum an entire column and put the total in a column, but what if i want to get the average of all the numbers in the column?

[code]....

View 1 Replies View Related

C# - Accessing Linq Data In Telerik Grid ItemCreated Method?

May 17 10 at 1:09

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

View 2 Replies View Related

Telerik MVC Extension - Grid Loaded Within Tabstrip Doesn't Support ClientEvents?

Apr 2 at 14:49

I am facing serious problem while trying to work in clientevents provided with asp.net mvc telerik grid.
Here's the two different scenarios:When I am putting the following script in a view or partial view it works fine;

<%= Html.Telerik().Grid()
.Name("Grid")
.DataKeys(keys => keys.Add(p => p.StaffId))

[code]...

View 1 Replies View Related

Forms Data Controls :: Nested Grid Dynamically Fill When Parent Grid Button Click Then Expand Child Grid

Jan 16, 2011 07:03 PM

i have one grid and one button when i click on that button then it expand and showing another grid under the row of parent grid how to do that.

View 2 Replies View Related

Forms Data Controls :: How To Access Telerik Grid's Rows And Cells

Oct 20, 2010 06:14 AM

[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

View 1 Replies View Related

C# - Extra Column Appearing When Paging In Telerik RadGrid?

Oct 5 10 at 13:19

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.

View 1 Replies View Related

C# - Allow Some Specific Character From Long Text In Telerik Column?

Jul 20 10 at 4:34

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.

View 2 Replies View Related

Forms Data Controls :: Show Grid With All Orders And In Grid One Column With Last State Of Order?

Feb 02, 2011 07:41 AM

I have an entity "Order", which contains a set of states. Every state has date and name.

I want show grid with all orders and in grid one column with last state of order. But I dont understand how to do it.

View 1 Replies View Related

Using Telerik RadGrid - How To Set The Date Format For Autogenerated Column In Edit Mode

May 23 10 at 11:54

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.

View 3 Replies View Related

Forms Data Controls :: Show The Customer Column And OrderID Column In Grid View?

Dec 16, 2009 07:40 AM

I have 3 check box (chkCustomer,chkOrderID, chkAmount), 1 button and 1 grid view. If I click the chkCustomer and chkOrderID and then click the button. I want to show the Customer Column and OrderID Column in grid view. If chkCustomer and chkOrderID value are false and click the button. I don't want to show that data in grid view. Is it possible? Have any sample for it?

View 2 Replies View Related

DataSource Controls :: How To Select Column Value From Grid And Hide A Column

Oct 19, 2010 01:35 PM

I'm trying to retreive a column value from gridview5 to use it in a query to display resuls in gridview, Also how do you hide a column in the grid?

Where (p.Link_ID Like GridView5.?

[code]....

View 3 Replies View Related

How To Remove Filter Button On Telerik RadGrid

Jan 14 at 7:38

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.

View 1 Replies View Related

Web Forms :: Link Button With JavaScript / Window Updates But Does Not Refocus By Putting It Back On Top

Feb 12, 2010 01:56 PM

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.

View 1 Replies View Related

Forms Data Controls :: Have A Grid View With Some Coulmns Like Name,Phone No Etc With Edit,Delete Column In Grid View?

May 27, 2010 11:02 AM

i have a grid view with some coulmns like Name,Phone no etc with Edit,Delete column in grid view. I click a row in grid view to Edit,it goes another page where i can edit all fields .Once i update i redirect the page to gridview. I want the grid view to remain in that particular page say 4 of the grid view

View 5 Replies View Related

Forms Data Controls :: Add A Button At First Column Of Gridview And Get Cell Value In Another Column

Jul 22, 2010 01:26 PM

How to add a button at first column of gridview and get cell value in another column?

For example, add a button named it as "Click me". Once user clicks will get third column cell's (ID) value.

View 2 Replies View Related

Forms Data Controls :: Click Button Outside Grid View And Display The Grid View Upon Load?

Feb 09, 2011 11:23 AM

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

View 6 Replies View Related

How To Replace With Having Only One Button In Footer Of The GridView That Can Update All The Rows In The DtTable By Timesing Price Column To Quantity Column

Jan 30, 2009 02:33 PM

I have a datatable as Shopping Cart and GV to display the Columns in the DT, also I have another Column Update, so every Row has an Update Cell that calculates the Subtotal by timesing The quantity Column to Price Column. How can I replace with having only one button in Footer of the GridView that can update all the Rows in the DtTable by timesing Price column to Quantity Column. something like Looping through all the rows.

View 9 Replies View Related

C# - Highlight Column Of Grid?

Jul 16 10 at 5:55

i need to highlight a column of a grid when clicked for sorting.

View 1 Replies View Related

Forms Data Controls :: Binding Data In Column Of Data Grid To Other Column?

Jul 26, 2010 01:26 PM

I have a boundcolumn that outputs string numbers. I have another column of checkboxes next to it. I need to have it so that when a user checks off a check box the value stored in the string column to the left is then plugged into a function on the server. How can I acheive this?Here is my code:

[Code]....

[Code]....

View 8 Replies View Related

MVC :: MvcContrib Grid Column Formatting

Jul 14, 2009 03:39 PM

I have a working page grid using MvcContrib. I have one column that I need to be able to center. I'm not able to find how to apply specific css styling to a single column's data in the resulting html table.

View 1 Replies View Related

MVC :: How To Replicate In The Grid.Column Is Similar

Mar 02, 2011 05:14 PM

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})
}

View 6 Replies View Related





Banners
Copyrights 2005-14 www.BigResource.com, All rights reserved