Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Row label in-line style: Alignment not working in search part of grids

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Row label in-line style: Alignment not working in search part of grids

    To anyone who can help.

    I have several grids with search parts.
    I want to have the row labels in the search part align to the right (if it matters, they are positioned to the left of the search criteria)
    I am using the Style Editor, which comes up when you click the ... button at the right end of the "Row label in-line style" row of each search field's properties window
    I can't get the labels to align to the right like I want.
    Other attributes besides alignment (Bold, Italics, underline and etc...) do change in response to selections made in the Style Editor.
    Alignment of the search row labels, for some reason, always stays on the left regardless of the selection made for alignment in the Style Editor.

    Thanks for any help that can be offered.

    Kevin

    Image of Grid Builder Image of Grid Builder with Style Editor Open.gif
    Image of Working Preview Image of Working Preview for Search Row Labels issue.gif

    #2
    Re: Row label in-line style: Alignment not working in search part of grids

    Not sure what effect this may have on the balance of your Grid... but...

    The problem is that the label is wrapped in a Table Cell tag... <td>. It's this <td> tag which must be right-justified... but I can't see any way to get at this tag in the grid properties.

    This tag, however, does have an Class... so we can get at it. The Class, for my grid, because I'm using the iOS7 style is iOS7GridRowHeader. So, your class may be different. It will be the style name + GridRowHeader

    In the Grid Properties, Local CSS Definitions, put this...

    Code:
    .iOS7GridRowHeader {
    	text-align:right;
    }
    Changing iOS7 for whatever style you're using. This will result in...

    Grid_Search_Right_Justify.PNG

    Comment


      #3
      Re: Row label in-line style: Alignment not working in search part of grids

      David,
      Putting the suggested code in the Local CSS definitions property worked like a charm.

      Thank you very much

      I do see a potential problem though if one had a lot of grids to update like this and one changed styles there would be alot of work to do.

      Thanks again

      Kevin

      Comment


        #4
        Re: Row label in-line style: Alignment not working in search part of grids

        You can do this another way... but it's probably just as much work, if not more... and it's not quite a pretty regarding rendering... but it does work.

        In the Grid Client-side event, onSearchRender you can do this... per control...

        Code:
        $('{Grid.ComponentName}.SL.INVOICECUSTID').style.textAlign = "right";

        Comment


          #5
          Re: Row label in-line style: Alignment not working in search part of grids

          you probably are set in this problem, but i would like to point out that when the size of the screen changes the css will change the position and alignment will probably go out of order again.
          but alpha provides another method to accomplish what you like to do, especially when your search part literally includes all the possible variations.
          selwyn did an article where dialog is used to as search part where precise placement of the search variables can be placed along with videos to show how that is accomplished.
          if interested in that, please see this link and the videos at the bottom
          http://wiki.alphasoftware.com/~alpha...+Component+V11
          thanks for reading

          gandhi

          version 11 3381 - 4096
          mysql backend
          http://www.alphawebprogramming.blogspot.com
          [email protected]
          Skype:[email protected]
          1 914 924 5171

          Comment


            #6
            Re: Row label in-line style: Alignment not working in search part of grids

            I'm not sure I understand why a text-align:right wouldn't work after a screen is resized. I've just tried it and it seems ok. You should try it... it's easy enough. Since the first method is adding to the GridRowHeader class then you're saying that a screen resize will then ignore that class? Or, as in the 2nd method, that a screen resize will somehow undo a direct style setting of an html element? I can't see how. But if that's what you're seeing I'd love to know and to have a further look.

            Using the UX component as a search facility for an embedded grid is another excellent tool and well worth focus here... but I don't understand your css theory.

            Comment


              #7
              Re: Row label in-line style: Alignment not working in search part of grids

              david discard my last post, i have misunderstood the conversation. kevin wants to have the LABEL for the row in the search part to align to the right. not the content the variables on the right side.. i am concentrating on the content never realized he wanted the ROW LABELS to align to the right.
              simplest way to do is where it says the name for the label the instead of just the name of the field you say
              <div style="text-align:right;">Name of the label</div>
              for example as his example where the label is "Project Year:" you write down
              <div style="text-align:right;">Project Year:</div>
              that should do it. no need to change any class anywhere.

              http://screencast.com/t/mtAF9T7XPa
              edit: added the screencast.
              Last edited by GGandhi; 12-09-2015, 09:26 AM.
              thanks for reading

              gandhi

              version 11 3381 - 4096
              mysql backend
              http://www.alphawebprogramming.blogspot.com
              [email protected]
              Skype:[email protected]
              1 914 924 5171

              Comment


                #8
                Re: Row label in-line style: Alignment not working in search part of grids

                I had tried that with a <span> tag and found it didn't work. I always forget that some style settings don't work with <span>.

                Agreed... this is another nice solution.

                Code:
                <div style="text-align:right;">Project Year:</div>

                Comment


                  #9
                  Re: Row label in-line style: Alignment not working in search part of grids

                  I had tried that with a <span> tag and found it didn't work.
                  <span style="float:right;">Project ID</span>

                  ??
                  Last edited by GGandhi; 12-09-2015, 06:51 PM.
                  thanks for reading

                  gandhi

                  version 11 3381 - 4096
                  mysql backend
                  http://www.alphawebprogramming.blogspot.com
                  [email protected]
                  Skype:[email protected]
                  1 914 924 5171

                  Comment


                    #10
                    Re: Row label in-line style: Alignment not working in search part of grids

                    I'm not sure what ?? means...

                    float:right; works for both a <span> or <div> tag
                    text-align:right; works only for a <div> tag

                    I've never really known why... just that there is a difference. So I finally looked it up...

                    A block-level element always starts on a new line and takes up the full width available (stretches out to the left and right as far as it can).

                    The <div> element is a block-level element.
                    An inline element does not start on a new line and only takes up as much width as necessary.

                    The <span> element is an inline element.

                    Comment


                      #11
                      Re: Row label in-line style: Alignment not working in search part of grids

                      ?? means it works.
                      interpret anyway you like.
                      div starts and ends with a line feed making that a division (segment)in the dom.
                      so is span, a division, however span is smaller & finer than div, spans unto a single letter without any line feed making that a non blocking division. however float property is applied to that area of span or div, in this case the the name of the label, is already in a div so another div and a span works. but a freeform span may not work with float without a block - display block may be applied to do so. i have not had a reason to test this or time to do it.
                      in any case the question is answered and the original poster has few options available for him to pursue.
                      thanks for reading

                      gandhi

                      version 11 3381 - 4096
                      mysql backend
                      http://www.alphawebprogramming.blogspot.com
                      [email protected]
                      Skype:[email protected]
                      1 914 924 5171

                      Comment

                      Working...
                      X