We have Asp.net Ajax 2009 Q1 SP1 on our server and developer machine.
The width property is set to 100% and the page can be dynamically resized by the user. Initial window size is 100% width and height. The PanelBar width is more than 200px. On the child item, towards the right side of the panel bar (before the end of it) white area appears without styling. When the widow is resized so the PanelBar width reduces, this white area shrinks as well and at some point disappears. On expand of the window the white space reappears (dynamically). I have found a thread with (probably) similar issue but I am keep getting “Server Error” (http://www.telerik.com/community/forums/aspnet-ajax/panelbar/radpane-width-problem.aspx).
Is there a way to disable white spacing appearance?
Thanks Dejan
| <asp:ScriptManager ID="popupScriptmanager" runat="server"></asp:ScriptManager> |
| <telerik:RadPanelBar |
| runat="server" |
| ID="ViewGroupsPanelBar" |
| Width="100%" |
| AppendDataBoundItems="True"> |
| </telerik:RadPanelBar> |
| protected void Page_Load(object sender, EventArgs e) |
| { |
| int xCount = 1; |
| while (xCount < 10) |
| { |
| RadPanelItem rpi = new RadPanelItem(); |
| ViewGroupsPanelBar.Items.Add(rpi); |
| rpi.Text = "Bar " + xCount.ToString(); |
| rpi.PostBack = false; |
| if (xCount == 1) |
| rpi.Expanded = true; |
| int iCount = 1; |
| while (iCount < 5) |
| { |
| RadPanelItem rpiChild = new RadPanelItem(); |
| rpiChild.Text = "Item " + xCount.ToString() + "; " + iCount.ToString(); |
| rpiChild.Value = "Item " + xCount.ToString() + "; " + iCount.ToString(); |
| rpiChild.Width = Unit.Percentage(100); |
| rpi.Items.Add(rpiChild); |
| iCount++; |
| } |
| xCount++; |
| } |
| } |
We have Asp.net ajax 2009 Q1 SP1 on our server and developer machine.
On client click of the button that has NavigateURL property set to (e.g.) rtb.NavigateUrl = "javascript:alert('Hello World');"; it will execute it twice. In your examples you have trial dll that is form February 2008 and our dll is release version from January 2009. Is there a solution / patch for this behaviour? Thanks. Dejan
Hello,
In my codebehind I am creating a Radgrid and adding the columns to the grid. One of those columns is a GridButtonColumn. The code looks like so...
| Dim clmbtnGRDMAIN1 As New Telerik.Web.UI.GridButtonColumn |
| clmbtnGRDMAIN1.DataTextField = rowCOLUMN.FIELDNAME |
| clmbtnGRDMAIN1.HeaderText = rowCOLUMN.EXTERNAL_READABLE1 |
| clmbtnGRDMAIN1.UniqueName = rowCOLUMN.FIELDNAME |
| clmbtnGRDMAIN1.HeaderStyle.Width = rowCOLUMN.GRIDWIDTH |
| clmbtnGRDMAIN1.CommandName = "TEMPID" |
| grdMAIN1.Columns.Add(clmbtnGRDMAIN1) |
This works fine, it creates the button with the proper information. But what I want to do, is that after a user clicks on the link button, gather the value.
The Telerik example says to put some code in the ItemCreated event. Such as this...
| If e.Item.ItemType = Telerik.Web.UI.GridItemType.Item Then |
| Dim item As Telerik.Web.UI.GridDataItem |
| item = e.Item |
| Dim LinkButton1 As LinkButton |
| LinkButton1 = item("TEMPID").Controls.Item(0) |
| LinkButton1.CommandArgument = e.Item.ItemIndex.ToString() |
| End If |
This works and the index is correct.
But, when I try to get the value in the ItemCommand event, I get nothing. The code is here...
| Dim index As Integer = Convert.ToInt32(e.CommandArgument) |
| Dim item As Telerik.Web.UI.GridDataItem = grdMAIN1.Items(index) |
this.RadMenu1.Items[0].CssClass = "rmFocused";
and that works but it never loses focus no matter which menu items are clicked. I can't figure out how to make it lose focus when another menu item is clicked. I tried a client side event to set the CssClass and it does not work, nor does item.focus() - can't get any client side event to make it focused on loading. Seems a very simple task I want to do - just focus the darn item onload and take focus off when another item selected - simple eh? lol