radgrid cell editable - asp.net

Please can anyone give me solution.
Here is the problem.
Am passing a datatable as datasourse to a rad grid. The coumns of datatable are autogenerated depending on the data. So, I did nt added the itemtemplates for the rad grid. in the aspx page.
How i should make each cell as editable as well I want give rad tool tip for every cell.
Please help me in this problem
Regards,
Bharath

To make the grid cells editable, simply add EditCommandColumn in the grid (either auto-generated or declarative). To add tooltips, use this approach and include RadToolTipManager on the page with AutoTooltipify property set to true.

Related

How to change orientation in Gridview (Asp.net)

In gridview my data showing in horizontal direction how to change that in vertical direction
Because I'm using ItemTemplate and TemplateField in gridview and I want to see the data one by one i.e in Row
please follow below link It might help u to solve your problem
May be this is what you're looking for:
http://forums.asp.net/post/2305635.aspx
You can also follow below link:
http://www.c-sharpcorner.com/Forums/Thread/214138/change-orientation-of-a-grid-view.aspx

I want to use Gridview as input fields, with no data to begin with. Is there an easy way to do this?

Thank you in advance.
Using .NET and VB I am looking to use Gridview as an input form grid with checkboxes. I would like each person who fills out the form to have a unique entry in the DB so the data source would be empty. Is there any way to display the checkboxes and have the gridview show up without any source data? We are trying to stay away from dummy data.
You could define your columns in the EmptyDataTemplate
http://forums.asp.net/p/1436652/3240106.aspx
http://geekswithblogs.net/casualjim/archive/2006/05/04/77151.aspx
please refer to below articles that would explain how to show a grid header when there is no data. then you can simply hide/unhide footer row where you can enter data and save the data.
http://technico.qnownow.com/2012/06/11/how-to-add-footerrow-to-gridview-which-has-no-value-initially/
http://technico.qnownow.com/2012/06/07/show-grid-header-when-there-are-no-rows-in-gridview-control/

Changing the Telerik MVC Grid columns dynamically on client-side

I would like to show my table data in grid. The table has more than 50 columns. By default they are displayed fine but I need a way to hide/show columns which are not required on screen.
So is there any way to achieve this? I think right clicking on the header should show all headers in a list box, allowing selection of which columns we want, then refresh the grid.
Please let me know if Telerik supports this and, if so, how?
No builtin feature available and this is one of many reasons why we are still thinking about other grids instead of telerik.
In the demo site there is a page where they show all the column names with checkboxes on top of the grid and you can check/uncheck to show/hide columns. see that sample source code, is simple to implement but still is custom code to add manually. I love the devexpress grid with customization popup and columns dragdrop from there but nothing like that for us in Telerik :-(

How to perform custom paging

Hy All,
I want to provide Numeric and First/Next/Prev/Last Button pager and DropDown for page size in grid view.
So please give me any link or any example.
Here's an example with the drop down you mentioned:
http://weblogs.asp.net/rajbk/archive/2006/08/14/GridView-DropDownList-Pager.aspx
With the GridView, paging is pretty much out of the box :)
you can add PagerSettings to your gridview
eg.
PagerSettings Mode="NextPreviousFirstLast" Position="TopAndBottom" Visible="true", also please read this link http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.pagersettings.aspx

buttons in a datagrid in flex

i am using a data grid in flex and i am generating data from a mysql server. However, my problem is with adding a button within the datagrid so each row has one.
i have set the columns itemRenderer to mx.controls.Button although with the buttons shown in the grid there is no label on them (even though one has been set) and the assigned click event does not trigger when hitting the button. anyone have any ideas or guidance on what i am doing wrong.
Thanks
Mark
Not to worry I have sorted it. anyone with a similar issue i suggest reading this
http://www.axelscript.com/2008/02/29/using-the-itemrenderer-with-a-datagrid-in-flex/
an excellent source.

Resources