Nullable Parameters

  1. #1

    Nullable Parameters

    Is it possible to use nullable parameters ?

    I have

    	public void Test(int? testParameter)
    called as, {
    				commplete: Ext.emptyFn
    And I got the

    Newtonsoft.Json.JsonReaderException: Unexpected end when reading integer. Line 0, position 0. at Newtonsoft.Json.JsonTextReader.ReadAsInt32() at Newtonsoft.Json.Serialization.JsonSerializerIntern alReader.ReadForType(JsonReader reader, JsonContract contract, Boolean hasConverter, Boolean inArray) at Newtonsoft.Json.Serialization.JsonSerializerIntern alReader.Deserialize(JsonReader reader, Type objectType) at Newtonsoft.Json.JsonConvert.DeserializeObject(Stri ng value, Type type, JsonSerializerSettings settings) at Ext.Net.JSON.Deserialize(String value, Type type, List`1 converters, IContractResolver resolver) at Ext.Net.DirectMethod.Invoke(Object target, HttpContext context, ParameterCollection args) at Ext.Net.ResourceManager.RaisePostBackEvent(String eventArgument)
  2. #2

    Unfortunatelly, v1 doesn't allow it.
    We implemented it in Ext.Net v2 only
    Vladimir Shcheglov
    Sr. Developer

Similar Threads

  1. Nullable int fields showing as zeroes
    By daneel in forum Feature Requests
    Replies: 7
    Last Post: Mar 21, 2011, 7:49 PM
  2. nullable TextField with Vtype of email
    By javadzarrin in forum 1.x Help
    Replies: 1
    Last Post: Sep 06, 2010, 8:40 PM
  3. [CLOSED] Why ThreeStateBool instead Nullable<bool>?
    By pil0t in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 31, 2010, 3:38 PM
  4. [CLOSED] Nullable number field
    By Stefanaccio in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 02, 2010, 6:06 PM
  5. [CLOSED] Nullable (three state) checkbox
    By pil0t in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: May 25, 2010, 11:41 AM

Posting Permissions