Double Click on Combo Scroll bar?
I am trying a Combo. I have to DOUBLE click the scroll bar to move the items listed in the Combo. How can I change it to single click just like most popular components? The single click should be the default action, I think.
Thanks,
mrhsh
March 25,
I cannot reproduce this - single click works ok for me. Which browser and which version of AW are you using? Is this AW.UI.Combo control or something else?
Alex (ActiveWidgets)
March 25,
<script>
var grid=new AW.UI.Grid;
var header=["h1","h2"];
grid.setHeaderText(header);
grid.setColumnCount(2);
grid.setRowCount(1);
var combo=new AW.UI.Combo;
grid.setCellTemplate(combo,0,0);
combo.setItemText([1,2,3,4,5,6,7,8,9,0,11,12,13,14,15,16,17,18,19,20]);
combo.setItemCount(20);
document.write(grid);
</script>
Run this scrip on IE7, and try to select item "20". I have to double click the scroll bar to move the items down. Could you reproduce this?
Thanks,
mrhsh
March 26,
I tried it on IE7 and activewidgets version 2.5.1.
It works with a single click on the scrollbar.
Are you using a different version of activewidgets ?
Do you have any other code on the page apart from this ?
Ankur Motreja
March 26,
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!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>
<link href="../runtime/styles/xp/aw.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../runtime/lib/aw.js"></script>
</head>
<body>
<form id="form1" runat="server">
<div>
<script>
var combo=new AW.UI.Combo;
combo.setItemText([1,2,3,4,5,6,7,8,9,0,11,12,13,14,15,16,17,18,19,20]);
combo.setItemCount(20);
document.write(combo);
</script>
</div>
</form>
</body>
</html>
The above is the whole page I am testing. I am using it on IE7 and activewidgets trial version 2.5.1. I am using VS2005 as developing tool.
mrhsh
March 26,
Sorry, still cannot reproduce this - single click works as expected. Do you see the same behavior on other machines?
Alex (ActiveWidgets)
March 26,
"single click" can only open the dropdown list for showing 6 items. I have to double click to hold the scroll bar and drag it up and down. My testing page is very simple and my machine is no problem for other ASP.NET component. Is it TRIAL version's problem? Is it possible to set scroll bar property to force it act as normal way?
Thanks,
mrhsh
March 26,
I tried the same thing with AW.UI.List. The scroll bar works as normal way, selecting by single click. The following is my whole test page. I only changed "Combo" with "List". It must be something wrong on AW.UI.Combo in trial version. Could you reproduce it using a trial version?
Thanks,
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!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>
<link href="../runtime/styles/xp/aw.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../runtime/lib/aw.js"></script>
</head>
<body>
<form id="form1" runat="server">
<div>
<script>
var combo=new AW.UI.List;//replace Combo with List, the scroll bar works as normal!?
combo.setItemText([1,2,3,4,5,6,7,8,9,0,11,12,13,14,15,16,17,18,19,20]);
combo.setItemCount(20);
document.write(combo);
</script>
</div>
</form>
</body>
</html>
mrhsh
March 26,
Are you sure you have 2.5.1 and not 2.5.0? If you were using 2.5.0 before - maybe it is still in your browser cache? There was a bug like this in 2.5.0 but it is fixed in 2.5.1.
Alex (ActiveWidgets)
March 27,
Thank you very much! I download the 2.5.1 just now, and it solved this problem.
mrhsh
March 27,