Is there some way in Flex where I can tell when all of the data has finished binding to my AdvancedDataGrid? I have a bunch of label functions that run and I need to a busy cursor while the grid gets populated. I then want to remove it when it's all done. And also fire another event.
Thanks,
Martin
...
Hi,
I can't believe I haven't run into this issue before: I have a data bound form and before the user navigates to another record I want to save some additional data from non-bound controls in addition to the bound data. The only event I can find is BindingManagerBase.PositionChanged but this seems to happen after the current record has...
I'm trying to add an item to a DropDownList in a Setter, and the added item doesn't stay.
I have confirmed that Viewstate is correctly enabled as suggested in this question (http://stackoverflow.com/questions/445222/switched-to-asp-net-3-5-dropdownlist-doesnt-remember-dynamically-added-items)
Here is my code.
Private Sub Page_Init...
Hi,
A bunch of dotnet framework components use a DataSource component.
I have an object that has a number of settings that can modify the DataSource which it represents. I would like to set this object as the dropdown DataSource of a set of ComboBoxes and DataGridViewComboBoxCells.
My problem comes when trying to actually hook the thing...
I have a databound DataGridView. The data source is a typed data set with a table containing two DateTime columns (BeginTimeStamp and EndTimeStamp). I read and write the data to an SQL Server 2005 database using the typed data set's Update command.
The user must enter a date into each of the two columns, which I enforce using the CellVa...
I have a weird performance issue with my ModalExtender using MS Ajax Toolkit, when I postback back to show the modal it takes near 10 seconds for it appear when my Gridview has about 1600 rows. If I page my Gridview to about 10 rows per page, the performance is acceptable, about a second to show..
Is this behavior normal? The speed is b...
I'll try to be more descriptive here.
A Few Q's:
using:
var foo = new Foo() { Bar = new Bar() { Value = "Value" } };
var value = DataBinder.Eval(foo, "Bar.Value");
Or: This one
It is possible to retrieve an internal nested property using property path syntax. Is there a way to set/trigger a nested property (a regular property not De...
So, I have a GridView with an ObjectDataSource, and I want to programmatically set one of the SelectParameters of the ObjectDataSource.
I tried (during both Page_Load and DropdownList__SelectedIndexChanged)
objectDataSource.SelectParameters["my_parameter"].DefaultValue = "my_value";
objectDataSource.DataBind();
but it didn't work. Wh...
I am trying to figure out the best way to bind to an unrelated table in .Net. I have an ADO .Net Entity data model which contains several related tables and a few unrelated tables.
For example, I have the following tables:
KEY_VALUE_LKP with columns LKP_TEXT, LKP_VALUE and LKP_TYPE
REQUEST_DET with columns REQUESTNO, USERID, and REQ_S...
Kinda hard to explain, but i'll try. I have a datalist that is populated by a call to a stored procedure. The thing is, when rows with the same ID is detected i want it to break and add it under the first record and so on....
Illustration -- > Stack [23,45,566,676,787,878,23,23] (these represent record ID's)
23
23
23
45
and...
Hey there,
I am using the Model View View-Model pattern for a WPF app. I have a ViewModel (set as a pages DataContext) with two properties, one of which is an Entity with a PropertyChanged event. In the event handler i set the value of the other property (a boolean) to some value.
Now the Button and TextBox properties are binding fine ...
Looking at the javafx tutorials and samples, bindings are always made during varibale declarations:
def y = bind x;
or
def address = Address {
street: bind myStreet;
};
But what do I do, if I have an exisiting object - and hence don't declare it - and want to bind one of its attributes. In my case I load a SVGPath with the FXDLoa...
I've got a simple Item-class, that looks like this:
public class Item : DependencyObject
{
public int No
{
get { return (int)GetValue(NoProperty); }
set { SetValue(NoProperty, value); }
}
public string Name
{
get { return (string)GetValue(NameProperty); }
set { SetValue(NameProperty, value); }
}
public static readonly D...
I have a button on my form that should only be enabled when an item is selected in a treeview (or the listview in a tabitem).
When an item is selected, it's value is stored in a string member variable.
Can I bind the IsEnabled property of the button to the content of the member var? That is, if the member var is not empty, enable the bu...
The following code-behind binding works for the SmartFormView user control:
View:
<UserControl x:Class="CodeGenerator.Views.PageItemManageSettingsView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:v="clr-namespace:CodeGenerator.Views"
xmln...
I've created a class library which exposes my back-end object model. I don't wish to databind straight to SQL or XML, as a surprising number of tutorials/demos out there seem to assume.
In my Page_Load(), within the if (!IsPostbak), I currently set all the values of my controls from the object model, and call Databind() on each control....
I have a C# winforms app with a form for user preferences. An admin account should be able to show a dropdown of user names stored in a security table which will allow the admin to change that user's preferences. All is well and good on that front, except for the fact that both usernames and passwords are stored encrypted in the databa...
I use data binding to display values in text boxes in WinForms client (C#). When the user clicks Save, I persist my changes to the DB. However, the new value in the active editor is ignored (the previous value is saved). If I tab out of the active editor, then Save, the new value is persisted, as expected.
Is there a way to force the ac...
I'm trying to do some WPF databinding, but I'm a little hung up at the moment. I have two listboxes and an XML file. The first listbox successfully binds to the XML source. However, when I try to bind to a child of the selected item from first listbox as the source for the second list box, nothing appears. The goal being something like a...
I notice a lot of the examples for ASP.NET use Linq2Sql as the datasource.
Are there any examples out there which show how do use model binding with a non-Linq2Sql datasource, ie a dataset, or (as in my case) a generic list/collection of items based on a custom business object? ie
public class WebsiteList : List
{
public WebsiteLi...