Is there a way to force TreeView to load data on demand? In the other hand TreeView must load data only when a node is to be collapsed. TreeView is binded to a collection of data that is implementing IHierarchyData.
...
First i'm not mad, because i use MVVM in WinForms-) I know about MVP (Model View Presenter) pattern and it's variants. But when i started this project i was going to learn WPF and use it, but i'm forced to rush program development, and have no time to learn WPF, so i have to write it in WinForms which i know well.
So in short i have a l...
hey. I'm trying to maintain an MVVM model, but am tripping up somewhere when trying to bind to a listbox. The first time I run the application, I set ItemCatalog (ObservableCollection) to be a certain ObservableCollection list. The listbox is empty, but if I try again it works. However, there is a lag between the datasource and the displ...
Hi,
Does data binding work with the UITextField? Unfortunately, I'm getting the variable instead of the bound data.
[Bindable]
public var myString:String;
in a function, where tf is a UITextField:
myString = "blah blah blah";
blah blah...
tf.text="{myString}";
It's giving me {myString} instead of its data.
Thank you.
-Laxmidi
...
I'd like to bind the z index of list box items to their index.
Ideally, we would have
Style TargetType='{x:Type ListBoxItem}'>
Setter Property='Panel.ZIndex' Value='{Binding RelativeSource={RelativeSource Self}, Path=-Index} />
...
However, the list box item does not have an index property.
I can think of a number of crazy solutio...
Hello All,
JAXB Generated classes only capture the structural information from the XML schema that is used to generate the classes, but they ignore any additional constraints on the data e.g allowed set of values(enumerations), max value allowed etc. Does it mean that if i do not have a schema i can only validate structural information a...
Hello everyone
I have searched, but nothing happens, I just starting using C#.NET and I a have a textbox on a form. I retrieve some data from the database and I display to a textbox through a combobox that indicate the section I want to display (I already do this!),but when I try to update nothing works, I click my button to update the ...
Hello StackOverflow,
Odd question as I've never attempted this before in my usual data binds.
Say if I was binding data to a textbox and my data was a specific number "123", yet I wanted the textbox to display "Data: 123". Without adding that extra piece of information "Data: " to the return in the object itself, is this possible?
Che...
I have a classic ObjectDataSource and a ListView in my page. The List view just displays some data and when switched to edit template it allows the user to change the values. I want the user to edit just some values -- so I bind just these ones in the edit template.
The problem is that the other values suddenly turn to nulls or 0. I tri...
Hello!
I have a simple DataGrid. I want to make that every DataGridRowHeader has it own Content.
I specified RowHeaderStyle like this:
<DataGrid.RowHeaderStyle>
<Style TargetType="DataGridRowHeader">
<Setter Property="Content" Value="{Binding Source={StaticResource RowHData}, Path=Parameters}"/>
</Style>
</DataGrid.RowHeader...
I have a view that has 2 combo boxes (Call them ParentTypeCombo and ChildTypeCombo). Both of these combo boxes have the same backing drop down list (call it WorkItemTypes).
Using MVVM how can I know when the value was changed for these combo boxes? I have bound them to properties (Call them ParentType and ChildType). But as I recall,...
I have a datagrid which is populated from a web service. I want to fill a form based on the selected item in the datagrid.
This is what I use to set the DataContext (Which is a grid)
private void PublisherSearchList_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
this.PublisherItem.DataContext = (Publisher)Publis...
Hi all.
I have a TreeView with binded ItemsSource. I want to select my root(first) node. But ItemContainerGenerator has not generated any TreeViewItem objects yet.
Is there any nice way to select the items without using timers/threads and so on ?
...
I develop desktop-based WPF-application, that uses SQL Server 2008 R2 Database and ADO.NET Entity Framework as connection tool between database and application.
In one of the windows there is need to show content of database's table and let user to perform some manipulations, such as add new record to database, edit selected record and ...
Hi Guys.
I´m trying to store some parameters for my application on a database table. The table contains multiple rows which contains a Key -> Value relationships. On my windows forms program (written in C#) I have multiple controls that should allow the user to interact with the stored configuration on the database.
For example, my dat...
I've been having some trouble getting a listbox to correctly bind to a collection.
I'll give the framework code, then explain what I want it to do.
XAML Markup:
<ListBox DataContext="{Binding Foos, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
ItemsSource="{Binding}" IsSynchronizedWithCurrentItem="True"
...
I have added a ListView to a web form and this code works when the data columns in the bound dataset have values:
<asp:ListView ID="picturesListView" runat="server"
GroupPlaceholderID="groupsGoHere"
ItemPlaceholderID="itemsGoHere"
GroupItemCount="1" >
<LayoutTemplate>
<p id="pictureList">Picture List:</p>
...
This a data binding question in C#.
I have a simple Person class:
public class Person {
public string Name {get; set;}
public string Level {get; set;}
}
And I have a Group class, which contains a Persons property as a BindingList of Person instances:
public class Group {
private BindingList<Person> persons_;
public B...
I want a javascript on a databound row to act on another control in the same row - show/hide for example. The classic ASP approach was to number the controls (usually by rowIndex so that they're easier to reference. I am wondering is there a way to do this in ASP.Net without writing any item command code?
So for html to render as follo...
Here is the situation:
I have a ListView showing just a list of concatenated strings obtained from different field of the objects of the datasource.
A LinkButton (with CommandName="Edit") in each row
Event handlers for OnItemDataBound and OnItemEditing
A UserControl in EditTemplate.
Now the problem is, I don't know how to use Bind e...