Convert dataset to observable collection

stackoverflow.com - 2010-01-07 19:37:58 - Similar - Report/Block

I was trying to bind a dataset to a listbox..certainly because i want to display a couple of tables information in a datatemplate..But this seems not possible and i will have to convert it to an observable collection.But how can i do it.My bl returns dataset objects.How can i convert this to observablecollection..? Is there any way so tha...

KnockoutJS data-bind setter

stackoverflow.com - 2013-03-04 10:49:31 - Similar - Report/Block

Having a problem with HTML data-bind setter. I want it to set to model(exerciseCategories) intervals value. If I bind to intervals from model it is the right value but is not observable. If I bind it to $parent.intervals it is default value (1) from viewModel but it is observable. I want both :). What am I doing wrong? Something like thi...

How to make observable collection binded with check boxes update first before checkbox Changes event in silverlight?

stackoverflow.com - 2012-05-30 07:28:52 - Similar - Report/Block

Let me explain the question. I have an observable collection of type FilterTags (Where FilteredTags is a class, have a property called "isChecked"). Now my check boxes are binded with this observable collection. It is a two way binding, so when i check a check box, the change is reflected in the collection. Also the checkbox has a check c...

Convert Csv to arff using weka

stackoverflow.com - 2012-04-26 21:29:33 - Similar - Report/Block

i've been trying to get this dataset "http://archive.ics.uci.edu/ml/datasets/ Communities+and+Crime+Unnormalized" into Weka and no luck at all. i converted it to csv and then loaded it into weka and then tried to convert it to arff but still giving me the error " attribute names are not unique". Also, do i have to spreate the training data...

How do I get KnockOutJS to recognize dynamic html with data-bind properties?

stackoverflow.com - 2013-02-27 02:04:34 - Similar - Report/Block

I have an app where I'm dynamically loading content into parts of the page. Sometimes the code has data-bind attributes, which seem to be getting ignored by KnockOutJS. HTML: this text is replaced by the JavaScript function AppView() { var self = this; // This sets the code self.code = ko.observable(' this shouldnt show'); self.stuf...

how to convert datatable to list?

stackoverflow.com - 2012-10-15 11:24:32 - Similar - Report/Block

I have a dataset with few rows and columns in it, in the columns state there will be many matching rows, i want all the rows with same state to bind it to some list..how to achieve it. I need it because i have same capital in all the rows where i have same state, so i don' t want the loop to run each and every time...instead i want to bin...

How update dataset with datagrid view C#

stackoverflow.com - 2010-03-26 12:33:02 - Similar - Report/Block

I am beginner and I have this problem. How can I can update dataset with datagridview? I binding dataset in datagrid. Edit datagrid. At finish I want update dataset with datagridview. Thank you form any advice Sory, I use Winforms. Example: I bind dataset in datagridview. dataGridViewCustomers.DataSource = _ds.Tables[0]; //edit datagrid...

Bind Telerik radmenu from database using Dataset in winforms

stackoverflow.com - 2013-05-03 15:43:49 - Similar - Report/Block

how to bind rad menu from database using dataset or datatable in windows forms .i am unable to bind submenu in telerik radmenu winforms...

knockoutjs nested observable object and coffeescript classes

stackoverflow.com - 2012-05-06 22:24:01 - Similar - Report/Block

I have a player class and viewmodel class Player constructor: -> @boat = ko.observable null class Boat constructor: (@id) -> class ViewModel player: ko.observable in html <div data-bind="if: player"> <div data-bind="template: {name: 't_me', data: player}"></div> </div> <script type="text/html" id="t_m...

how can we assign an Observable collection through EF LINQ statements

stackoverflow.com - 2012-05-17 23:02:01 - Similar - Report/Block

Is it possible to assign a collection from a database entity to an ObservableCollection using entity framework? This is what iv tried so far I tried converting the list to an ObsrvableCollection using a constructor..but LINQ does not allow constructors which accept parameter. Creating an extension for Ienumerable called ToObservable colle...

Kendo UI data templates - How to create a master container and load templates into it?

stackoverflow.com - 2012-04-11 03:35:03 - Similar - Report/Block

