[CLOSED] "Blank" gridpanel column until edited...then blank again!

  1. #1

    [CLOSED] "Blank" gridpanel column until edited...then blank again!


    I am trying to create a simple column in a grid that contains the key of a column, but displays the value.

    Unfortunately right now I am getting a blank column (it does not display the values), except when it's clicked on to edit. After editing, the column becomes blank again. The value is saved, however.

    I am going off the example at the EXT.NET website:


    I've done everything I can to make this work, but still...blank columns until edited.

    Here's the code, does anything jump out as wrong:

    (I left out the ObjectDatasources)

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <script type="text/javascript">
            var licenseRenderer = function (value) {
                var r = storLicenseTypes.getById(value);
                if (Ext.isEmpty(r)) {
                    return "";
                return r.data.Name;
        <form id="form1" runat="server">
            <ext:ResourceManager ID="ResourceManager1" runat="server" />
            <ext:Store ID="storLicenseTypes" runat="server" DataSourceID="objDSLicenseTypes" >
                    <ext:JsonReader IDProperty="CodeID">
                            <ext:RecordField Name="LicenseTypeID" Mapping="CodeID" Type="Int" />
                            <ext:RecordField Name="LicenseType" Mapping="CodeData" Type="String" />
            <ext:Store ID="storInventoryItems" runat="server" DataSourceID="objDSInventoryItems">
                    <ext:JsonReader IDProperty="InventoryItemID">
                            <ext:RecordField Name="InventoryItemID" Type="Int" />
                            <ext:RecordField Name="LicenseTypeID" Type="Int" />
                            <ext:RecordField Name="LicenseType" Type="String" />
                Title="Inventory Items"
                StoreID="storInventoryItems" >
            <ColumnModel runat="server" ID="ctl08">
                    <ext:Column ColumnID="colInventoryItemID" DataIndex="InventoryItemID" />
                    <ext:Column ColumnID="colLicenseTypeID" DataIndex="LicenseTypeID" Editable="false" />
                    <ext:Column ColumnID="colLicenseType" Header="License Type"  DataIndex="LicenseTypeID">
                        <Renderer Fn="licenseRenderer" />
                            <ext:ComboBox runat="server" ID="cmbLicenseTypeID"
    <Template Visible="False" ID="ctl84" EnableViewState="False"></Template>
                <ext:RowSelectionModel ID="RowSelectionModel1" runat="server" />
  2. #2
    Hi dmoore,

    Your configuration appears to be configured properly.

    I have one guess that one or both are "data bound" incorrectly.

    So, could you provide a full sample code to reproduce without dependencies from database?
  3. #3

    Your storeLicenseTypes doesn't have 'Name' field but you use Name in the renderer
    return r.data.Name;
    I guess that you have to use
    return r.data.LicenseType;
    Vladimir Shcheglov
    Sr. Developer
  4. #4
    I came back to this thread to reply that I had discovered this same bug, only to see you had beat me to it!

    Thanks guys.

Similar Threads

  1. [CLOSED] How does "MaskCls" work for "AutoLoad" mask in panel control
    By leon_tang in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Jul 19, 2012, 1:09 PM
  2. Replies: 1
    Last Post: Jun 26, 2012, 12:29 PM
  3. Replies: 5
    Last Post: May 02, 2012, 6:37 PM
  4. Replies: 4
    Last Post: Oct 11, 2011, 3:42 AM
  5. Replies: 2
    Last Post: Jun 26, 2011, 2:59 AM

Posting Permissions