Iron Speed Technical Forums
Register Latest Topics
 
 
 


Reply
  Author   Comment  
hodderp

Registered:
Posts: 31
Reply with quote  #1 
After migrating to version 11 the expand/collapse toggle button (the +) doesn't work on the first line after a search. Browser is IE9 and the master page is set at
<meta http-equiv="X-UA-Compatible" content="IE=7,8,9"/>

If you remove the ,9 then it works fine, only problem then is that the quick selectors don't pop up.

It doesn't do this after using a drop down filter only after a search.
Anyone have any ideas or might this be a bug ?

Regards

Paul H
JimiJ

Avatar / Picture

MVP Developer
Registered:
Posts: 1,948
Reply with quote  #2 
What's the ISD version of original app?
__________________

  Jaime Jegonia
[jts_logo]

Iron Speed MVP Developer
 

". . . and whoever sows generously will also reap generously" 2 Cor 9:6

hodderp

Registered:
Posts: 31
Reply with quote  #3 
It was all working OK in version 10. The issue is with any screen that uses the expand collapse button after a search.
I would add that if you click somewhere else after the search and then the expand button then that works. It is only when you click the expand button on the first row straight after the search.

Regards

Paul h
miles

Avatar / Picture

MVP Consultant
Registered:
Posts: 1,656
Reply with quote  #4 
So it is an IE9 issue.  Upgrade, and do it quickly.
__________________
Miles Gibson, MScIS
Iron Speed MVP
Senior Consultant, Principal
Milestone Software Inc.

http://www.ironspeedmvp.com\localizer 
Email: miles@milestone.ca
Milestone Localizer: Full Localization for your Iron Speed applications!
hodderp

Registered:
Posts: 31
Reply with quote  #5 
Don't believe it is an upgrade issue as the issue is consistent on all screens that have this type of scenario and I don't think it is IE9 as I can make the issue go away by commenting out the compatibility section in the master page.

Just to repeat the sequence to create the issue
1) Use any show screen that has a expand / collapse button
2) Do a search using a search box and then click on the expand / collapse button to see the related record. This will work.
3) Do another search and then try clicking on the first records expand collapse button and it won't work. This is only for the first record, if there are multiple records it will work for all the records except the first record. If you click anywhere else on the screen (say on a field) and then back to the expand button then it will expand.

After looking at it again more closely, the issue seems to be a focus one, When doing the search the issue I have been using the enter button to fire the search and I have noticed that the cursor stays in the search box even if you try and click the expand / collapse button.
If you do the search by actually clicking the "Go" button then all is well. So it would seem that the focus stays on the search box even if you are clicking the expand button of the first row, but click anywhere else on the screen releases the focus from the search box and then all is well.
spda

Registered:
Posts: 71
Reply with quote  #6 
Hmm, I am experiencing something very similar.

In my case, I am trying to do auto submit. I have set AutoPostBack to true and registered an event handler like so:

Code:

protected override void Control_Load(object sender, EventArgs e)
    {
        base.Control_Load(sender, e);
        this.SearchText.TextChanged += new EventHandler(SearchText_TextChanged);
    }

    protected void SearchText_TextChanged(object sender, EventArgs args)
    {
        // copied from button Click method
        try
        {
            this.DataChanged = true;
        }
        catch (Exception ex)
        {
            this.Page.ErrorOnPage = true;
            // Report the error message to the end user
            BaseClasses.Utils.MiscUtils.RegisterJScriptAlert(this, "BUTTON_CLICK_MESSAGE", ex.Message);
        }
        finally
        {
        }
    }


Now the problem: the expand/collapse button no longer works and not just the first button as in the case of the OP but all the expand/collapse buttons stop working.
However if I do a search, then the expand/collapse buttons start working.

This is strange because exactly the same works in my SharePoint Application but in the Web Application, it's not working. I am scratching my head for 2 days now.

The problem seems to come from the this.DataChanged = true; because if I comment that out, the expand/collapse buttons work. But again, it works just fine in the SharePoint application.

The OP suggested it having to do with the focus. But commenting out this.SetFocusOnLoad(); doesn't solve the problem.
JimiJ

Avatar / Picture

MVP Developer
Registered:
Posts: 1,948
Reply with quote  #7 
Since we already moved all our ISD 11 Generated applications to ISD 12.20, I tried to duplicate your issue using current version but to no avail.

With regards to setting focus on load, you can be more specific to a particular control like on "CancelButton" as shown:

 public void SetPageFocus()
    {
      ThemeButton controlToFocus = (ThemeButton)(this.FindControlRecursively("CancelButton"));
      this.SetFocusOnLoad(controlToFocus);
    }


HTH,
Jimi J

__________________

  Jaime Jegonia
[jts_logo]

Iron Speed MVP Developer
 

". . . and whoever sows generously will also reap generously" 2 Cor 9:6

Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Download Iron Speed Designer

Terms of Service Privacy Statement