thdim

Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • in reply to: make checkbox checked #86811
    thdim
    Participant

    Hello, let me show you some screenshots to describe better what I mean.

    I have the following grid

    This is database / xml driven. At the end of every record I have some checkboxes, witch they define in witch quarter a project belongs.

    So far, so good.

    But when it comes to edit there is the following problem

    As you can see all the checkboxes are always empty. This is because when I define them I don't know how to say (“make this check box been checked by default”). For example when I define an input field I can do this in the javascript file

    {name:'sector',index:'sector',width:50,editable:true,edittype:”select”,editoptions:{value:””}},

    How can I set a checkbox to start by default checked?

    {name:'q1',index:'q1',width:37,align:'center',editable:true,edittype:”checkbox”,

    editoptions:{value:”1:0″}},

    p.s. I am almost sure that I use totally wrong way to succed what I want to do!

    p.s.2 Really sorry, I know that I am starting to becoume really annoing, but I have to finish a project and I really don't have any idea how to do that!

    p.s.3 thanks again and again and again.

    in reply to: make checkbox checked #86754
    thdim
    Participant

    I thing that I don't unterstaind what do you mean 🙁

    In the database I store the value in a bool (0,1). I just want an example of that javascript rule witch will create the box checked and then I can make it act dynamic.

    {name:'q1',index:'q1',width:37,align:'center',editable:true,edittype:”checkbox”,

    editoptions:{value:”Yes:No”}},

    in reply to: make checkbox checked #86666
    thdim
    Participant

    tony said:

    Hello,

    What about your data. How is provided. What values do you have for checkboxes?

    Regards

    Tony


    Hello Tony, thanks for answering

    In the javascript I have:

    {name:'q1',index:'q1',width:37,align:'center',editable:true,

    edittype:”checkbox”,editoptions:{value:”Yes:No”}},

    the reult in HTML is:

    <span class="webdeveloper-display-form-details" title="”>

    and I would like to make it (depentes on the database values offcource)

    <span class="webdeveloper-display-form-details" title="”>

    any ideas? thanks a lot.

    in reply to: ie operation aborted #85931
    thdim
    Participant

    Problem solved, try to put the

Viewing 4 replies - 1 through 4 (of 4 total)

Stay connected with us in your favorite flavor!