Beispiel #1
0
 internal string GetEventData(string columnName, string RowId, Row row)
 {
     if (BeforeToolTipRender != null)
     {
         BeforeToolTipRenderEventHandlerArgs ea = new BeforeToolTipRenderEventHandlerArgs {
             EditIndex = RowId, ColumnName = columnName, Row = row
         };
         try
         {
             BeforeToolTipRender(this, ea);
             return(ea.ReturnData);
         }
         catch (Exception ee)
         {
             return(Grid.Debug
                        ? string.Format("Error in 'BeforeToolTipRender'  Column: {1}, RowId: {2}<br/><b>Error description</b><br/><br/>:{0}", ee,
                                        columnName, RowId)
                        : "Server-error loading. Use debug for more information.");
         }
     }
     return("null");
 }
Beispiel #2
0
        internal string GetEventData(string columnName, string RowId, Row row)
        {
            if (BeforeToolTipRender != null)
            {

                BeforeToolTipRenderEventHandlerArgs ea = new BeforeToolTipRenderEventHandlerArgs { EditIndex = RowId, ColumnName = columnName, Row = row };
                try
                {
                    BeforeToolTipRender(this, ea);
                    return ea.ReturnData;
                }
                catch (Exception ee)
                {
                    return Grid.Debug
                               ? string.Format("Error in 'BeforeToolTipRender'  Column: {1}, RowId: {2}<br/><b>Error description</b><br/><br/>:{0}", ee,
                                               columnName, RowId)
                               : "Server-error loading. Use debug for more information.";
                }
            }
            return "null";
        }
Beispiel #3
0
 static void mytest_BeforeToolTipRender(object sender, BeforeToolTipRenderEventHandlerArgs args)
 {
     args.ReturnData = string.Format("OrderID: {0}", args.Row["OrderId"].Value);
 }