All Answers

0 votes

Thank you Christian. We know and it’s fixed internally and going through QA. There was a change/enhancement to the accelerator system, that’s why .49 was a dev build.

  • Luca answered Jun 4, 2021 - 12:33 pm
0 votes

Hi Angelo,

have not tried it yet, but did you put the needed code into your default.html (head section)?

Something like this:

[code]
 <link rel="apple-touch-icon" href="http://yourdomain.com/apple-touch-icon.png"/>
[/code]

Best regards
Frank

0 votes

Thank you very much.

Another question: i would like to add a custom autocomplete using an UserPopUp. TagTextBox don’t sent KeyPress (or TextChanged) when you type into input textbox. (key press is handled in TagTextBox but not forwarded).

How can i implement that?

 

0 votes
In reply to: ListView Binding event

Tried this:

 this.listView1.DataSource = data;

 this.listView1.Items[0].SubItems[1].Control = new Button() { 
    Text = "Test",
    Dock = DockStyle.Fill
 };

Works without issues.

  • Luca answered Jun 2, 2021 - 2:29 pm
1 vote

Hi Daniel,

ColorDialog haven’t StartPosition attribute but you can create a Custom ColorDialog and setup form like this:


public class CustomDialogColor: ColorDialog
{
protected override Form CreateUI()
{
var form = base.CreateUI();
form.StartPosition = FormStartPosition.CenterParent;
return form;
}
}

Best,

Kevin (ITG)

  • Kevin answered Jun 2, 2021 - 2:25 pm
0 votes
In reply to: ListView Binding event

You can add subitems directly when the listview is data bound. The exception is correct. Add items to the data source.

if you attach a small runnable test case we may be able to help you further.

  • Luca answered Jun 2, 2021 - 12:51 pm
0 votes
In reply to: ListView Binding event

Hi,

I followed the implementation of VWG and tried to add control to SubItems in ListViewItem, but it throws exception in Wisej. There is something wrong when Add ListViewSubItem to SubItems, please check the Wisej source.

Thanks for your help,

Page

 

 

0 votes

Hi Jonatha,

you can add use the ClientEvents property collection.
Just add an event handle for focusout and use the script you have put into the listener.

See simple sample, seems to work fine.

Best regards
Frank

0 votes

Hi Cristian,

this issue is fixed in dev build 2.2.49.

Best regards
Frank

0 votes

See attached sample.

  • Luca answered Jun 1, 2021 - 5:51 pm
0 votes

Download the latest devextreme extension from Github to use the sample and dxBase.Culture.

  • Luca answered Jun 1, 2021 - 5:51 pm
0 votes

Download the latest devexpress extension from github, it includes the code I mentioned above so you can see how to add more.

  • Luca answered Jun 1, 2021 - 5:50 pm
0 votes

You can’t process synchronous events on the server and the data object has to be populated in javascript.

You can handle the event on the client easily by adding a WidgetEvent. If you want to wire it back to the server use the promise as shown in the devexpress documentation: https://js.devexpress.com/Documentation/ApiReference/UI_Components/dxDataGrid/Configuration/#onRowRemoving

I have attached a sample that shows:

  • Localization (added a static dxBase.Culture since you didn’t want to use the Application.CurrentCulture setting(
  • How to send data back to an initNewRow event (same sync v. async concept as rowDeleting)
  • How to stop deleting a row from the server.

In general, Wisej widgets are all tightly integrated with server functionality. All third party widgets are not designed to interact with the sever and you are supposed to write your code in javascript, or fire off api calls which need an endpoint, a session, etc. With the wisej wrapper most of the work is already there but you still need to wire the api postback if the widget expects a response. Otherwise a normal event works.

Additionally, all third party widgets do not support receiving calls from the server. The wisej wrapper also adds this feature automatically. The other alternative to simply write parts and pieces of your app in javascript, as required by angular and blazor.

 

 

 

  • Luca answered Jun 1, 2021 - 5:48 pm
0 votes

Thank you, Luca.

0 votes

Oh, well… then I don’t know.
I have attached the images from VS.

  • Ivan Borges answered Jun 1, 2021 - 5:08 pm
  • last active Jun 1, 2021 - 5:09 pm
0 votes

There is no confusion with an enumeration. The JSON is simply a dynamic object.

  • Luca answered Jun 1, 2021 - 4:57 pm
0 votes

Use

var state = await this.dxDataGrid1.Instance.stateAsync();

The state() method in devextreme returns a promise (https://js.devexpress.com/Documentation/ApiReference/UI_Components/dxDataGrid/Methods/#state) which is an asynchronous method.

 

  • Luca answered Jun 1, 2021 - 4:53 pm
0 votes

JSON doesn’t support functions. You need to add a function using the WidgetFunctions collection or add them in javascript directly.

The DevExtreme extension has a filterOptions method in each widget js that lets you convert a string into a function, see dxDataGrid.js

/**
 * Process the options map before it is used to
 * create or update the widget.
 */
this.filterOptions = function (options) {

  if (options.columns) {
    for (var i = 0; i < options.columns.length; i++) {
     if (options.columns[i].cellTemplate) 
       options.columns[i].cellTemplate = this.initFunction(options.columns[i].cellTemplate);
    }

 }

   if (options.masterDetail) {
     options.masterDetail.template = this.initFunction(options.masterDetail.template);
   }
};

 

Add more conversion in there for the specific widget. For example:

  • Add a WidgetFunction Name=”test”
  • In Options, set the function using the name: options.masterDetail.template: “test”.

 

  • Luca answered Jun 1, 2021 - 4:51 pm
0 votes
In reply to: ListView Binding event

Hi

You can use the listView1.Controls property to manage that

Using for example

listView1.Controls.Add(new button()) // specific control

listView1.Controls.AddRange(Control[] controls)   // array of controls

Regards

  • Paul answered Jun 1, 2021 - 3:18 pm
0 votes

Hi Adrian

Plase, checkout this sample

https://github.com/iceteagroup/wisej-examples/tree/2.2/Responsive

It help you in complete you goal

Regards and happy coding

  • Paul answered May 31, 2021 - 3:14 pm
Showing 3661 - 3680 of 11k results