I would like to make text selection possible inside grid with multirow selection enabled.
My solution to this problem is to use for example CTRL key to temporary disable multi selection, use single row selection to enable default text selection mechanisms.
I do not know if there is a solution to change grid options after it is being initialized (and I couldn't figure it out myself)
I use Kendo MVC in C# and Razor extension to create the grid.
Any ideas?
Use the same approach as the one suggested in this question. Basically for your case it would look like this:
$(function(){
$('#GridName').data('kendoGrid').tbody.on('mousedown',function(e){
if(e.ctrlKey){
e.stopImmediatePropagation()
}
})
})
Related
How add different controls in one column GridView?
I want it to be like this.
Without creating separate gridviews, for other controls.
As far as I see, each row has its own type and the same editor should edit cells in this row. For this scenario, I think it's better to use the Vertical Grid instead of the Grid View.
If you still wish to use the Grid View, use the GridView.CustomRowCellEdit and GridView.CustomRowCellEditForEditing events to assign the required editor to a grid cell.
I want to make the grid editable by using different types of editors based on row value in kendo mvc. Please suggest some suitable approach.
I tried with Javascript event handling but that did not worked.
I need to modify Rich Text Editor in sitecore to provide a button or something like that to add the Associated Content Select option. Could it be possible and in affirmative answer how to need starting
Thanks a lot
Firstly what your trying to achieve does not seems right for me. As associated content(Web Edit Button) sets the datasource of a rendering/sub-layout. you are trying to add that to RTE.
But below is approach you need to take to add a new webEdit button to RTE.
you need to find out what type of RTE you are using for your website. If you have not changed sitecore's default one, you can find it in core database in below path
/sitecore/system/Settings/Html Editor Profiles/Rich Text Default
if you change it you can find the core database item path under this setting in /sitecore/admin/showConfig.aspx
<setting name="HtmlEditor.DefaultProfile" value="/sitecore/system/Settings/Html Editor Profiles/Rich Text Custom"/>
To add a new web edit button you need to create an item with template id ({02404208-46D4-49BF-988B-EB363A52A1C9}) or name WebEdit Button under below path:
/sitecore/system/Settings/Html Editor Profiles/Rich Text Default/WebEdit Buttons
Once you added that you need to fill fields as below:
Click: webedit:setdatasource
Type: Datasource Menu
I am wondering that if an ASP DropDownList Control support Multiple Selection or not?
If Yes, then how can i enabled multiple selection in DropDownList ???
No, but there's lots of free stuff on the web. Here's a full sourcecode, tutorial and example for just what you need:
Link
By native dropdown never allow multiple selection, but you can use list box instead of that, this have option to set mutli / single item selection. Other wise if you want customized one you have to use some jquery plugin or some other js frame work plugins
you can try this sample link :)
jQuery Dropdown Check List
If I got you right, then you want to enable the multiple selection in your drop down list.
Here are some references where custom controls can solve your problem:
Check here
Or Check here
I am having one DataGrid..I want to create one button field inside the DataGrid dynamically.
Button filed type is link type.. this button field is fill after checking some conditions in my database..any body help me
Maybe use Jquery to add some controls or you can use httpwriter
httpwriter msdn
The answer for this may require you do a tiny bit of reading/understanding.
Basically you do two things:
1) Add the button design-time and 2) choose its visibility based on database condition.