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

May 23, 2010

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


Similar Messages:

Set Telerik RadGrid To Edit Mode By Default?

Dec 7, 2010

I have a checkbox column in a RadGrid that I want the user to be able to check/uncheck it and set the attached property. When the grid renders however, the checkboxes are disabled, because the grid is not in "edit mode". All the examples I'm finding want me to go through a lengthy process of selecting the record, putting it into edit mode, changing the value, saving the value.... yada yada yada...I just want the whole grid to be in edit mode (or the column, or whatever works) from the get-go, so the end user can make a one-click change to the data value. I know there must be a way to do this, I just can't seem to find it.

View 1 Replies

Forms Data Controls :: Date Format In Gridview In Edit Mode?

Nov 20, 2010

I want to have a date format in gridview column when user is in edit mode.

That is when user is editing the date he should automatically get the format like this

'--/--/----' (i.e 12/01/2010) now he can write his desired date, he is not going to type the forward slash "/" using Key Board.

View 1 Replies

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

Oct 5, 2010

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

Best Practice To Manage Telerik RadGrid Grid And Column Widths?

May 25, 2010

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

Setting A RadGrid To Edit Mode From An External Button?

May 20, 2010

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 adGrid_ItemCommand event then I could get it working. But how do I pass the relevant GridCommandEventArgs from a asp.net button ?

View 1 Replies

Customize The Filter Option For A Date Column Telerik Grid?

Dec 3, 2010

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

Forms Data Controls :: Where Is The Apply Format In Edit Mode Property

Apr 28, 2010

I remember setting a property similar to "ApplyFormatInEditMode" for a data control but I can't remember where this was. I thought it was for a Grid View or Details View but can't find it. This would apply formatting such as currency when the control was in edit mode.

View 2 Replies

Alternative To Telerik RadGrid?

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

Telerik RadGrid - How To Add A New Row From Code Behind

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

Forms Data Controls :: Control Datetime Format In Gridview Edit Mode?

Aug 10, 2010

I have a DateTime Field in the database that only has the the date the time is all zeroes for each entry.

I have a gridview that displays the date only excep it edit mode. When the grid is in edit mode it also shows all the zeros for the the time. Is there way to not show the time in edit mode?

View 4 Replies

C# - Any Pointers To How To Use Telerik RADGrid In C Sharp

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

Finding Values In A Telerik Radgrid?

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

How To Refresh Telerik:radgrid Contorl Using Javascript

Oct 5, 2010

How to refresh Telerik:radgrid contorl using Javascript ?

View 2 Replies

How To Remove Filter Button On Telerik RadGrid

Jan 14, 2011

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

C# - Add Textbox To Telerik Radgrid Confirmation Dialog?

Dec 3, 2010

I need to collect additional information from the user when they initiate a delete on a radgrid. Right now I am presenting the user with a confirmation dialog box that lets them click "OK" to continue but I need to add an additional textbox to collect a reason.

View 1 Replies

C# - Telerik RadGrid - How To Set The MaxLength For The Insert Textbox

Jul 23, 2010

I have a radGrid on the page with the "Add New Record" button. When I click the "Add New Record" button, a textbox appears above each column that allows me to enter values. I want to limit the number of characters that can be entered in the textbox. How do I set the MaxLength of those textboxes

View 1 Replies

Forms Data Controls :: Variable Column Name In GridView Edit Mode?

Oct 23, 2010

I have implemented globalization in my website by using Global Resources. I thought of implementing it not only on controls but in database fields. So for some columns which would be single columns in normal conditions, I considered multiple columns for different culture. For example if there was a [Title] column, I replaced it with [Title-en-US], [Title-en-GB], [Title-es-ES] and etc.I have a web page with a GridView control that displays the content of that table. In a normal case (without globalizing), I would have a TemplateField in the GridView like this:

[Code]....

I have columns for each culture defined in the system so that based on the user's choice, I display that corresponding column content.My question is I have no idea what I should set the Text and SelectedValue properties in HTML code above.Something like this: Text='<%# Bind("myTable.[Title-" &#43; TheSelectedCulture &#43; "]") %>' !!!!!

View 3 Replies

Data Controls :: How To Validate BoundField Column In Edit Mode Of GridView

May 7, 2015

How can I put validations in editable grid?

View 1 Replies

Telerik RadGrid Doesn't Display On First Page_Load But Does On Postback

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

Telerik Radgrid GridDataItem.DataItem Is Empty When Updating?

May 10, 2010

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)
{
if (e.Item is GridDataItem)
{
var gridDataItem = e.Item as GridDataItem;
var client= gridDataItem .DataItem as Client;

This works find when handling the ItemDataBound event but not when handling the UpdateCommand event. I really need this as in my Client class is the Id of the row I want to handle the update for.

View 2 Replies

Telerik RadGrid Doesn't Seem To Export Grouped Data?

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

Find Html Anchor Control In Telerik:radgrid ?

Sep 22, 2010

how to find html anchor control in telerik:radgrid ?

View 1 Replies

How To Change The Data In Telerik's RadGrid Based On Calendar's Selected Dates

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

Forms Data Controls :: Gridview - Column Styling - Class To Define What Textbox Looks Like In Edit Mode

Jun 10, 2010

In the example below I have set the control style to 'controlName' I want to use this class to define what my textbox looks like in edit mode. This works ok, so far so good. The Problem In a button event I add the class "validationError" to this textbox if the data is incorrect. When the grid gets rendered I expect to get 'controlName validationError as the class applied to the textbox. Unfortunately, it seems that the declarative statement overrides this and simply ends up as 'controlName' how I can intercept the application of the declarative class so that I get what I desire here?

<asp:BoundField
DataField="Name"
HeaderStyle-CssClass="headerName"
ItemStyle-
CssClass="itemName"
ControlStyle-CssClass="controlName"
HeaderText="Name"
>
</asp:BoundField>

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved