Customizing the RadGrid EditItemTemplate Telerik - c#

I created a RadGrid and added in the default edit stuff so that I can edit the data in my table. However, there is no validation for the controls that were generated and it is not very user friendly. I want to add some validation to the controls and also style them with css.
What would be the best way to go about doing this? Is it possible to add validation and styling to the controls that are automatically generated for editing columns? OR Should I create a custom template to do this?
I am just trying to get pointed in the right direction so please leave ANY feedback or insight into this!

What you want is to create an Edit Form Template.
http://www.telerik.com/help/aspnet-ajax/grid-edit-forms.html

Related

How can I create a custom Ribbon control with WPF?

I want to be able to add a DatePicker to one of my Ribbon's tabs and have the space and size managed by the Ribbon. Particularly, I want to create a custom Ribbon control that will have a Ribbon control Label attribute available. I'm not sure how to solve this without multiple inheritance (inheriting from DatePicker and RibbonControl).
Is there a RibbonControl interface that will grant me access to the Label attribute of the control without having to define custom formatting? Will I have to abandon the ribbon and create a custom tabbed interface instead?
I dont know why you would like to create a custom ribbon, whether you want a ribbon with which you could interact. i am proving you a link here, you could download the source code and modify it as you want. here it show they have added a drop down list. you could add a date picker too.
http://www.codeproject.com/Articles/23199/WPF-C-Ribbon-Control-Library
if it helps you. you are welcome in advance

jqgrid functionality to allow adding two columns using add-form but to allow editing of only one column by inline-edit option

I am using jqGrid to display the database table and loading the JQGrid using DataSet from ASP.NET code behind file. Columns are also generated from code behind file at the runtime. I have two columns (PrimaryKey column[which is not auto-increment field], Text Field column) and I want to provide add functionality to both the columns using add-form but edit functionality to only one column i.e Text field column using inline editing.
This is similar to the question reported here and the answer is pretty close to what I want. I found other solutions as well but most of the solutions use data in JSON format and are loaded from Javascript.
I am having a hard time figuring out the above functionality because the data is already loaded from the database and I just wish to modify the editable property. By default I have Primary field not-editable and Text field - editable.
I would really appreciate any help.
The answer which you reference is oriented on the inline editing mode. In case of usage of form editing I can recommend you to follow this. You can combine both to force inside of beforeShowForm both columns be editable in the Add form and making only one column editable in case of Edit form or inline editing.
UPDATED: From the email which you send me I could first of all find out that you used wrong tag jqgrid for your question instead of jqgrid-asp.net. So you used commercial jqSuite product instead of free open source JavaScript jQuery plugin jqGrid. I answered you how you can solve the problem in jqGrid, but your problem was how to use the same in the .NET classes which provide jqSuite.
In the case you can find the solution in the answer. You should just fix the typing error in the code and use different properties JQGrid1.ClientSideEvents.AfterAddDialogShown and JQGrid1.ClientSideEvents.AfterEditDialogShown.

asp.net: combobox or listbox PLUS checkbox

i need a solution like this:
http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/checkboxes/defaultcs.aspx
however, i need the user to be able to add entries in here.
does such a control already exist?
it can be either jquery or asp.net
it also does not have to be a combobox, it can be a listbox. i need to have every item have a checkbox next to it and be able to add a comment for each entry.
Take a look at the ASPxGridLookup control from the DevExpress component vendor.
The ASPxGridLookup component allows the implementation of the multi-select DropDown functionality:
http://demos.devexpress.com/ASPxGridViewDemos/ASPxGridLookup/MultiSelect.aspx
http://www.devexpress.com/example=E3467
http://codecentral.devexpress.com/E3467/
with editing capabilities via the embedded ASPxGridView object:
http://demos.devexpress.com/ASPxGridViewDemos/GridEditing/EditModes.aspx
Ref : DropdownList with Multi select option?
Multiple dropdownlist with checkbox....checkout below link...
checkout demo page here...
http://download.ysatech.com/ASP-NET-Multiple-Selection-DropDownList/ASP-NET-Multiple-Selection-DropDownList.aspx
Blog page here....
http://blog.ysatech.com/post/2009/09/09/ASP-NET-Multiple-Selection-DropDownList-with-AJAX-HoverMenuExtender.aspx
http://www.codeproject.com/KB/user-controls/MultiSelectDropdownList.aspx
To me it sounds like it might be better for you to run with a ListBox. Telerik offers the RadListBox, which allows you to have checkboxes as seen here.
Additionally, you could allow for edits upon, for example, double-click as is displayed in the source code attached to this forum post.
Finally, if you want to also display the comments then you could use an ItemTemplate to define a custom layout for each RadListBoxItem and allow the user to edit both the main and comment fields.
That should cover everything that you need.

change listview on button click

I would like to change the listview template on a button click event. for example if your in edittemplate i would like to switch to ItemTemplate.
i am trying to do this because im writing my own custom update function for the list view. so after i successfully update the row, it doesn't switch back to the default view.
Rgds
Adrian
Adrian,
As you have tagged this as an asp.net question I would direct your attention to jquery (jquery.com). If you use a vanilla template (wrapping your elements in simple "div" tags) and use the jquery tools to do addClass/removeClass and toggleClass and apply various css styles to achieve the visual effect you desire you should be able to land just were you wish.
Using page methods you can leverage your custom update on a partial postback from jquery and reduce the server impact.
If you would rather do this server side you are probable looking to leverage the item databound event to set your template.
A more complete answer would require more information about what you are trying to accomplish.
Cheers,
CEC

GridView Editing With Mootools

I've a grid view which has BoundField columns, an Edit link and a Delete link.
For the Edit link, is it possible to call a modal box by MooTools with fields in it?
Note that previous values of the fields are displayed before making an update.
Thanks so much.
How about using jquery or ModalPopupExtender AjaxToolKit control?
Still, you can use the jquery tutorial for your mootools implementation. You can get a good idea from it to do it your own.

Categories

Resources