﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - Adding null option to ValueList </title><link>http://www.intersoftsolutions.com/Community/WebGrid/adding-null-option-to-valueList/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Adding null option to ValueList </title><link>http://www.intersoftsolutions.com/Community/WebGrid/adding-null-option-to-valueList/</link><pubDate>Fri, 28 Jan 2011 04:40:29 GMT</pubDate><dc:creator>somer@optima.com.tr</dc:creator><category>webgird valuelist null</category><description>&lt;p&gt;Sample is attached; sample database is in data folder of compressed file. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Adding null option to ValueList </title><link>http://www.intersoftsolutions.com/Community/WebGrid/adding-null-option-to-valueList/</link><pubDate>Thu, 20 Jan 2011 02:01:33 GMT</pubDate><dc:creator>yudi</dc:creator><category>webgird valuelist null</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;Could you please kindly send us a working simple sample that reproduces the issue?&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Adding null option to ValueList </title><link>http://www.intersoftsolutions.com/Community/WebGrid/adding-null-option-to-valueList/</link><pubDate>Mon, 17 Jan 2011 01:53:22 GMT</pubDate><dc:creator>somer@optima.com.tr</dc:creator><category>webgird valuelist null</category><description>&lt;p&gt;Yudi,&lt;br /&gt;The problem is dropdown's original datasource has no null row, but i want to add it to dropdown list.&lt;br /&gt;&lt;strong&gt;Sample Scenerio is:&lt;/strong&gt;&lt;br /&gt;Webgrid's boundend datasource is a customer table where its country field is a &lt;strong&gt;nullable foreign key&lt;/strong&gt; field. So what i want is a country dropdownlist column which populates its data from country table. But also, as it is &lt;strong&gt;nullable&lt;/strong&gt; field, i have to supply a null option for that field. As you may agree, it is not an option to add a null row to country table. So i'm inserting a null object to returned collection at OnSelected event of LinqDataSource.&lt;br /&gt;In my opinion, as this scenerio is very generic, there must be a simple option for this in webgrid column.&lt;br /&gt;&lt;/p&gt;
</description></item><item><title>Adding null option to ValueList </title><link>http://www.intersoftsolutions.com/Community/WebGrid/adding-null-option-to-valueList/</link><pubDate>Mon, 17 Jan 2011 01:30:30 GMT</pubDate><dc:creator>yudi</dc:creator><category>webgird valuelist null</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;I tried to reproduce the problem in my local test by creating a simple sample of BatchUpdate-enabled WebGrid where one of its columns uses DropDownList as the edit type. The data source of the DropDownList is taken from a database where the first row is a null selection option. The only difference is that AccessDataSource control is used instead of LinqDataSource control. Everything worked smoothly and the null value can be saved without any issues.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;I’m willing to advice you further but in order to do so we would need you to elaborate on your specific scenario and possibly give us a running simple sample that reproduce the issue and a step-by-step guide that we can use to observe the problematic behavior.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Adding null option to ValueList </title><link>http://www.intersoftsolutions.com/Community/WebGrid/adding-null-option-to-valueList/</link><pubDate>Fri, 14 Jan 2011 05:28:05 GMT</pubDate><dc:creator>somer@optima.com.tr</dc:creator><category>webgird valuelist null</category><description>&lt;p&gt;I have a dropdownlist column which is bound to a foreign key column and  populates its data from another LinqDataSource.&lt;br /&gt;To add "null" selection option for that column, i'm inserting a null object to the first position of returned object list during &lt;strong&gt;LinqDataSource_OnSelected&lt;/strong&gt; event [ &lt;em&gt;((IList)e.Result).Insert(0, null); &lt;/em&gt;]. &lt;br /&gt;This seems fine for having "null" selection option for that column. But when posting update with batchupdate it is giving error, as batchupdate sending empty string instead of null for that column.&lt;br /&gt;How can i solve this?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>