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


Top 5 Contributors of the Month
MarieAdela
Imran Ghani
Post New Web Links

combo box custom template and binding issue

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

i have a custom styled combo box binding with an enum, issue is that when i select the item from the combo box the interface dnt get refereshed and evern after selection the dropdown list remains there. and if i remove the style it works fine.. 

below is the custom style i am using. can you please let me know 

 

 

    <Style TargetType="ComboBoxItem">

        <Setter Property="Background" Value="Transparent" />

        <Setter Property="HorizontalContentAlignment" Value="Left" />

        <Setter Property="Padding" Value="6,4" />

        <Setter Property="KeyboardNavigation.ControlTabNavigation" Value="Local" />

        <Setter Property="VerticalContentAlignment" Value="Top" />

        <Setter Property="Template">

            <Setter.Value>

                <ControlTemplate TargetType="ComboBoxItem">

          


View Complete Post


More Related Resource Links

combo box custom template and binding issue

  

i have a custom styled combo box binding with an enum, issue is that when i select the item from the combo box the interface dnt get refereshed and evern after selection the dropdown list remains there. and if i remove the style it works fine.. 

below is the custom style i am using. can you please let me know 

 

 

    <Style TargetType="ComboBoxItem">

        <Setter Property="Background" Value="Transparent" />

        <Setter Property="HorizontalContentAlignment" Value="Left" />

        <Setter Property="Padding" Value="6,4" />

        <Setter Property="KeyboardNavigation.ControlTabNavigation" Value="Local" />

        <Setter Property="VerticalContentAlignment" Value="Top" />

        <Setter Property="Template">

            <Setter.Value>

                <ControlTemplate TargetType="ComboBoxItem">

          

combo box custom template and binding issues

  

i have a custom styled combo box binding with an enum, issue is that when i select the item from the combo box the interface dnt get refereshed and evern after selection the dropdown list remains there. and if i remove the style it works fine.. 

below is the custom style i am using. can you please let me know 

 

 

 

    <Style TargetType="ComboBoxItem">

        <Setter Property="Background" Value="Transparent" />

        <Setter Property="HorizontalContentAlignment" Value="Left" />

        <Setter Property="Padding" Value="6,4" />

        <Setter Property="KeyboardNavigation.ControlTabNavigation" Value="Local" />

        <Setter Property="VerticalContentAlignment" Value="Top" />

        <Setter Property="Template">

            <Setter.Value>

        

combo box custom template and binding issues

  

i have a custom styled combo box binding with an enum, issue is that when i select the item from the combo box the interface dnt get refereshed and evern after selection the dropdown list remains there. and if i remove the style it works fine.. 

below is the custom style i am using. can you please let me know 

 

 

 

    <Style TargetType="ComboBoxItem">

        <Setter Property="Background" Value="Transparent" />

        <Setter Property="HorizontalContentAlignment" Value="Left" />

        <Setter Property="Padding" Value="6,4" />

        <Setter Property="KeyboardNavigation.ControlTabNavigation" Value="Local" />

        <Setter Property="VerticalContentAlignment" Value="Top" />

        <Setter Property="Template">

            <Setter.Value>

        

combo box custom template and binding issues

  

i have a custom styled combo box binding with an enum, issue is that when i select the item from the combo box the interface dnt get refereshed and evern after selection the dropdown list remains there. and if i remove the style it works fine.. 

below is the custom style i am using. can you please let me know 

 

 

 

    <Style TargetType="ComboBoxItem">

        <Setter Property="Background" Value="Transparent" />

        <Setter Property="HorizontalContentAlignment" Value="Left" />

        <Setter Property="Padding" Value="6,4" />

        <Setter Property="KeyboardNavigation.ControlTabNavigation" Value="Local" />

        <Setter Property="VerticalContentAlignment" Value="Top" />

        <Setter Property="Template">

            <Setter.Value>

        

