avmgeo
Registered:1102539095 Posts: 11
Posted 1362404098
Reply with quote
#1
Hello In a master-details page, I have added a panel to add the details table rows. The result being a new tab panel with only one tab for my detail table. I am now trying to figure out how to change the default text of the tab name. By the default the name of the underlying table displays in the tab. Please see attache print screen for reference. Any help appreciated, Thanks
Attached Images
timt
Iron Speed MVP
Registered:1123345706 Posts: 556
Posted 1362475391
Reply with quote
#2
Hi You would need to locate the tab (FindControlRecursively) and change its title using some code (c# or vb) to match the underlying data. The Master pages don't have code behind for some strange reason so you have to add the code as a script block to the master page in ISD ie Find Tabcontainer Find Required TabPanel in TabContainer Set the title of the Tabpanel HTH
__________________ Tim Titchmarsh Iron Speed Consultant MVP London UK based +44 (0)1621 835002http://www.lightspeeditsolutions.co.uk/dotnetarchitect timt@dotnetarchitect.co.uk timt@lsits.co.uk
mhweiss
MVP Consultant
Registered:1125349770 Posts: 569
Posted 1362482789
Reply with quote
#3
Hello If you click on your tab, can you view the properties panel for the tab? If so, you should have a Custom Properties where you can set the tab's text property to whatever you want. Best Regards, Michael
__________________michael@occasiosystems.com
http://www.occasiosystems.com
avmgeo
Registered:1102539095 Posts: 11
Posted 1362485435
Reply with quote
#4
Many thanks for your replies. When I click on the panel control Code:
<GEN ANEL NAME="Cat_style_langPanelHeader"/> (as I can not see any control for the tab itself), I can only see one property in the sheet named ID. So it seems there is a level missing between the panel and the collapsible region to allow modifying the tabs...
timt
Iron Speed MVP
Registered:1123345706 Posts: 556
Posted 1362486947
Reply with quote
#5
Hi You can modify the title in ISD as a static string, thats easy as the tabs will all be there sitting in their container. In ISD simply change the title from the properties. This assumes that of course you have dropped your control on the page, right clicked the cell and chosen the InsertTabs command. Dynamically is alot tougher. HTH
__________________ Tim Titchmarsh Iron Speed Consultant MVP London UK based +44 (0)1621 835002http://www.lightspeeditsolutions.co.uk/dotnetarchitect timt@dotnetarchitect.co.uk timt@lsits.co.uk
pinbot
MVP Consultant
Registered:1191322079 Posts: 963
Posted 1362487639
Reply with quote
#6
In design mode, in the grid select the "TabPanel" (or "TabPanel1") object. The properties should then show for the Tab. Change the "Title" property. See attached image.
Attached Images
__________________ C. Bryan Patrick II
Iron Speed Designer MVP Consultant
Pseudo Consulting
mackie
Registered:1429887669 Posts: 4
Posted 1430172177
Reply with quote
#7
hi there, where can you change the size and color of this title after you have changed the text? thanks
__________________ Lorna
JimiJ
MVP Developer
Registered:1112254853 Posts: 1,958
Posted 1430390881
Reply with quote
#8
Hi Lorna, You can create a new css class and use it as shown: Jimi J
__________________ Jaime Jegonia
Iron Speed MVP Developer ". . . and whoever sows generously will also reap generously" 2 Cor 9:6
mackie
Registered:1429887669 Posts: 4
Posted 1430407479
Reply with quote
#9
__________________ Lorna
mackie
Registered:1429887669 Posts: 4
Posted 1430407606
Reply with quote
#10
please see above photo if I change the .dht it will only change the text in the gray area where "Edit WWWDR" text is. I need to change the "Customer Information" text in the tabs also I have been able to change the color to gray in all the other areas except for the Customer Information tab. it will not let me leave the property blank like the others. thank you
__________________ Lorna