[CLOSED] problem with pagingtoolbar of combobox

  1. #1

    [CLOSED] problem with pagingtoolbar of combobox

    hi,

    I create my class implementer combobox faster with options

    but I encounter the following problem in the display:

    Click image for larger version. 

Name:	size pagingtoolbar.jpg 
Views:	133 
Size:	10.8 KB 
ID:	4802

    How to say pagingtoolbar take the size of the combobox?


    Code

    Class
     public class DDSComboboxSearch : ComboBox
       base.LoadingText = "Searching...";
       Unit myUnit = new Unit(150);
       base.Width = myUnit;
       base.ItemSelector = "tr.list-item";
       base.MinChars = 1;
       base.PageSize = 10;
       base.HideTrigger = true;
       base.ItemCls = "mandatory-label";
       base.EnableKeyEvents = true;
       base.Mode = DataLoadMode.Remote;
       base.ValueField = "Code";
       base.DisplayField = "Code";
    Store
                Store myStore = new Store();
                myStore.ID = base.ID + "store";
                myStore.AutoLoad = false;
                Ext.Net.Parameter myParameterStart = new Ext.Net.Parameter();
                myParameterStart.Name = "start";
                myParameterStart.Value = "0";
                myParameterStart.Mode = ParameterMode.Raw;
                myStore.AutoLoadParams.Add(myParameterStart);
                Ext.Net.Parameter myParameterLimit = new Ext.Net.Parameter();
                myParameterLimit.Name = "limit";
                myParameterLimit.Value = "10";
                myParameterLimit.Mode = ParameterMode.Raw;
                myStore.AutoLoadParams.Add(myParameterLimit);
    Reader

       
       JsonReader myJsonReader = new JsonReader();
       myJsonReader.Root = "Code";
       myJsonReader.TotalProperty = "total";
    
       RecordField myRecordFieldCode = new RecordField();
       myRecordFieldCode.Name = "Code";
       myJsonReader.Fields.Add(myRecordFieldCode);
    
       RecordField myRecordFieldLabel = new RecordField();
       myRecordFieldLabel.Name = "Label";
       myJsonReader.Fields.Add(myRecordFieldLabel);
    Proxy
       proxy = new HttpProxy
                        {
                            Method = HttpMethod.POST,
                            Url = "~/Common/WebServices/CityServices.asmx/jsonForwader"
                        };
    Template
    base.Template.Html = @" <Html>
                        <tpl for=""."">
                            <tpl if=""[xindex] == 1"">
                                <table class=""cbStates-list"">
                                    <tr>
                                        <th>Label</th>
                                        <th>Code</th>
                                    </tr>
                            </tpl>
                                <tr class=""list-item"">
                                    <td>{Label}</td>
                                    <td>{Code}</td>
                                </tr>
                            <tpl if=""[xcount-xindex]==0"">
                                </table>
                            </tpl>
                        </tpl>
                    </Html>";
    this is part of the code, add all store etc are in the code
    Last edited by Daniil; Sep 21, 2012 at 7:31 AM. Reason: [CLOSED]
  2. #2
    Hi @ddslogistics,

    Quote Originally Posted by ddslogistics View Post
    How to say pagingtoolbar take the size of the combobox?
    The default ComboBox width is too little for the PagingToolbar.

    You can increase the ComboBox size setting its Width property or the list width setting the ComboBox ListWidth property.
  3. #3
    hi ,

    it's work !

    Thanks for your help.

    Please, mark as solved.

Similar Threads

  1. problem with pagingtoolbar of combobox
    By ddslogistics in forum 1.x Help
    Replies: 0
    Last Post: Sep 19, 2012, 9:11 AM
  2. Replies: 4
    Last Post: May 29, 2012, 4:36 PM
  3. Ext:PagingToolbar & ComboBox PageSize
    By cwolcott in forum 2.x Help
    Replies: 2
    Last Post: Mar 19, 2012, 9:55 PM
  4. Replies: 2
    Last Post: Oct 21, 2010, 7:29 PM
  5. [CLOSED] PagingToolBar problem
    By LeeTheGreek in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: May 23, 2009, 5:29 AM

Tags for this Thread

Posting Permissions