Creating custom site template from a site that has a subsite - issue

  
  1. We created a Report Center site (a subsite) inside our site and then saved the site as a custom site template (including content). When we create the site out of this template, the site does not include the Report Center subsite. Can someone explain why?
  2. The report center was created for Key Performance Indicators (KPI) and we had published those KPIs on the parent site. We were hoping the any site created with our custom site template would show the KPIs. But we see only the KPI web part on the new site (created from our custom site template) without any KPI data. The reason is obvious because the data was coming from the Report Center subsite that does not get created by our custom site template. How do we accomplish this task via a custom site template?
    Thanks......

Extend ASP.NET: Simplify Data Binding In ASP.NET 2.0 With Our Custom Control

  

The wwDataBinder control addresses simple control data binding--binding simple form controls like textboxes, checkboxes, and the selected values of list controls to individual data or object values.

Rick Strahl

MSDN Magazine December 2006


Data Binding: Give Your Everyday Custom Collections a Design-Time Makeover

  

In this article, Paul Ballard shows how you can provide data binding support for your custom collections to enable sorting, searching, and editing in as simple a manner as possible. In addition, he shows how to make all of these features available in the Windows and Web Forms Designers, just like an ADO.NET DataSet.

Paul Ballard

MSDN Magazine August 2005


Custom controls and ViewState management issue

  

Hi,

I want to know that when we create custom controls, then is there State Management through ViewState done automatically or we have to handle it explicitely ?Since i have created Custom Controls that is behaving as if it is not maintaining its state on PostBack.


can template save custom pages?

  

I created a template off a site I made last year (without content). That site had some custom pages with webparts on them.  These pages were linked to from the Quick Launch menu.  I just made a new site using that template and it appears the custom pages weren't part of the template as when I click on the links to them in the QL menu, I get a 404 page not found error. I tried again saving the template with content this time and my custom pages show up - but then I have all the lists/libraries filled with old content.  Any remedy?

I am on MOSS 2007 and can use Designer.


Custom Search issue with freetext

  

Hi All,

My Environment : MOSS 2007 (sp2) with SQL Server 2005

I have a custom search webpart which uses FullTextSqlQuery to fetch the results from Index. I have a some keywords and a free text boxt to build the search query. Poeple enter their query by selecting the keywords and enter some free text into the text box.

Issue : When any PDF document (Not tested with .Doc) is searched using custom webpart with the numbers like "2,0233.21" I do not get any results returned even though the results are returned using the SharePoint out of box full text search. But when I search the content like "2+0233+21" I get results both in Out of box and in custom search webpart.

Requirement: The Custom search should be able to find the document when numbers like "2,0233.21" are entered. It should work exactly like the out of box search.

Thanks in advance for your suggestions.

Regards,

Ravi


Where is StartPage.cproj : Custom Start Page Project Template

  

I am reading through Wrox Professional Visual Studio 2010.
In Chapter 3, there is an example of how to customize and extend the start page.

So he wants you to copy the files from C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\StartPages\<Culture>
into
C:\Users\<user name>\Documents\Visual Studio 10\StartPages. He say you may need to create this because it may not exist by default. So I would just copy the files into:
C:\Documents and Settings\Sam\My Documents\Visual Studio 2010\StartPages and work from there right?

Then he says double click StartPage.csproj to opent the WPF project in Visual Studio 2010.
But StartPage.csproj simply does not exist anywhere.

I have installed Visual Studio 2010 sdk and the Custom Start Page Project which shows up in extension manager.
I just can't figure out how to use it.

I am on Windows XP.


"Mixed mode assembly is built against version 'v2.0.50727'.... " issue and use custom config file

  
Hi, My Winform applilcation has used Microsoft.SqlServer.Management.Common namespace(assembly :Microsoft.Sqlserver.smo.dll/Microsoft.Sqlserver.ConnectionInfo.dll) and developed in .NET 4.0. Problem:Application is throw an exception when it tries to use above assembly reference methods. Full error text is shown below, "Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information. " Error is resolved when we include "app.config" file with below code, <?xml version="1.0"?> <configuration> <startup useLegacyV2RuntimeActivationPolicy="true"> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/> </startup> </configuration> But, I need to keep configuration file as "renamed.config" and not to include app.config file as of the project requirement.I have set configuration file as "renamed.config" file using below code, //AppDomain.CurrentDomain.SetData("APP_CONFIG_FILE", "d:\\reanmed.config" ); I have also included <Startup> element in this "renamed.config" configuration file and removed the app.config file.But it raise me below error, it always expect app.config file with <Startup> element to resolve this iss