I'm trying to keep this example super (stupid) simple just to make sure I get the concept concrete in my head. Let's assume that I have two kendo viewmodels like this: var usersViewModel = kendo.observable({ name: "Billy Bob", address: "123 Maple St", var postsViewModel = kendo.observable({ title: "Cool stuff", content: "Here is some...

Knockout : I want to bind data in groups

stackoverflow.com - 2013-03-23 07:46:09 - Similar - Report/Block

I am learning knockout and trying something as below. Data got display but what i want is data should bind in chunks like first 3 will get bind than next 3 and than next 3. How can I push people in the observable array in 'chunks'. Below is a sample code, in real I am binding of images and they are taking time, so that is what I want to b...

evolveStar Join

Get a part of an C# dataset and c opy it into another dataset

stackoverflow.com - 2012-06-18 17:21:24 - Similar - Report/Block

I have a dataset with one datatable. Now I want to set a filter on this table and copy the result to a dataset of the same type, so that I have a new dataset with only the result of the filtering. How can I do this? Does the following code work? ds.Tables[<table name>].DefaultView.RowFilter = "ProductId=5"; newDS = ds.copy();...

Knockout adding computed breaks observable array

stackoverflow.com - 2012-04-28 13:03:26 - Similar - Report/Block

Hi I am trying to use a computed value to make a filtered version of an observable array as per the example here http://knockoutjs.com/documentation/fn.h tml ( right at the bottom). For the html I have have <select width="50px" data-bind="options: $root.resources, optionsText: 'Name'"></select> <select width="50px" data-bin...

WPF binding Enum list (or similar) to list of checkboxes

stackoverflow.com - 2012-04-25 08:42:56 - Similar - Report/Block

I would like to bind a checkbox list to a collection of enum values in WPF. The enum is not [Flags]. Context: It is for filtering a datagrid, in which each item has a instance of my enum. It doesn't necessarily need to bind to an List, a fixed size collection of would work as well.

filter an observable collection

stackoverflow.com - 2012-03-08 11:09:54 - Similar - Report/Block

I have a ListView control that displays items from an observable collection. These items need to be filtered. I am able to do that with a CollectionViewSource , but the filter needs to be updated each time an item changes. My items looks like this: enum Status {Done, Failed, Skipped, ...} class Project { public string Name {get;set;}...

Cannot implicitly convert type 'System.Data.DataTable' to DataSets.General.StudentDataTable'

stackoverflow.com - 2013-02-08 12:47:09 - Similar - Report/Block

I have a dataset containing some datatables, now i want to fetch a datatable from db and add it to the existing datatable in dataset i am using below line return (DataSets.General.StudentDataTable) ds.Tables["DSDummy"]; But its giving me following error Cannot implicitly convert type 'System.Data.DataTable' to DataSets.General.StudentDa...

Setting default values for computed Observable Knockout.js

stackoverflow.com - 2013-03-14 23:29:12 - Similar - Report/Block

I am new to Knockout.js I have 3 fields in the UI . Product value. Quantity Total Everything works fine with the computed observable and could save the data.The total will be changed in the backend for some business reasons. While retrieving the data back,I need to show the total from the DB as initial value,but when the user chnages the...

nested quotes in haml

stackoverflow.com - 2012-03-23 16:17:29 - Similar - Report/Block

I'm trying to convert my knockoutJs html code to HAML, trying to achieve something after compilation like: <div data-bind="attr: { 'data-something': someValue }">...</div> So I try: %div{data:{bind:"attr: { 'data-something': someValue }"}} But I get: <div data-bind="attr: { "data-something': someValue }'>...</div>...

Pattern for modifying knockout observable on parent from child view model

stackoverflow.com - 2012-04-04 06:33:49 - Similar - Report/Block

I have a parent-child view model object structure set up and need to update an observable on the parent from the child. I've basically come up with two patterns for doing so: 1] Pass a reference of the parent property to the child and update the property from within the child: var ParentViewModel = function(){ var self = this; thi...

Access/Pass variable between windows form and DataSet TableAdapter SQL where clause

stackoverflow.com - 2012-02-24 16:53:53 - Similar - Report/Block

In Visual Studio 2010, I have a windows forms application frmMain.cs with a ComboBox. From the form itself I can access its value with cmbxYear.SelectedValue. I also have a DataSet.xsd file to bind to an rdlc report to a TableAdapter to present view data. The TableAdapter has a SelectCommand that takes SQL code. I need to get the value o...

knockout.js - data-bind auto update after function call

stackoverflow.com - 2012-05-19 16:23:10 - Similar - Report/Block

I have a case where I databind to a date field inside model in a list: function Model(data) { var self = this; ko.mapping.fromJS(data, {}, this); <div id="fieldOnPage" data-bind="text: formatDate(myDateField())"></div&g t; Then, in a modal, I display the same date field so it can be edited: <div id="fieldInModal" data-bind="t...

MyClass as @PathParam in Jersey resource method

stackoverflow.com - 2013-03-14 15:31:49 - Similar - Report/Block

In my Jersey resource i have: @GET @Path("/{dataType}/{dataSet}") public Response search( @PathParam("dataType") String dataType, @PathParam("dataSet") String dataSet){ ... Instead of strings i want to use my own classes: @GET @Path("/{dataType}/{dataSet}") public Response search( @PathParam("dataType") DataType dataType, @PathParam(...

Map JSON data to Knockout observableArray with specific view model type

stackoverflow.com - 2012-03-31 01:18:21 - Similar - Report/Block

Is there a way to map a JSON data object to an observable array and then in turn have each item of the observable array be initialized into a specific type of view model? I've looked at all of knockout's documentation along with the knockout and mapping examples here and I can't find any answer that works for what I'm after. So, I have th...

knockout.js, asp.net mvc4 - update simpel viewmodel with getJSON data

stackoverflow.com - 2012-09-14 21:52:02 - Similar - Report/Block

This is a newbie question and not to mention I am very new to knockout.js. All I am trying to do is, get details of a single Grower (Name, Company, Address) from the server and display it on the webpage. I am using $(document).bind('pageinit', function () since I'm using jQuery mobile. Now my code is: <h3><span data-bind="text:...

How to bind async?

stackoverflow.com - 2012-06-20 19:16:31 - Similar - Report/Block

I've tried the following with VS, g++ and Clang and couldn't make rhyme or reason of any of the errors spewed out. void foo() {} auto f = bind(async, foo); I suspect the errors may stem from the confusion on which async() to bind to, the one that takes a launch policy versus the one that doesn't... Or I have to explicitly give async() its...

Observable Hashset for Windows Phone

stackoverflow.com - 2012-05-05 16:32:47 - Similar - Report/Block

I am currently working on a windows phone project which required to use an Observable Hashset. I have found that there is some code on github that implement this by inherit IObservable and Hashset. But there is no hashset for windows phone. So I have found that there is someone guide for alternate implemention of hashset for windows phone...

How to partially bind the html elements using the knockout

stackoverflow.com - 2012-03-05 16:58:44 - Similar - Report/Block

<html> <head> <script language="javascript" src="knockout-2.0.0.js"></script&g t; <script language="javascript" src="knockout.mapping.js"></script > </head> <div id="divFilter"> Name <input type=text data-bind="value:NAME1"></input> ; <br> Address<...

Updating the database from dataset after altering it in c#

stackoverflow.com - 2012-05-09 10:16:31 - Similar - Report/Block

I trying to insert values to the dataset and i want the corresponding chages to be reflected in the database . I'm using this code: _MyDatabase_1DataSet obj = new _MyDatabase_1DataSet(); MyDatabase_1DataSetTableAdapters.t1Table Adapter mytable = new testingconnection._MyDatabase_1DataSetTa bleAdapters.t1TableAdapter(); mytable.Fill(obj.t1)...

Is it possible to cache computed observable in knockout?

stackoverflow.com - 2012-06-21 01:29:49 - Similar - Report/Block

I would like to cache the computed observable value for certain time (1-2 sec). Is it possible to do some thing similar using extenders?...

Dozer mapping for Hibernate object to DTO

stackoverflow.com - 2010-05-13 11:21:15 - Similar - Report/Block

I try to use Dozer to convert my domain entity to DTO objects. So, I want to convert PersistentList, PersistentBag, ... from my domain entity to ArrayList, ... in my DTO objects to avoid lazy problem. This is an example of two of my domain entity : public class User { private Collection roles; ... public class Role { private Collection...

how To Checked Chekbox From Dataset my code attached Asp.net?

stackoverflow.com - 2013-05-14 10:51:31 - Similar - Report/Block

i am trying to check checkbox from dataset as i ahve values in dataset are like, USERNAME Permissions Charles John Insert, View Tom View how would i check check box i tried it like View Insert Update Delete but permission has value either with comma how would we split it Hopes for your suggestion thanks...

Stored procedure as the dataset from EF

stackoverflow.com - 2012-06-02 11:02:57 - Similar - Report/Block

I am using Visual Studio 2010 and MS Reporting service. For reports I have used stored procedure from Entity Framework, but it will not give any dataset for the report..? Can anyone help me for this issue..? I have also created the complex type in the EF, there we can select it as a dataset but the columns are not visible..!!! thanks..!

building relative URLs for an MVC app with JavaScript

stackoverflow.com - 2012-03-16 23:09:46 - Similar - Report/Block

I'm having trouble getting C# and JavaScript/jQuery to play nice here. I have a knockout view model, plain old javascript object... one of its property/methods fires off an .ajax() call, and the url parameter is built using some of its other property values (javascript variables). This works fine when completely contained in JavaScript,...

Knockout dificult

stackoverflow.com - 2013-02-04 16:02:10 - Similar - Report/Block

I was trying to make an example using knockout. So that is not working I created a function that creates the object var makeproduto = function (id, nome, preco, quantidade) { this.Id = ko.observable(id); this.Nome = ko.observable(nome); this.Preco = ko.observable(preco); this.Quantidade = ko.observable(quantidade); this.ValorTotal =...

Commit New Items of ObservableCollection to save to Database

stackoverflow.com - 2012-04-10 10:29:11 - Similar - Report/Block

I'm using ObservableCollection to bind some data to some view While Im editing DB existing data, I can save data edits by calling only a single savechanges(); method in my view model,also new items add to collection and i can edit them, but the SaveChanges(); method doesn't insert additional rows to db. I Don't know what entities are pa...

Return a table from a User defined function

stackoverflow.com - 2013-04-12 09:11:49 - Similar - Report/Block

CREATE FUNCTION dbo.ta_OTMultiplierstest (@id int) RETURNS nvarchar (100) BEGIN DECLARE @text nvarchar(100) set @text = ( SELECT CONVERT(nvarchar(5), b.Duration), CONVERT(nvarchar(5),b.Mon), CONVERT(nvarchar(5), b.Tue), CONVERT(nvarchar(5), b.Wed), CONVERT(nvarchar(5), b.Thu), CONVERT(nvarchar(5), b.Fri), CONVERT(nvarchar(5), b.Sat), CON...

MemTableEh: не получается добавить поле - Delphi и базы данных

cyberforum.ru - 2012-10-23 05:27:43 - Similar - Report/Block

Доброго всем времени суток! Столкнулся с такой весьма глупой проблемой! Создал временную таблицу Добавил поля. Всё заполнил. Ну в общем все работает. Один минус, пытаюсь добавить ещё одно поле через встроенный редактор и ничего не получается. В общем добавление получается а вот его заполнение нет :( Вложение 193598 Его он не хочет заполня...

База данных - C# и базы данных, ADO.NET

cyberforum.ru - 2013-03-19 11:33:30 - Similar - Report/Block

Всем привет! Подключаюсь к базе данных в которой 2 таблицы. Нужно заполнить dataGrid1 и dataGrid2 значениями из таблиц table1 и table2 соответственно. Проблема в том что и в первую и во вторую dataGrid заносятся данные из обеих таблиц. Есть предложение сделать 2 dataset, но я подозреваю что есть более оптимальный вариант. Или я ошибаюсь?...

Отправить серверу строчку - C# .NET

cyberforum.ru - 2013-04-19 19:15:25 - Similar - Report/Block

Нужно отправить серверу строчку - 12 00 d4 02 38 36 38 32 30 34 30 30 31 37 38 32 36 30 35 0e 43 b6 Попытался сделать так: Код: NetworkStream stream = client.GetStream(); // Отправка сообщения byte[] str = new Byte[22]; str[0] = Convert.ToByte("12"); str[1] = Convert.ToByte("00"); str[2] = Convert.ToByte("d4"); str[3] = Convert.ToB...


Fill out the form you see below. Registration is free, fast and simple.
If you are already registered, sign in page login.

Web Site :
Required Field
First Name :
Required Field
Last Name :
Required Field
Email :
Required Field
Sex :
Required Field

evolveStar.com is free for ever !

evolveStar.com provides a search engine that allows you to gather information to write their own blog.

evolveStar.com enhances the sources displaying the logo of the site.

If you want to remove your site or you believe a site listed infringes copyright, please report it to: info@evolvestar.com

Specifies the subject copyright violation and the url of the page

evolveStar.com respecting the law DMCA (Digital Millennium Copyright Act) will immediately remove whatever its merits.

Next will be effectual and relevant checks.

Who We Are Partner Advertising Contacts Privacy terms Help & FAQ

© Copyright 2010-2017 Fabrizio Fichera. All rights reserved.