.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Are combo boxes fixed yet?

Posted By:      Posted Date: October 01, 2010    Points: 0   Category :WPF

If you open and scroll the list on a drop down combo list box using the scroll bar and a mouse the mouse, the messages are pushed to the background window and cause it to scroll as well. Is this on purpose? This was never true in windows..

Just wondering if this was patched.


View Complete Post

More Related Resource Links

Adjacent combo boxes take space according to their data on google chrome

I have a page where I want to keep several combo boxes adjacent to each other. I have put them in divs that are floated left.This works fine in IE, Firefox. But when I render the same page on Chrome I observe the uneven gap between combo boxes. Upon analysis I found out that each combo box is occupying space based on the data inside it.This happens because on Safari and Chrome, the option list control is placed differently as compared to that on IE and Firefox.Please see the following code from ComboBox.pre.js (in AjaxControlToolkit source/Server/) // force inline display on Safari by moving the list to the bottom of the form. if (Sys.Browser.agent === Sys.Browser.Safari || Sys.Browser.agent === Sys.Browser.WebKit) { this.get_element().removeChild(optionListControl); var parent = this.get_element().parentNode; while (typeof (parent) != typeof (document.forms[0])) { parent = parent.parentNode } var safariListContainer = document.createElement('div'); safariListContainer.className = this.get_element().className; safariListContainer.appendChild(optionListControl); parent.appendChild(safariListContainer); } This is how it looks:I have tried doing the following but none of them helped:Changed the RenderMode of combo box to 'block' fro

Binding multiple combo boxes to the same list


If I bind multiple combo boxes to a list of combo box items, selecting an item in one box clears the list in the other. When I use a list that contains something other than combo box items the binding works as expected. Is this a bug or am I missing something?

Here is an example of the behavior using VS 2010 premium and .Net 4.0

<Window x:Class="TestApp.MainWindow"

Dataset with multiple relationships and combo boxes


I have 3 tables:


Table 1  
tableOneID (PK)


Table 2
tableTwoID (PK)
tableOneID (FK)


Table 3
tableThreeID (PK)
tableTwoID (FK)


