PDA

Click to See Complete Forum and Search --> : Where can I find Flat .Net Web controls


anis_b
Mar 18th, 2004, 12:05 AM
Where can I find Flat .Net Web controls
I m especially looking for Flat Listbox, DropDownList

Lumisoft that i found seems for Windows Forms only.
I m looking for Web Forms.

Plz suggest

nemaroller
Mar 18th, 2004, 07:58 AM
Hmm... we have developed flat controls, specifically a flat dropdown, and a flat drop down tree for our current web application.

The only caveat being they use a property called TableName...

TableName is the table the controls execute a select query on.

So if you have a table in the database for states called '_States' for example, you would set the TableName to '_States', and the controls automatically execute a select query on them.

However, the TableName property also supports just about any SQL statement, if you prefix with 'SQL:' , for example, to find all books of a certain publisher with id 103, you would use:
'SQL: Exec GetPublisherBooks 103' in the tablename property.

The controls also support type-ahead auto completion, an isreadonly property, and a IsNullable property (if the user can submit a form without selecting a choice).

Anyway, if you're interested send a reply back.. I will ask the pm if you can obtain a copy of the compiled control library... otherwise, these controls are simply the result of dhtml behavior (and man they work slick) .

anis_b
Mar 19th, 2004, 03:11 AM
yes nemaroller plz send me a copy

thanks in advance

DevGrp
Mar 21st, 2004, 11:03 PM
Cant you just use CSS?

anis_b
Mar 22nd, 2004, 12:03 AM
textbox, textarea and button are done
with

border: 1px solid RGB(58,110,165)

but dropdownlist and listbox donot work with the same style.

if its possible thru CSS then it would be best solution

pls suggest if any

nemaroller
Mar 22nd, 2004, 05:44 AM
The controls I mentioned don't use Select tags in the html. They are composite controls, the first part a textbox, the second part a table inside a 'OVERFLOW-Y:auto' styled div. The table and the textbox are styled using CSS.

When the user puts focus onto the texbox, I show the table.

Each item in the dropdown is really a table cell with in row, that has a title property, a tag property:
<td class="CESIDropDownItem" id="CESIDropDown1_Item103" title="Chicago" tag="102"
onClick="DropDownGo(103, 'CESIDropDown1')" >Chicago</td>

When clicked, it calls the jscript function DropDownGo, passing the pk_Item (103), and the parent control.

DropDownGo, sticks 103 inside a hidden html input field, and then grabs the title property and sticks that inside the visible textbox.

Of course, the generation of the tags are all handled in the PreRender of the control itself.

(btw, still haven't obtained permission, sry)