Customizing view modal popup in jqgrid - jqgrid

How I can increase the width of the view record dialog in jqgrid. I see there are currently options for edit or add case. Currently I'm doing through css, is there any nice way?
Vijaya Anand

The View form has some properties which can be used to change many dialog settings, like width for example. Default vlue of the width is 300.

Related

MAUI Show/Hide controls based on mode New/Edit/View

I need an idea, please. I have a Details form which shows the fields of a model (about 10 fields in all). There are three modes in which I could show this view - in mode "Edit", in mode "New" (which, of course, is like an edit but without values), and in mode "View" (no changes allowed, just labels).
I could of course create three Details pages, one for each mode, and call them selectively, but I would like to have just one and pass the "DocumentMode" parameter to it. That View should bind to that mode and selectively show/hide controls, probably like "DocumentMode = VIEW => Show labels" or "DocumentMode = EDIT => Show Entry or Editor, show DatePicker, TimePicker, etc".
My question is this: How do I show/hide these groups of controls depending on the DocumentMode parameter ? Which would be the best way to do this ? I could probably bind the "IsVisible" property to my documentMode parameter, but I think that is a really ugly solution (and I assume that regardless of whether the controls are used or not in a specific mode, they will all be loaded anyway).
Thank you.
Alex
I think you can use a Listview or Collectionview to represent your data because you mentioned that you have 10 fields.
In addition, you said you need a "new" button, so you can set it at the top of the app as a button, when you click the button then you jump to another page which is blank and you can add the data.
This must refer to the shell you may need to set a navigation.
Then the "view" and the "edit" you can use the property SelectionChanged to control the item, I mean when you click the item in collectionview, the SelectionChanged method can be triggered and turn to another page which can show the detail about the item you clicked. In the page you can view and edit the data.
Here are some articles you might be able to use: Listview, Collectionview, Shell
If you have more information to add, please kindly share with me.

zen cart + ckeditor set defaults for toolbar item

I have ckeditor installed and am using this as the default editor in zen cart when adding products. For just about every product I have an iframe which displays the products external page. Every time I add an iframe I have to set the width, height, alignment, scroll bars and border.
My question is: is there a way that I can configure ckeditor so that I can set defaults for these values?
If you add the iframe through a dialog box from ckeditor, they provide a great article on setting default values here: http://docs.cksource.com/CKEditor_3.x/Howto/Default_Field_Values

Kendo UI grid - different templates for Edit and Create

We are using Kendo UI grid to display some records. The requirements need us to have a column (Say "File Name")shown as a text box when the user clicks on "Edit".
However, when user clicks on the "Create" button in the toolbar, the same column should be replaced with a File Select control which will allow the user to select a file from his machine. The other columns remain the same.
I have already tried searching through Stack Overflow as well as the Kendo UI Grid forums, but to no avail.
Is there any way to achieve this? Any pointers will be of great help.
Regards,
Nikhil
Using different editor templates for create/edit is not supported. You need to use the edit event of the Grid to change that text input to file input with JavaScript. To distinguish between edit and create you can use the isNew() method of the model.
i.e.
edit:function(e){
if(e.model.isNew()){
//replacement logic
}
}
Similar question is covered here.

how to change the content of panel when some value selected in dropdown list

I am using 2 panels in my asp.net 3.5 aspx page, i need to change the content of panel when i dynamically select some value from dropdownlist which is in other panel . Can anybody suggest me how to dynamically change the content of a panel.
Thanks in advance..
Make sure you set AutoPostBack=true and OnSelectedItemChanged event on the dropdown. I assume it has runat="server". Then you just write the code that handles OnSelectedItemChanged, that will update the panels

How to make a check-box in a dynamic MFC dialog?

I have to create a dynamic dialog and used therefor the procedure described in the article Creating a Template in Memory. I already created buttons and edits but I don't know how I can make check-box. Do you know how?
In the DLGITEMTEMPLATE article there are only following types defined:
0x0080 Button
0x0081 Edit
0x0082 Static
0x0083 List box
0x0084 Scroll bar
0x0085 Combo box
Thanks!
A checkbox is a Button with the BS_CHECKBOX or BS_AUTOCHECKBOX style
for more information, see http://msdn.microsoft.com/en-us/library/bb775951(VS.85).aspx
A checkbox is a button with the BS_CHECKBOX style.

Resources