i declared the columnconfig of a EditorGridPanel as showed below
when i tried to display nubmer without fraction value its not
displaying fraction value
eg:  i need the value to be displayed as 12.00 but its displaying as
12
after i place the focus its diaplaying as i desired but i want it to
be displayed in default..

can any one give me the solution plz....

        private final RecordDef recordDef = new RecordDef(new FieldDef[]{

                  new StringFieldDef("code"),

                  new StringFieldDef("lbl"),

                  new FloatFieldDef("zairoyuKanrihiHiritu"),

                  new FloatFieldDef("ippanKanriHanbaihiHiritu"),

                  new FloatFieldDef("riekiritu"),

                  new FloatFieldDef("kakouJikanKanriHiritu"),

                  new FloatFieldDef("kakouHirituKanriHiritu"),

                  new StringFieldDef("bikou")

                });

                Store store = new Store(recordDef);


                /**
                 *
                 */
                private ColumnModel columnModel = new ColumnModel(new 
ColumnConfig[]
{

                new ColumnConfig() {
                          {
                            setHeader("Code"); // The title of the header.
                            setDataIndex("code"); // The RecordDef data type.
                            setSortable(false);
                            setWidth(100);
                            setHidden(true);
                          }
                        },
                new ColumnConfig() {
                          {
                            setHeader(""); // The title of the header.
                            setDataIndex("lbl"); // The RecordDef data type.
                            setCss("{background-color: #EDEDED}");
                            setSortable(false);
                            setWidth(100);
                          }
                        },
                new ColumnConfig() {
                  {
                    setHeader(appConstants.zairoyuKanrihiHiritu()); // The 
title of
the header.
                    setDataIndex("zairoyuKanrihiHiritu"); // The RecordDef data
type.
                    setAlign(TextAlign.RIGHT);
                        NumberField NF = new NumberField();
                        NF.setSelectOnFocus(true);
                    setEditor(new GridEditor(NF));
                    setSortable(false);
                    setWidth(125);
                  }
                },
                new ColumnConfig() {
                  {
                    setHeader(appConstants.ippanKanriHanbaihiHiritu());
                    setDataIndex("ippanKanriHanbaihiHiritu");
                    setAlign(TextAlign.RIGHT);
                        NumberField NF = new NumberField();
                        NF.setAllowDecimals(true);
                    setEditor(new GridEditor(NF));
                    setSortable(false);
                    setWidth(130);
                  }
                },
                new ColumnConfig() {
                  {
                    setHeader(appConstants.riekiritu()); // The title of the 
header.
                    setDataIndex("riekiritu"); // The RecordDef data type.
                    setAlign(TextAlign.RIGHT);
                        NumberField NF = new NumberField();
                        NF.setSelectOnFocus(true);
                    setEditor(new GridEditor(NF));
                    setSortable(false);
                    setWidth(100);
                  }
                },
                new ColumnConfig() {
                  {
                    setHeader(appConstants.kakouJikanKanriHiritu()); // The 
title of
the header.
                    setDataIndex("kakouJikanKanriHiritu"); // The RecordDef data
type.
                    setAlign(TextAlign.RIGHT);
                        NumberField NF = new NumberField();
                        NF.setSelectOnFocus(true);
                    setEditor(new GridEditor(NF));
                    setSortable(false);
                    setWidth(125);
                  }
                },
                new ColumnConfig() {
                  {
                    setHeader(appConstants.kakouHirituKanriHiritu()); // The 
title
of the header.
                    setDataIndex("kakouHirituKanriHiritu"); // The RecordDef 
data
type.
                    setAlign(TextAlign.RIGHT);
                        NumberField NF = new NumberField();
                        NF.setSelectOnFocus(true);
                    setEditor(new GridEditor(NF));
                    setSortable(false);
                    setWidth(125);
                  }
                },
                new ColumnConfig() {
                          {
                            setHeader(appConstants.bikou()); // The title of 
the header.
                            setDataIndex("bikou"); // The RecordDef data type.
                                TextField NF = new TextField();
                            setEditor(new GridEditor(NF));
                            setSortable(false);
                            setWidth(100);
                          }
                        },

                });

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to