Custom DataSource field

I am trying to have a Data grid with custom editors in it. And the DataSource that I am trying to use should support a custom data type. Please give an email so that I attach an image of the requirement. Currently I see only the Field types in com.smartgwt.client.data.fields package.
How can I create a Custom fieldType?

Thanks
C

Just create a subclass of any of the FormItem classes, and use DataSourceField.editorType to cause your class to be used.

I am sorry I didn’t understand quite well. Could you please provide a brief example with different components eg:

One of My table cell would have a form with 4 to 5 fields eg: model for email delivery.

<contactPoint>
<contactType>email</contactType> ---- a text Field in the form
<deliveryFormat>HTML</deliveryFormat> – a radio button between HTML/Plain
<alwaysDeliver>false</alwaysDeliver> ---- true/false Checkbox
<deliveryWindow> </deliveryWindow> ---- two combobox with start/end time
<hold>true</hold> ----- true/false Checkbox
<contactPoint>

Hoiw do I create a cell editor and formatter?

Can you explain your requirements in more detail - are you really trying to create a form with 5 editors in the middle of a single grid cell, and why take this approach rather than create a pop-up dialog or similar?

Yes. Thats how the mockups are planned and client has agreed on it. Creating popup would be a change in the SLA. And I guess, even if you have a popup the table model should have the formatted string out of those 5 edit fields. So why not create the edit panel inside the table cell when the user goes into Edit mode.

So, how can I have a FormItem for my table cell which has 4-5 fields within it?

How can I embed an image in here fyi?

A UI like that would cause the row to expand in a disorienting way as you navigate between rows, would have many, many issues with what should happen on resizes, how tabbing should be handled, how validation errors are tracked relative to the containing row, and other problems. We recommend a pop-up instead.

If this is somehow a hard requirement you should start with a CanvasItem that contains a DynamicForm, but we wouldn’t recommend attempting it, it will be a lot of trouble for a worse UI.

http://uploading.com/files/SHKZI1ZQ/sample.PNG.html
This is the sample reqmt i have. Please provide some helpful examples of using CanvasItem.

Thanks for you suggestion though.

Sorry, the free tips offered on this forum don’t include expending extra effort for a worse final result. You can get commercial consulting help from Isomorphic if you are really tied to this particular approach. Otherwise, use the simpler and better approach of a pop-up, previously suggested.