<
telerik:GridButtonColumn CommandName="print" Text="Print" UniqueName="Print" ButtonType="PushButton">
</telerik:GridButtonColumn>
and in event handling of the Command I want to do this:
void
RadGrid1_ItemCommand(object source, GridCommandEventArgs e)
{
if (e.CommandName == "print")
{
.
.
.
System.Diagnostics.Process.Start(Server.MapPath("App_data\\print.doc"));
}
Problem is that Word document won't open.
I put a test button on the same ASP page(outside of RadGrid) and handled Click event with calling to System.diagnostic.process.start as above. It works and opens Word document. So The question is: why RadGrid button cannot handle call to open word document?
Thank you in advance
protected void myRadgrid_ItemCommand(object sender, GridCommandEventArgs e)
{
switch (e.CommandName)
{
case "Edit":
this._edit = true; //bool value
break;
case "InitInsert":
this._edit = false;
this.rgTercero.EditIndexes.Clear();
break;
default:
break;
}
}
________________________________
With that code when i'm editing and i clicked "insert new item" it close the editing row and open the inserting row(that works fine). But my problem is that i couldn't find the property to do the same when i am adding a register and i try to edit a row (it most close the inserting row and open the editing one).
I hope that you can help me with this, it's really important
Thx a lot
Regards,
Daniel Peralta

| if (_244[j]._data.ColumnType == "GridClientSelectColumn") { |
| var _254 = cell.getElementsByTagName("input"); |
| if (_254.length > 0 && _254[0].type == "checkbox") { |
| if (_254[0].checked) { |
| _254[0].checked = false; |
| _248.set_selected(false); |
| } |
| } |
| } |

| ... |
| <span> |
| <telerik:RadComboBox ID="JMRadComboPersonGroupList" runat="server" AutoPostBack="true" ><%-- AutoPostBack="false" OnSelectedIndexChanged="JMRadComboPersonGroupList_SelectedIndexChanged" --%> |
| <ItemTemplate> |
| <asp:CheckBox runat="server" ID="CBPersonGroupList" OnCheckedChanged="CBPersonGroupList_OnCheckedChanged" onclick="stopPropagation(event);" AutoPostBack="true" /> <%# DataBinder.Eval(Container, "Text") %> |
| </ItemTemplate> |
| </telerik:RadComboBox> |
| </span> |
| ... |
| <span> |
| <telerik:RadComboBox ID="JMRadComboMonitoringList" runat="server" AutoPostBack="true"> |
| <ItemTemplate> |
| <asp:CheckBox runat="server" ID="CBMonitoringList" onclick="stopPropagation(event);" Text=""/> <%# DataBinder.Eval(Container, "Text") %> |
| </ItemTemplate> |
| </telerik:RadComboBox> |
| </span> |
| ..... |
| <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableAJAX="true"> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="JMRBChooseList"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="JMRadComboPersonGroupList" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| <telerik:AjaxSetting AjaxControlID="JMRadComboPersonGroupList"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="CBPersonGroupList" /> |
| <telerik:AjaxUpdatedControl ControlID="JMRadComboPersonGroupList" /> |
| <telerik:AjaxUpdatedControl ControlID="JMRadComboMonitoringList" /> |
| <telerik:AjaxUpdatedControl ControlID="CBMonitoringList" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| </telerik:RadAjaxManager> |
| ... |
Thanks