I want to be able to display the information in 3 combo boxes, filtered by the selection the 'upper' combo boxes. I have a dataset containing 3 datatables and have created relationships between the tables. It all works great for the first two combo boxes (cboTable_2's data is filtered correctly by selection in cboTable_1) but not for the next combo box - I want cboTable_3's data to be populated based on the selection in cboTable_2.


Code Snippet

OleDbDataAdapter da = new OleDbDataAdapter("SELECT * FROM Table_1", conn);

da.Fill(ds, "T

Binding the multiple drop down boxes in GridView using JQuery in ASP.NET

Here is the code for binding the multiple drop down boxes in GridView using JQuery in ASP.NET

How to Fixed GridViews Header and Footer when scrolling in asp.net?

This article is to show you how to Fix GridView''s Header and Footer in a simple code with CSS and JavaScript

Scrollable GridView with fixed headers in asp.net C# vb.net

In this example i am going to show how to create scrollable GridView with fixed headers which don''t get scrolled with records and stay on the top in asp.net using css, I''ve tested this code on IE7 and Firefox 2.0 , 3.5.

For this we need to add css to headers of gridview to keep them on the top.

First of all place a Panel on the aspx page from thetoolbox. Set height to 200px and width to 200px
and scrollbars to Vertical.
Now add a gridview inside this Panel and set the datasource to populate gridview.

Gmail style multiple Sign-in type combo...is it possible in asp.net?


I am developing a multi-company application and want my users to give the functionality like the following to switch companies.


Is this possible? then how?

Please help


Cutting Edge: Modal Dialog Boxes with AJAX


This month Dino Esposito shows you how to get Windows-style modal dialog boxes for your Web applications thanks to the Ajax Control Toolkit and some clever coding.

Dino Esposito

MSDN Magazine Launch 2008

Validate mutually exclusive text boxes


Meaning only one of them can have a value, but not both.

I suspect one validation control can't handle both.


Any ideas? 

Saving Check boxes


I am creating an application that uses several check boxes. I check one or more of these check boxes. When I save a record and reopen it all field come back with the appropriate info, except the check boxes come back unchecked. I am using a date type "bit". It apperas that I have the check boxes bound to the right fields in the table. Does anyone have any suggestions<

Keith @ LPG

populate combo


i have two combo cboCountry and cboCity

i want to change cboCity with new value.

protected void cboCountry_TextChanged(object sender, EventArgs e)
            SqlCommand cmd = new SqlCommand("SELECT * FROM [Country] where country='" + cboCountry.SelectedItem + "'", new SqlConnection(ConfigurationManager.AppSettings["ConString"]));

            SqlDataReader ddlValues;
            ddlValues = cmd.ExecuteReader();

            cboCity.DataSource = ddlValues;
            cboCity.DataValueField = "City";
            cboCity.DataTextField = "City";


Schema :relatioship expected & constant/fixed element cannot have attributes

I try to bullkload data from xml file to SQL database ,but I cannot figure out the problem.Please anyone help me .I'd really appreciate. the XML file :  <?xml version="1.0" encoding="UTF-8"?> <root>        <!-- ????? -->        <common>               <!-- UploadDataCenterID???????????????? -->               <UploadDataCenterID>XXXXXX</UploadDataCenterID>               <CreateTime>YYYY-MM-DD HH:MM:SS</CreateTime>        </common>        <data>                 <BuildGroup id="XXXXXXXXXX">                        <BuildGroupBaseInfo operation="N|U">                             <F_BuildGroupName>?????</F_BuildGroupName>                             <F_GroupAliasName>???????</F_GroupAliasName>                             <F_GroupDesc><![CDATA[?????]]></F_GroupDesc>                      </BuildGroupBaseInfo>                      <BuildGroupRelaInfo operation="N|U">                             <F_BuildID>XXXXXXXXXX</F_BuildID>                      </BuildGroupRelaInfo>               </BuildGroup>        </data> </root> then the XSD :<?xml version="1.0" encoding="UTF-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xs

Xml generating in fixed tag format

Hi All!   I have generated xml file from relational database now I want to display all the elements of one category in 1 category tag and I have several categories.   Regards, Mahavir Jadhav  

height of fixed height div appears to vary depending on content

why would text content of a fixed height div with a background image push the background image down and make the div higher? In the following, without the "overflow:hidden;" the div draws with a height > 180px. And the background image starts lower vertically than it does when there is not <h1> text content or when overflow:hidden. Also, when I put a border around the div (  border: 1px solid black ), the background image snaps back up to the top, with the <h1> text overlaying it as I want it to. <div style="background-image:url('images/green city header.png');              background-repeat:no-repeat;       background-position:left bottom;        height: 180px;"><h1>efg</h1></div> The text content is not overflowing. And even if it did, why would overflow text increase the height of a container?Same behavior in IE8 and Chrome. thanks,  

CSS Layout Problem when height is fixed to 100%

Hi all,I'm using 3 column DIV layouts for my aspx page which i downloaded it from james tyler website.My problem is when i set height of all the div layers to some 750px it is looking good and when i remove the height, all the DIV layers are getting shortened and looking awakward.I mean if the left menu DIV contains only 3 items, the whole div's height is being reduced to fit those only 3 menu items. I need to maintain 100% height for all DIV layers and my DOCTYPE is XHTML1.0 STRICT. Can anyone please help me out as i'm stuck here.. Here is my CSS and Markup:/* Header styles */ #header { clear:both; float:left; width:100%; } #header { border-bottom:1px solid #57B6DD; } #header p, #header h1, #header h2 { padding:.4em 15px 0 15px; margin:0; } #header ul { clear:left; float:left; width:100%; list-style:none; margin:10px 0 0 0; padding:0; } #header ul li { display:inline; list-style:none; margin:0; padding:0; } #header ul li a { display:block; float:left; margin:0 0 0 1px; padding:3px 10px; text-align:center; background:#eee; color:#000; text-decoration:none; position:relative; left:15px; line-height:1.3em; } #header ul li a:hover { background:#369; color:#fff; } #header ul li a.active, #header ul li a.active:hover { color:#fff; background:#000; font-weight:bold; } #header ul li a span { display:block; } /* 'widths' sub menu */

WPF Databinding a combo box

I have looked at some of the other linked related articles but I still can't get it. Simply I have 2 related tables Orders and Customers when I am editing an order I want to display the Customer in a Combobox. Let's say I wish to change the customer using a cbo The Customer Combo box should be populated with all Customers from the customer table the currently selected customer should be the current customer in the Order Table  for the Order I am Viewing The display member should be the customers name the tables are related with a CustomerID field in each table The data is EDMX   I have done some work on databinding in WPF and I can get combo boxes populated with Data but it's just not quite there. I can't seem to get the selected cbo customer to update to the Orders  

CSS Sliding doors technique for resizable boxes with a header

Ok, have been searching the web like crazy without result.What I need:1. Resizable rounded corner boxes, meaning that I can can type any width up to 800px and any height up to 500px and the box will nicely resize.2. The round top part of the box must have a different style and must be able to contain text (header). See here what I mean: http://modxcms.com/about/team/rthrash/simple-rounded-corner-css-boxes.html(could use that example, but it has very specific requirements for the measurements which I dont like)3. no use of tables ofcourse4. as few images as possibleAny good examples?
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend