The EntitySpaces Community

Share and learn about the EntitySpaces Architecture.
Welcome to The EntitySpaces Community Sign in | Join | Help
in
Home Forums Photos

"Select" column is not visible after search.

Last post 02-21-2007, 6:43 AM by David.Parsons. 2 replies.
Sort Posts: Previous Next
  •  02-13-2007, 12:38 PM 256

    "Select" column is not visible after search.

    I've generated user controls using "DotNetNuke ASCX Administrative Grids Template Suite" 1.5.0 .

    I've noticed that if I filter records using Search windows, result list doesn't have first column with Select link visible.
    Does anyone else has the same problem?
    Any suggestion why it is happening?


    Michael Freidgeim
    Blog: http://geekswithblogs.net/mnf/
  •  02-20-2007, 6:19 PM 439 in reply to 256

    Re: "Select" column is not visible after search.

    I found the bug in generated code that hides the first column with Select link visible.
    The current code in LoadGrid function hides the first column if no results were returned. The setting is stored in ViewState and is not reset to visible if the new search retturns rows back.
    The code should be fixed by adding extra lin below
            if (!coll.Query.Load())
            {
                // Force it to show headers but disable "Select"
                coll.AddNew();
                this.gvBrowse.Columns[0].Visible = false;
                this.lblRecords.Text = "0 Records Found";
            }
            else
            {
                this.gvBrowse.Columns[0].Visible = true;//please fix in template
    // code omitted

    }
    Michael Freidgeim
    Blog: http://geekswithblogs.net/mnf/
  •  02-21-2007, 6:43 AM 444 in reply to 439

    Re: "Select" column is not visible after search.

    I can confrim that is an issue with both the ASPX and DNN ASCX templates. I added that to our tracking database for the next release of the Admin templates.
    David Neal Parsons
    www.entityspaces.net
View as RSS news feed in XML