Questions tagged [dynamic-data]

Dynamic data denotes information that is asynchronously changed as further updates to the information become available.

984 questions
4
votes
1 answer

Get the Class type for dynamic type?

I wrote some code : public static object func() { return new { a = 1, b = 2 }; } Console.WriteLine((func() as dynamic).a); //returns '1'. If I can do : func() as dynamic so dynamic should be some kind of reference type /…
Royi Namir
  • 144,742
  • 138
  • 468
  • 792
4
votes
1 answer

ASP.NET dynamic data: Table is not shown anymore after inserting data if FormView.Controls is accessed on Page.Initialized event

Lately, I received a bug report for Ninject.Web that it is not working properly together with ASP.NET dynamic data. The problem is that on postback (e.g. when Inserting, Deleting, Editing a record) the table is not shown anymore. Some debuging…
Remo Gloor
  • 32,665
  • 4
  • 68
  • 98
4
votes
3 answers

Adding dynamic data (for data scaffolding) to an ASP.NET MVC 3 site

I'm doing my first ASP.NET MVC 3 project here, and since I need to support stored procedures, I decided to use Entity Framework 4.1 with the "database-first" approach, e.g. with all the EDMX goodness. Since I absolutely need the stored procedure…
marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
4
votes
2 answers

DynamicData: Sorting of bound list reloads on every change

I'm using the excellent dynamicdata for bridging my data layer to my UI (using RxUI). The dynamic data part boils down to the following typical piece of code. There is a SourceCache of ItemViewModels ("_sourceCache") which gets bound to a…
4
votes
1 answer

Web setup project fails to install dynamic-data site: "the installer was interrupted"

The last phase of the installer fails with this message: Installation Incomplete The installer was interrupted before [project] could be installed. You need to restart the installer to try again. Running msiexec /i installer.msi /l*vx setup.log…
4
votes
1 answer

How can I reuse Model Metadata for custom View Models?

I'm working on an ASP.NET MVC 2 project with some business entities that have metadata dataannotations attributes applied to them (Validation attributes, Display attributes, etc.). Something like: //User entity public class User { …
Adrian Grigore
  • 33,034
  • 36
  • 130
  • 210
4
votes
1 answer

Dynamic VBO in OpenGL

What is the best way to store dynamic data for use in VBO (or vertex arrays). Only examples I saw were 2D static arrays and the pointer to that array was used with next parameters as stride, bytes used for one element etc. I can use "dynamic" arrays…
Raven
  • 4,783
  • 8
  • 44
  • 75
4
votes
2 answers

How to load Foreign key referenced tables data also in entity framework

I developed and entity framework (.edmx) application in 4.0 in that i got all the data of my querying table and its foreign key referenced tables data also. but when i change my project to 3.5 i am unable to get the data of foreign key referenced…
4
votes
8 answers

Does a tool exist for dynamically altering running javascript in a browser?

Does a tool exist for dynamically altering running javascript in a browser? For example, to change the values of javascript variables during runtime.
Gary Willoughby
  • 50,926
  • 41
  • 133
  • 199
4
votes
3 answers

Dynamic Data: how to filter dropdown for foreign key on edit page

Using Linq-to-SQL and Dynamic Data. On a Dynamic Data edit screen, a dropdown lists the possible values for a foreign key. I need to filter the values listed in this dropdown, preferably by adding a where clause on the linq-to-sql query. Any ideas?
Leon van der Walt
  • 997
  • 12
  • 18
4
votes
1 answer

Dynamicdata Validation Exception Message Caught in JavaScript, not DynamicValidator

I have a page here with a few list views on it that are all bound to Linq data sources and they seem to be working just fine. I want to add validation such that when a checkbox (IsVoid on the object) is checked, comments must be entered…
Perplexed
  • 123
  • 7
4
votes
5 answers

Alternative to Dynamic Data in Asp.Net Mvc

Years ago Microsoft present Dynamic Data as a new generation scaffolding engine to make the fastest way to manage your data without mostly any code writing. After some years without any news and without support for Entity Framework 6.x Dynamic Data…
Denis Agarev
  • 1,531
  • 4
  • 17
  • 34
4
votes
3 answers

Adding Combo-box dynamically

I'm trying to design a table in HTML which can add a row when I click "add row" button & the same for deleting an added row if i intend to delete it. I have written a javascript for adding checkbox and text. But I want even combo-boxes in it and I m…
Sandeep
  • 547
  • 3
  • 8
  • 18
4
votes
2 answers

Exceptions in ASP.NET Dynamic Data

I have an ASP.NET Dynamic Data application (using Entity Framework) in which I have just discovered a duplicate key error when attempting a database insert. However, I had to use SQL Profiler to find the error. The insert template page just…
ProfK
  • 49,207
  • 121
  • 399
  • 775
4
votes
1 answer

How can I filter choices out of a drop down list when using Dynamic Data?

I feel like this should be easy, but I don't see any way to do it. I'm using ASP.NET Dynamic Data with Linq to SQL. I've got a table with an Association to the Technician table. The Parent Property is TechAssignment, and on the web form I'm…
CodeRedick
  • 7,346
  • 7
  • 46
  • 72