Skip to content

Commit

Permalink
Lib.Web.Mvc 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tpeczek committed Mar 26, 2011
1 parent 4bdfdb0 commit 60f9394
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
11 changes: 10 additions & 1 deletion Lib.Web.Mvc/JQuery/JqGrid/JqGridHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -678,8 +678,17 @@ private static void AppendNavigatorActionOptions(JqGridNavigatorActionOptions ac
if (actionOptions.MethodType.HasValue)
javaScriptBuilder.AppendFormat("mtype: '{0}',", actionOptions.MethodType.Value.ToString().ToUpper());

if (!String.IsNullOrWhiteSpace(actionOptions.OnAfterShowForm))
javaScriptBuilder.AppendFormat("afterShowForm: {0},", actionOptions.OnAfterShowForm);

if (!String.IsNullOrWhiteSpace(actionOptions.OnBeforeShowForm))
javaScriptBuilder.AppendFormat("beforeShowForm: {0},", actionOptions.OnBeforeShowForm);

if (!String.IsNullOrWhiteSpace(actionOptions.OnClose))
javaScriptBuilder.AppendFormat("onClose: '{0}',", actionOptions.OnClose);
javaScriptBuilder.AppendFormat("onClose: {0},", actionOptions.OnClose);

if (!String.IsNullOrWhiteSpace(actionOptions.OnInitializeForm))
javaScriptBuilder.AppendFormat("onInitializeForm: {0},", actionOptions.OnInitializeForm);

if (actionOptions.ReloadAfterSubmit.HasValue)
javaScriptBuilder.AppendFormat("reloadAfterSubmit: {0},", actionOptions.ReloadAfterSubmit.Value.ToString().ToLower());
Expand Down
15 changes: 15 additions & 0 deletions Lib.Web.Mvc/JQuery/JqGrid/JqGridNavigatorActionOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,26 @@ public class JqGridNavigatorActionOptions
/// </summary>
public JqGridMethodTypes? MethodType { get; set; }

/// <summary>
/// Gets or sets the name of the function for event which is raised after showing the form with the new data.
/// </summary>
public string OnAfterShowForm { get; set; }

/// <summary>
/// Gets or sets the name of the function for event which is raised before showing the form with the new data.
/// </summary>
public string OnBeforeShowForm { get; set; }

/// <summary>
/// Gets or sets the name of the function for event which is raised just before closing the form.
/// </summary>
public string OnClose { get; set; }

/// <summary>
/// Gets or sets the name of the function for event which is raised only once when creating the form for editing and adding.
/// </summary>
public string OnInitializeForm { get; set; }

/// <summary>
/// Gets or sets the value indicating if grid should be reloaded after submiting.
/// </summary>
Expand Down
4 changes: 2 additions & 2 deletions Lib.Web.Mvc/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.0.0.0")]
[assembly: AssemblyFileVersion("3.0.0.0")]
[assembly: AssemblyVersion("3.1.0.0")]
[assembly: AssemblyFileVersion("3.1.0.0")]

0 comments on commit 60f9394

Please sign in to comment.