public virtual void UpdateSelection()
{
if (this.SelectedRows.Count == 0)
{
this.Call("clearSelections");
}
else
{
bool comma = false;
StringBuilder temp = new StringBuilder();
temp.Append("[");
foreach (SelectedRow row in this.SelectedRows)
{
if (comma)
{
temp.Append(",");
}
temp.Append(new ClientConfig().Serialize(row));
comma = true;
}
temp.Append("]");
this.Set("selectedData", new JRawValue(temp.ToString()));
this.Call("doSelection");
}
}
}