# textgridsss2 control

**URL:** <https://techcommunity.softwareag.com/t/textgridsss2-control/76383>\
**Category:** Forum\
**Tags:** Former-Crossvision-Products, Application-Composer\
**Created:** [March 13, 2008, 10:47pm UTC](https://techcommunity.softwareag.com/t/textgridsss2-control/76383 "2008-03-13T22:47:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fgzarzar](https://avatars.discourse-cdn.com/v4/letter/f/e8c25b/32.png) [@fgzarzar](https://techcommunity.softwareag.com/u/fgzarzar)\
**Post date:** [March 13, 2008, 10:47pm UTC](https://techcommunity.softwareag.com/t/textgridsss2-control/76383/1 "2008-03-13T22:47:11Z")

</div>

With the textgridsss2 control

---

<div class="post-metadata">

**Author:** ![Christine\_Zimmermann](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@Christine\_Zimmermann](https://techcommunity.softwareag.com/u/Christine_Zimmermann)\
**Post date:** [March 18, 2008, 4:21pm UTC](https://techcommunity.softwareag.com/t/textgridsss2-control/76383/2 "2008-03-18T16:21:28Z")

</div>

Hi fgzarzar,

Is it Application Composer or Application Designer you are using?

If it is Application Designer then you will find some example code for even providing custom grid sorting in the chapter “Sorting Aspects with Grids” of the documentation. The textgrid chapter also contains samples how to wrap grid cells.

For Application Composer:  
[1] The sorting is done automatically from Composer. The adapter is only notified, that sorting has been done. But currently detailed sort information is not sent for Composer pages. Only Natural Pages get this sort information.  
[2] What exactly do you want to do?

Both:  
[3] + [4]: What exactly takes long? To give some hints here we need some more information about your grid settings and application event handling.

Best Regards,  
Christine

---

<div class="post-metadata">

**Author:** ![fgzarzar](https://avatars.discourse-cdn.com/v4/letter/f/e8c25b/32.png) [@fgzarzar](https://techcommunity.softwareag.com/u/fgzarzar)\
**Post date:** [March 18, 2008, 10:23pm UTC](https://techcommunity.softwareag.com/t/textgridsss2-control/76383/3 "2008-03-18T22:23:29Z")

</div>

[1] What exactly is the application doing?

Basically, the application calls a Web service (WS) operation (created in CSO), which in turn queries a database and returns a list of records. On the app composer side, there’s a mapping between an app composer generated grid object and the WS reponse. The process works as follow: (1) the user enters data in fields on the UI; these fields are mapped to the WS inputs. (2) hit a button to make the request. (3) in the server-side Adapter method, the associated WS is called. (4) once the service return, the grid object is automatically populated and the records appear on screen.

[2] What takes long?

Users have the option to select multiple records in the grid and simultaneously update their information. However, the response time is slow when a user attempts to select multiple records by holding down the control-key and selecting subsequent records. I would say approximately 3 second or more and increases as the selection progresses

[3] How many grid items are process?

In our development environment we have at most 90 records per grid at the moment, but only 8 or so are selected at a time.

[4] How are the grid settings?

I have two textgridsss2 on the page; either is hidden depending on the user’s role. Basically, one is selectable (selected property is set) while the other is not.

textgridsss2:  
Basic:  
griddataprop: caseListItems  
rowcount: 25  
width: 100%

Selection:  
selectprop: selected  
withselectioncolumn: true  
withselectioncolumnico: true  
fgselect: true

Appearance:  
width: 100%  
hscroll: true  
stylevariant: VAR2  
backgroundstyle: text-align: left; padding-left: 5px  
withblockscrolling: true  
fixedcolumnsizes: true  
disablecolumnresizing: true  
disablecolumnmoving: true  
showempty lines: false

Is it Application Composer or Application Designer you are using?

I’m using App Composer.

For Application Composer:

> > [1] The sorting is done automatically from Composer. The adapter is only notified, that sorting has been done. But currently detailed sort information is not sent for Composer pages. Only Natural Pages get this sort information.

So, are you saying there is no way to get the column (name) that is being sorted on in the Adpater class?

> > [2] What exactly do you want to do?

I meant, is there a way to style individual columns without having to use the textstyleprop property of the column control? For example, I have about 10 columns in the grid and want to have eight of these columns left aligned (using the backgroundstyle property of the textgridsss2 control) and have the last two columns right aligned and bolded; however, I don’t want to use the textstyleprop because it mean I have to traverse the entire grid object list and set this property for each record’s object.

---

<div class="post-metadata">

**Author:** ![Christine\_Zimmermann](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@Christine\_Zimmermann](https://techcommunity.softwareag.com/u/Christine_Zimmermann)\
**Post date:** [March 19, 2008, 8:08pm UTC](https://techcommunity.softwareag.com/t/textgridsss2-control/76383/4 "2008-03-19T20:08:53Z")

</div>

Well, about the sorting information in xcipages I think we do not have direct support for it. I need to check if you can access it thru “undocumented” API calls.

I also need to check why the multiple selection takes so long. 3 seconds is too much.

I will get back to you soon.

Best Regards,  
Christine

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:49pm UTC](https://techcommunity.softwareag.com/t/textgridsss2-control/76383/5 "2021-04-02T14:49:15Z")

</div>


