I have a gridview inside a tabcontainer.I'm programitically binding to the gridview. All works fine, data is displayed. And after databinding I'm dynamically setting the tabcontainer height to that of the gridview so that the gridview doesn't overlap the tabcontainer and look all funky.This all works fine doing this...tabcontainer1.height = gridview1.heightUntil there is no data returned, in which case I get a really small tab container.Bascially if there is no data, I want the tabcontainer1.height = 500, and if there is data to set it to the height of the gridview.I tried this (plus other variations) but can't seem to get it to work.
I have a Imagebutton in gridview that displays an image when i click.I am using jaxToolkit:ModalPopupExtender control for display the image.The problem I have is that I only want it to display an image based on another fields like width and Height.After clicking the Image button the image should display exact width and height as in ImageWidth and ImageHeight fields in table.My table structure is Imageid bigint, ImageWidth bigint,ImageHeight bigint,Image varchar(128)
I have a treeview inside a TabPanel but I have problems with the panel's height. It´s not resizing automatically when I expand the nodes in the treeview.
When I try to set the .ajax__tab_body height to a percentage, it doesn't work. It shrinks it down to the size set by TabContainer inline height value. But when I do width as a percentage, it works perfectly. tab_body css is below:
i have an update panel, which contains a repeater inside. The repeater's data source will change on postback. The repeater will generate a div for each item.
I need to set the height of the div that is generated by the update panel to the actual total height of the div inside the repeater.
I am trying to add images and create a slide show in a fixed size div, when I add thumbnail image I would like to have for example 5 thumbnail side by side nad then move to the next row, I am using Ajax ReorderList to add images,how can I achieve this?
Apparently, the TabContainer's default tab alignment is vertical now in ASP.NET Ajax Library Beta (0911) (build of AjaxToolkit.dll 31106) instead of horizontal (build 30903).
So how do I change tab-alignment from vertical to horizontal?
I want to set up menu item links such that the tab index is sent in the query string parameter. I tried setting the ActiveTabIndex in the Page_Load event and that doesn't change it at all. I tried using the javascript and I think because this tabcontainer is contained in a UpdatePanel's ContentTemplate so that javascript is not able to find it? How can I do this?
<script type="text/javascript"> // function SetInitalTabChanged() { // var leaderTabs = $get('<%=TabLeadershipMain.ClientID%>'); // leaderTabs = leaderTabs.control; // // leaderTabs.set_activeTabIndex(0); // } function SetInitalTabChanged() { // $('<%=TabLeadershipMain.ClientID%>').set_activeTabIndex(0); var container = $find('TabLeadershipMain'); container.set_activeTabIndex(0); }
With javascript above (both) I would get the error below
Microsot runtime jscript error:Object doesn't support this property or method
Or if use the commented out function it will return leaderTabs = null
I have a ModalPopupExtender with a Drop shadow. I am changing its height with Javascript (i.e. no callback to server). The drop shadow does not change height. Any work arounds? The code is something along these lines:
I am having a asp.net page where I am using Ajax Tab control. When i am running the page, the text of all tab is not able to view. I want to change the height of Header text.
I set the page height(div) 600 px. i have a grid in the page if gridview records Increases page height also dynamically change. if there is no records in gridview page height should be the 600 px default.