<
asp:Content ID="Content1" ContentPlaceHolderID="ImageLibraryContent" Runat="Server">
<
div id='abc' class="codebox">
<asp:table ID="Table1" runat="server" Width="98%">
<
asp:tablerow>
<
asp:TableCell Width = "500px" VerticalAlign="Top" >
<rad:RadGrid ID="grdImages" runat="server" Skin="Outlook2007" Width="430px" height="324px" GridLines="None" AllowPaging="False" EnableAJAX="False">
<ClientSettings EnablePostBackOnRowClick = "true" Scrolling-AllowScroll = "true" Scrolling-UseStaticHeaders="true" >
</ClientSettings>
<MasterTableView autogeneratecolumns="False" DataKeyNames = "ImageId,PartCode,DoubleSided" >
<Columns>
<rad:GridBoundColumn DataField="PartCode" HeaderText="Part #" UniqueName="PartCode" >
<ItemStyle HorizontalAlign="Left" Width = "90px"></ItemStyle>
</rad:GridBoundColumn>
<rad:GridBoundColumn DataField="PartDescription" HeaderText="Description" >
<ItemStyle HorizontalAlign="Left" Width = "340px"></ItemStyle>
</rad:GridBoundColumn>
<rad:GridBoundColumn DataField="ImageID" UniqueName="ImageID" Visible ="false" >
</rad:GridBoundColumn>
<rad:GridBoundColumn DataField="DoubleSided" UniqueName="DoubleSided" Visible ="false" >
</rad:GridBoundColumn>
<rad:GridBoundColumn DataField="FrontSideExtension" UniqueName="FrontSideExtension" Visible ="false" >
</rad:GridBoundColumn>
<rad:GridBoundColumn DataField="BackSideExtension" UniqueName="BackSideExtension" Visible ="false" >
</rad:GridBoundColumn>
</Columns>
</MasterTableView>
</rad:RadGrid>
<br />
<asp:Table ID="Table3" runat="server" align="Left" >
<asp:TableRow >
<asp:TableCell Width="10%">
</asp:TableCell>
<asp:TableCell >
<asp:Label ID="lblSearchPartNumber" runat="server" Text="Part #:" Width="45px" TabIndex="9"></asp:Label>
</asp:TableCell>
<asp:TableCell >
<asp:TextBox ID="txtSearchPartNumber" runat="server" TabIndex="1"></asp:TextBox>
</asp:TableCell>
<asp:TableCell >
<asp:Button ID="btnSearchPartNum" runat="server" Text="Search" Width="153px" TabIndex="2" />
</asp:TableCell>
</asp:TableRow>
<asp:TableRow >
<asp:TableCell Width="10%">
</asp:TableCell>
<asp:TableCell >
<asp:Label ID="lblSearchDescription" runat="server" Text="Description:" Width="75px" TabIndex="10"></asp:Label>
</asp:TableCell>
<asp:TableCell >
<asp:TextBox ID="txtSearchDescription" runat="server" TabIndex="3"></asp:TextBox>
</asp:TableCell>
<asp:TableCell >
<asp:Button ID="btnSearchDescription" runat="server" Text="Search" Width="153px" TabIndex="4" />
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</asp:TableCell>
<asp:TableCell >
<asp:Table ID="Table2" runat="server" Width= "60%" Border="1">
<asp:TableHeaderRow ><asp:TableHeaderCell runat="server" ID="HeaderCell" nbsp</asp:TableHeaderCell></asp:TableHeaderRow>
<asp:TableRow >
<asp:TableCell HorizontalAlign="Left" >
<asp:Image ID="ImageFront" width="300px" height="190px" BorderWidth = "1" runat="server" AlternateText = "No Image" GenerateEmptyAlternateText ="true" Style="z-index: 100;" onclick="ShowImage(this.src);" />
</asp:TableCell>
</asp:TableRow>
<asp:TableRow ><asp:TableCell HorizontalAlign="Left"><b>Front Image</b></asp:TableCell></asp:TableRow>
<asp:TableRow >
<asp:TableCell HorizontalAlign="Left" >
<asp:Image ID="ImageBack" width="300px" height="190px" BorderWidth = "1" runat="server" Style="z-index: 100;" onclick="ShowImage(this.src)" AlternateText="No Image" GenerateEmptyAlternateText="True" />
</asp:TableCell>
</asp:TableRow>
<asp:TableRow ><asp:TableCell HorizontalAlign="Left"><b>Back Image</b></asp:TableCell></asp:TableRow>
</asp:Table>
</asp:TableCell>
</asp:tablerow>
<asp:TableRow>
<asp:TableCell>
</asp:TableCell>
<asp:TableCell>
</asp:TableCell>
<asp:TableCell>
<asp:Button ID="btnDisassociate" runat="server" Style="z-index: 109;" Text="Delete" Height="30px" Width="65px" TabIndex="5" Enabled = "false" OnClientClick="return delAlert()" />
</asp:TableCell>
</asp:TableRow>
</asp:table>
<radW:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Outlook">
<Windows>
<radW:RadWindow
ID="RadWindow1"
runat="server"
Height="300px"
Left="200px"
Skin="Outlook"
SkinsPath="~/RadControls/Window/Skins"
Title="Search for Customer"
Top="100px"
Width="600px" VisibleStatusbar="False" />
</Windows>
</radW:RadWindowManager>
<script type="text/javascript">
function ShowImage(id)
{
var cpdRepWindow;
id = escape(id)
id = id.replace(
"+", "%2B");
id = id.replace(
"/", "%2F");
cpdRepWindow =
"PartImageWindow.aspx?ImageID=" + id;
window.radopen(cpdRepWindow,
"RadWindow1");
}
</script>
<script language="JavaScript" type="text/javascript">
<!-- Hide;
function delAlert()
{
return confirm("Are you sure you want to remove this item?")
}
// -->
</script>
</div>
</
asp:Content>
Hello,
I have perhaps discovered a bug with the AjaxManager when an asp:Label is placed inside the UpdatedControls list for an AjaxSetting. I have tried this in IE7, FireFox 2 and Google Chrome.
If you add an AjaxSetting and place an asp:Label as one of the UpdatedControls, when rendering the HTML a <div> tag is placed around the label text, which causes a linebreak to appear in the browser. This may be intended behavior but I'm guessing not?
Cut-and-paste the code sample below and you'll see what I mean. I'm using the Q2 2008 version for .Net 2.0. When viewing this in a browser you'll notice there appears to be a linebreak between "text1" and "text2" -- view the source and you'll notice the extra <div> tag around Label1 which is causing the linebreak to appear.
I actually spent hours troubleshooting this today . . . very bizarre, I finally just started plucking elements from my page to discover why this extra <div> tag was being placed around one of my labels, causing the linebreak to appear in IE, and when I finally got to eliminating the RadAjax controls I discovered it. Your help & input is appreciated!!
| <%@ Page Language="VB" AutoEventWireup="false" CodeFile="testbug.aspx.vb" Inherits="_Controls_testbug" %> |
| <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml" > |
| <head runat="server"> |
| <title>Untitled Page</title> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <telerik:RadScriptManager ID="RadScriptManager1" runat="Server"></telerik:RadScriptManager> |
| <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="Button1"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="Label1" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| </telerik:RadAjaxManager> |
| <asp:Button ID="Button1" runat="Server" Text="Button1" /> |
| <asp:Label ID="Label1" runat="server" Text="text1"></asp:Label> |
| <asp:Label ID="Label2" runat="server" Text="text2"></asp:Label> |
| <asp:Label ID="Label3" runat="server" Text="text3"></asp:Label> |
| </form> |
| </body> |
| </html> |
showScrollableArea' and 'hideScrollableArea'. I can see what they do, I was wondering if someone could explain why it's necessary to do it.| <telerik:RadComboBox ID="drpMjesto" runat="server" EnableLoadOnDemand="True" EnableTextSelection="False" LoadingMessage="Učitavanje..." OnItemsRequested="drpMjesto_ItemsRequested" Skin="Telerik" ItemRequestTimeout="500" NoWrap="True"><FooterTemplate><asp:Literal runat="server" ID="ltlMessage" Text="aaa"></asp:Literal>eee</FooterTemplate> |
| </telerik:RadComboBox> |
| protected void drpMjesto_ItemsRequested( object o, Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs e ) |
| { |
| drpMjesto.DataSource = cSifMjesto.GetTopXByNaziv( 20, e.Text ); |
| drpMjesto.DataTextField = "Naziv"; |
| drpMjesto.DataValueField = "IdMjesto"; |
| drpMjesto.DataBind( ); |
| if ( !e.EndOfItems ) |
| { |
| Literal ltl = ( Literal ) drpMjesto.Footer.FindControl( "ltlMessage" ); |
| ltl.Text = "...prvih 20"; |
| } |
| } |
Specified argument was out of the range of valid values.Parameter name: index.
If I remove the TabClick event code, it works again.
Please could someone advise?
Thanks.
Kerry