Calculated measures, calculated cells, and custom rollups issue

  
Hi,  I'm a little bit confused according to the purpose of Calculated measures, calculated cells, and custom rollups as they lead practically to the same goal, is there any differnce between those modes from a technical point of view. And for the last one, the custom roll up the question how to perform this, I need a walkthrough that lead me to undersand the way to set a custom roll up to a given dimesion, I visited microsoft site but the inforamtion that I have is poor, so is there any other source that exposes that as a step by step example? Thank youThe complexity resides in the simplicity

Issue with custom Redirect PageLayout

  
Hi, I have duplicated RedirectPageLayout.aspx to create custom redirect page layout. In my custom redirect page layout, i have linked my custom content type.  From my root website, when I try to create redirect page from my custom redirect page layout, in a edit mode it shows Redirect URL control to get the URL to redirect. But from any sub site, when I try to create redirect page from my custom redirect page layout, in a edit mode it doesn't show "Redirect URL" control to get the URL to redirect. Please let me know about how to fix this. or let me know some alternative way to do it. Regards, Prakashwww.aristonsoft.com - .net 3.5 hosting provider in India

Custom binding and interoperability.

  
Hi everyone, I have to build a wcf client to communicate with a JAVA web service. The configuration of that web service is not standard and I'm trying to use a custom binding. I have to generate a SOAP message with a Binary Security Token section and a username section in the SOAP header. I have to sign the username token with my X509 certificate and add the digest to the message. I must sign the body too and again add the digest to the message. The service is under an https transport (https://...). Below I attach a correct example of a message that I have to produce: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">     <soap:Header>         <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"                        soap:mustUnderstand="1">             <wsse:BinarySecurityToken                     xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"        &

Need step-by-step Custom Template Help

  
I would like to create 5 custom templates and deploy the same ones to all 13 site collections (living under one web app). Here's what I can successfully do: 1. Create a site 2. Turn off features (on a hunch after experiencing the below problems) 3. Add branding, web parts, etc. 4. Site Settings -> Save Site as Template 5. Test by immediately creating a site in the same site collection with the template (this works). However: * Weeks to months after creating the template, it stops working (in the same site collection). Could be something I'm configuring, I don't know. Users get message "The template you have chosen is invalid or cannot be found." * If I go to the template gallery, right-click and save-as,  put the template on my desktop, and then upload it to another site collection, it doesn't work in the new site collection. Again, "The template you have chosen is invalid or cannot be found." When I open the template and look at the code, I see references to absolute URLs from the site where the template was created. Would really prefer to deploy these templates without coding. * If I use stsadm -o addtemplate -filename "filename.stp" -title "title" the template also doesn't work. It allows me to create a site with it and set permissions, but then I immediately get: Server Error in '/' Application. The resource cannot be

Permissions issue for custom web service in the _vti_bin folder.

  
Hello, I have created a custom ASMX webservice that returns in JSON format so that I can call the data from JQuery on SharePoint page content.  I placed it in the ISAPI (_vti_bin) folder and it works just fine when I go directly to the web service and call it the way JQuery calls it: /_vti_bin/ServiceabilityCheck.asmx/GetSystemIDByZIPCode?ipaddress=127.0.0.1&zipcode=85004&promocode= Which returns: <string>{"SystemID":"5"}</string> When I try to call it from the SharePoint site with JQuery, it errors out and gives an unspecified error.  Fiddler shows {"Message":"Authentication failed.","StackTrace":null,"ExceptionType":"System.InvalidOperationException"} as the response from the web service call. When I have the webservice on an IIS web app outside of SharePoint, it works fine.  I have anonymous access enabled on the SharePoint site, why would it give me this error?John Chapman | Blog: http://www.johnchapman.name
Categories: 
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