Ckedtior Events to dynamically change the label text - ckeditor

can i create an event on Ckedtor where as soon as i write some thing in textarea of editor the same should dynamically update on another label below it using jquery.

i found the answer
ck.on('change',function(){
$('#lblemailmsg').text(CKEDITOR.instances['spnemailsignature'].getData());

Related

Using bootstrap calendar inside slickgrid then Calendar is stuck issue

I am using bootstrap calendar inside slickgrid. When calendar popup is opened and use Alt+tab or scope out of slickgrid then calendar gets stuck. I have to reload application to get rid of calendar popup. I want to close calendar pop up as soon as user scopes out of slickgrid. Please suggest way to do it.
Not sure if it's your problem but you can't use just a z-index in SlickGrid that won't work and won't do anything, you need to use position: absolute on your Editor (each editor has a args.position passed to their constructor) that you can use to reposition your editor next to the cell that you clicked, however make sure that you also add a position() method that will be called if it exist and of course you need to add proper code to reposition the DOM element inside that method. Also when you click on a different cell then the previous Editor will call the destroy method, so make sure you remove the Editor properly by adding necessary code in your destroy() method.
All of that position usage can be seen in 1 of the built-in Editor which is the LongText defined in the slick.editors.js on this line
The absolute style is applied here
and the position(cellPosition) method is defined here
If your problem is really that your Editor doesn't get removed from the DOM, then it's because you didn't code the destroy() properly and here is the LongText destroy() method for reference. Also you might want to add an onBlur event that will call your destroy() method after a blur or any other event that you choose.
and here's a print screen of the LongText Editor that is repositioned over the cell you clicked and you can test it yourself in this Example - Editing

hide label in jqgrid Add form

Is there a way to completely hide the label of a text field inside Add form?
I guess it should be inside beforeInitData event.
I want only the text box visible in my form. How to achieve this.
any idea??
Many thanks.

nsis installoptions dropdown onchange event

I want to know how to handle onchange event of dropdown in nsis installoptions .
Actually what I want to do is based on selection made on dropdown some text fileds should be polulated.
Take a look at http://nsis.sourceforge.net/Docs/nsDialogs/Readme.html#step-notify
Alternatively, could you move the dependent text fields onto the next page?

How to appened Data in JQGrid table Cell?

I have created JQGrid.
I have put the Data in cell and one html Link in cells.
OnClick of that link I need to open JQGrid Specific popUp.Popup have one combobox .I'll select one option and click submit button and that data needs to be appear in clicked cell.
Thanks
The construction which you suggest seems me too complex. Probably you can consider to use more simple user interface?
Nevertheless you can just use setCell method to set new contain of the cell of the grid.

How to create a Text area in default layout

Whenever u create a View for new create thread or edit thread what u get is a text box. I need a Text area to be displayed for writing how should i go about it.
#Html.TextArea or #Html.TextAreaFor
Same as the other HTML helpers.
You can also add the following annotation to your model
[DataType(DataType.MultilineText)]
When you call EditorFor you'll get a textarea rather than a textbox.
If you're talking about actually changing the scaffolding template, you need to create your own template.

Resources