PDA

View Full Version : [CLOSED] displayfield autoscroll not working



tMp
Mar 13, 2014, 6:34 AM
Hi

I got some displayfields with pretty long texts and I would to have the auto scroll feature but somehow it isn't working. And eventhough the displayfield is have the height of the panel it doesn't show up like that. Any ideas why? (By the way, I am on 2.4)


<%@ Page Language="C#" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>

<script runat="server">

protected void Page_Load(object sender, EventArgs e)
{
if (!X.IsAjaxRequest)
{

}
}

</script>

<!DOCTYPE html>

<html>
<head id="Head" runat="server">
<title></title>

</head>
<body>
<form id="Form" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" Locale="de-CH" />

<ext:Panel runat="server" ID="pnl" Width="100" Height="100">
<Items>
<ext:DisplayField runat="server" Height="50" AutoScroll="true" Text="sdfsdfsdfsddsfsdfa dsaf daf adfds dsaf dfa dsf dsafdfaf dsfadfa fdsf af dsaf ads afdsaf dsfdfsfdssfs end of text"></ext:DisplayField>
</Items>
</ext:Panel>

</form>
</body>
</html>

Thank you very much.

Daniil
Mar 13, 2014, 11:32 AM
Hi @tMp,

A DisplayField doesn't have the AutoScroll option.

You can set it for a Panel.

tMp
Mar 13, 2014, 1:14 PM
ah ok. I can select it though when I use autocompleted in VS ;)

Got it now, setting autoscroll and height in the panel and everything is working fine. thank you very much.

Daniil
Mar 14, 2014, 4:13 AM
ah ok. I can select it though when I use autocompleted in VS ;)

Sorry, it has that setting. I meant it is not supported by a DisplayField.