PDA

View Full Version : [CLOSED] Multi handle Slider Numbers property



hikalkan
Apr 19, 2013, 9:43 AM
I am using a multi slider with numbers property set to [0,3600]. Both handles of the slider are shown at 0, even though i have set one of them to be at 3600. Is there a max value constraint for that numbers property so that it can function properly?

Daniil
Apr 19, 2013, 11:27 AM
Hi @hikalkan,

Yes, it has MaxValue="100" by default. You should set up it prior to Numbers.

Example

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

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

<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
this.Form.Controls.Add(new Slider()
{
Width = 300,
MaxValue = 5000,
Numbers = new double[] { 0, 3600 },
});
}
</script>

<!DOCTYPE html>
<html>
<head runat="server">
<title>Ext.NET v2 Example</title>
</head>
<body>
<form runat="server">
<ext:ResourceManager runat="server" />
</form>
</body>
</html>