Questions tagged [w2ui]

w2ui is a jQuery-based user interface & layout library.

The w2ui library is a set of jQuery plugins for front-end development of data driven web applications. It contains all of the most common UI widgets: Layout, Grid, Sidebar, Tabs, Toolbar, Popup, Field Controls and Forms.

166 questions
1
vote
2 answers

python: turn nested dict into JSON-like format

I have a nested dict in the form of: dict = { "BLOCK_NAME": { "SUB_BLOCK_NAME1": { "ENTRY_NUMBER1": { "FIELD_NAME" : "VALUE" "FIELD_NAME2" : "VALUE2" "FIELD_NAME3" : "VALUE3" } } } } I…
susdu
  • 852
  • 9
  • 22
1
vote
0 answers

Using a w2grid in an ngDialog

We're trying to understand why using a w2grid (w2.com) in a popup ngDialog (likeastore.github.io/ngDialog) requires different code than when using one in a normal page. We're using Angular 1.4.8. In the normal page HTML, we reserve a div for the…
1
vote
1 answer

How to add custom validation on w2ui?

I've two fields ReasonDate and RegistrationDate. According to business logic RegistrationDate cannot be earlier than ReasonDate. I'm checking in 'onValidate' event handler of form like this: onValidate: function(event) { var pattern =…
tynar
  • 136
  • 8
1
vote
1 answer

w2ui - Inline edit grid with list. under grid i need to call onselect for each dropdown

I am using w2ui grid in-line edit with list and many other stuff. How can I listen to the onselect event of an element ? $('#grid').w2grid({ name: 'grid', columns: [ { field: 'fieldname',caption: 'caption',sortable:…
Ridvan Shaikh
  • 152
  • 1
  • 10
1
vote
0 answers

How to remove file with w2ui plugin

I am using w2ui(http://w2ui.com/) plugin. I am using the upload model. fields: [ { name: 'taskName', type: 'text', required: true}, { name: 'taskDomain', type: 'text', required: true}, { name: 'mailList', type: 'file',…
1
vote
3 answers

Best way to style w2ui grid

I have been using w2ui grid for displaying information in a table. It has worked great, but I did not particularly like how the table looks. So I was looking to style it. Is there a way to style the table without directly editing the css for…
abden003
  • 1,325
  • 7
  • 24
  • 48
1
vote
1 answer

w2ui: ERROR: Cannot add records without recid. (obj: grid)

I am getting the following error when using w2ui: ERROR: Cannot add records without recid. (obj: grid) I am using the primary key of the model as the recid, and it works fine with my other tables. But for one of them it is giving this error. …
abden003
  • 1,325
  • 7
  • 24
  • 48
1
vote
2 answers

w2uiGrid: Disable delete button on row select

This is related to my question: https://github.com/vitmalina/w2ui/issues/882#event-295994680 Thanks for the response. I have added the code as you recommended, but still does not work. I figured out that the id of the delete button is w2ui-delete…
Maher
  • 481
  • 1
  • 6
  • 12
1
vote
1 answer

Working with dates in W2UI and MySQL

I am using MySQL which stores dates in the format 'yyyy-mm-dd'. I have a layout where one section shows a grid. The records in this grid display the date the record was first created. I need the date to be in the format of 'mm/dd/yyyy'. This…
DLee
  • 73
  • 1
  • 6
1
vote
0 answers

Javascript w2ui objects - can't get type

I got list of w2ui object on my page. Structure look like that And part of what inside I want to get only those, which one is type of 'w2layout'. I use JQuery each to go through like that jQuery.each(w2ui, function(key, value) { …
DanilGholtsman
  • 2,354
  • 4
  • 38
  • 69
1
vote
0 answers

Rendering Partial View to w2ui Layout panel

I have some issues with displaying content of partial view to w2ui layout's panel. I'm trying to do it with such way @: $().w2layout({@: name: 'layout@(string.Format("{0}{1}", panelNamesList.IndexOf(item),…
zuzman322
  • 124
  • 8
1
vote
1 answer

W2UI grid: Checked Checkboxes not saving;

I introduced two buttons on the toolbar one 'CheckAll' and the other 'UncheckAll', they are to have effect on a particular column say 'Status' (with checkboxes) in the grid. I wrote two Javascript functions to do this. function…
sunny_side_of_life
  • 149
  • 1
  • 3
  • 15
1
vote
0 answers

Trouble using w2ui in Dart

I am trying to convert some Javascript code to Dart and I'm getting stuck. This is the original code: