Ejemplo n.º 1
0
        protected void RadGridPublicationChannels_BatchEditCommand(object sender, Telerik.Web.UI.GridBatchEditingEventArgs e)
        {
            GridTableView masterTable = (sender as RadGrid).MasterTableView;
            GridDataItem  dataItems   = masterTable.Items[2];


            TableCell cell = dataItems["Use"];


            //RadDropDownList triggerEditor = masterTable.GetBatchColumnEditor("TriggerIDDropDown") as RadDropDownList;
            // int n = triggerEditor.SelectedIndex;
            foreach (GridBatchEditingCommand command in e.Commands)
            {
                GridDataItem itm       = command.Item;
                Hashtable    newValues = command.NewValues;
                Hashtable    oldValues = command.OldValues;

                /*  foreach (string key in command.NewValues.Keys)
                 * {
                 *    if (newValues[key] != oldValues[key]) //You may want to implement stronger difference checks here, or a check for the command name (e.g., when inserting there is little point in looking up old values
                 *    {
                 *        string output = String.Format("column: {0} with new value {1}<br />", key, command.NewValues[key]);
                 *        Response.Write(output);
                 *    }
                 * }*/
                //a simple way of getting the value of a column whose name you know
                string channelName     = newValues["ChannelName"].ToString();
                string newUse          = newValues["Use"].ToString();
                string newTrigger      = newValues["_Trigger"].ToString();
                string pubDateMoveDays = newValues["PubDateMoveDays"].ToString();
                string releaseDelay    = newValues["ReleaseDelay"].ToString();
            }
        }
 protected void RadGrid1_BatchEditCommand(object sender, Telerik.Web.UI.GridBatchEditingEventArgs e)
 {
     //SavedChangesList.Visible = true;
     var id = e.Commands.Select(x => x.NewValues["id_Modulo"]);
 }
Ejemplo n.º 3
0
 protected void RadGrid1_BatchEditCommand(object sender, Telerik.Web.UI.GridBatchEditingEventArgs e)
 {
 }