I am getting some other replaced text for text assigned to webweekview.captionformatstring or
even for webmonthview.captionformatstring= some text
can any one suggest why this is happing?
Or is there any way to give header text to this instead of week or month getting displayed?
infra_study,
What exactly are you seeing? Can you post a screenshot? What do you have the CaptionFormatString properties set to?
~Kim~
Here is the screen shot in which WebDayView is seen whose CaptionHeaderText is set to "XYZ" I want to do same for WedWeekView & WebMonthView so how can I do this?
It looks like you are using the UltraWebTab to display the WebDayView, WebWeekView, and WebMonthView controls in different tabs. It looks like the text you are trying to set is actually the text of the tabs, is that correct? If it is, you can set the text of the tabs to something like "Day - XYZ" using code similar to the following:
this.UltraWebTab1.Tabs[0].Text = this.UltraWebTab1.Tabs[0].Text + " - " + this.WebDayView1.CaptionHeaderText;
or:
this.UltraWebTab1.Tabs.FromKeyTab("Day").Text = this.UltraWebTab1.Tabs.FromKeyTab("Day").Text + " - " + this.WebDayView1.CaptionHeaderText;
Both lines of code do the same thing, they just get a reference to the Tab in a different manner.
Hope this helps,
Hi Kim ,
Thanks for your reply. Actually its not that I want to change the ultraWebTab text I want to give header text to WebDayView ,WebWeekView & WebMonthView.
In case of WebDayView I have set its CaptionHeaderText ="XYZ" as seen in snap. But likewise I am not able to set CaptionHeaderText to WebWeekView & WebMonthView.
So help me its urgent.
Thanks.
infra_study
Thanks
Its displayed but some text gets replaced by soe characters or numbers.
You'll want to set the CaptionFormatString property on both the WebMonthView and WebWeekView controls. Note that there is a limitation in the WebWeekView where, if you set the CaptionFormatString to "XYZ", the resolved caption will be "XYZ - XYZ", as it normally displays a range of dates.