CheckboxGroup & DataIndex - how to bind so you can update store correctly?

  1. #1

    CheckboxGroup & DataIndex - how to bind so you can update store correctly?

    This was working with MultiCombo just fine, but if i switch to CheckboxGroup, it fails.

    I'm just trying to bind SqlDataSource -> Store -> FormPanel (very straightforward).

    When selecting multiple items in the MultiCombo, it submits to the database as i would expect ("1,2,3,4") (string).

    However, when i check all the checkboxes in the group, the sql looks like this:

    "[object Object],[object Object],[object Object],[object Object]"

    I am setting the DataIndex property on the CheckBoxGroup - not sure what the correct binding method is with this object. When I set the DataIndex on the individual checkboxes (the same column name for all 4 checkboxes), i get a "too much recursion" error when trying to save....
  2. #2

    Please help this must be simple

    All I want to do is bind a store to a CheckBoxGroup and have all the checked items be returned as one record in the store that's bound to the form that contains the checkbox group.
  3. #3

    Pictures to clarify

    Click image for larger version. 

Name:	multicombo.gif 
Views:	155 
Size:	17.6 KB 
ID:	3237Click image for larger version. 

Name:	multicheck.gif 
Views:	166 
Size:	13.2 KB 
ID:	3238

    I want the functionality of the multicombo in terms of binding to the store, but i want the look and feel of the checkboxgroup.

    I'm not experienced enough with the codebase to get into the CheckboxGroup class and start modifiyng that code....i'm surprised i'm the only one that wants this....i searched all over and i don't see much call for this feature...strange.

Similar Threads

  1. Checkboxgroup DataIndex
    By osef in forum 1.x Help
    Replies: 1
    Last Post: Apr 11, 2012, 12:28 PM
  2. Replies: 0
    Last Post: Aug 03, 2011, 10:27 PM
  3. [CLOSED] How to update dynamic CheckboxGroup
    By stoque in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 28, 2011, 8:26 AM
  4. [CLOSED] CheckBoxGroup DataIndex for each child checkbox
    By webclouder in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: May 11, 2010, 4:22 PM
  5. [CLOSED] CheckboxSelectionModel Selected DataIndex from Store
    By ljcorreia in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Mar 23, 2010, 8:49 AM

Tags for this Thread

Posting Permissions