or
Hi every body
I'm currently working with control RadGrid, my module I have 4 RadGrid, one of them has hierarchy, and when I want to work with the last RadGrid Control, it does not work, because when I press a icon from a column that call a itemcommand event don't work it, don't make anything, i have the next code:
<
telerik:RadGrid
ID
=
"grdInvitacionPos"
runat
=
"server"
Skin
=
"Windows7"
AutoGenerateColumns
=
"False"
Width
=
"700px"
OnItemCommand
=
"grdInvitacionPos_ItemComm"
>
<
MasterTableView
>
<
Columns
>
<
telerik:GridTemplateColumn
>
<
ItemTemplate
>
<
asp:CheckBox
ID
=
"chkEnviar"
runat
=
"server"
CausesValidation
=
"false"
/>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridBoundColumn
DataField
=
"Compania"
HeaderStyle-HorizontalAlign
=
"Center"
HeaderText
=
"Compañia"
>
<
HeaderStyle
HorizontalAlign
=
"Center"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Nombre"
HeaderStyle-HorizontalAlign
=
"Center"
HeaderText
=
"Nombre"
>
<
HeaderStyle
HorizontalAlign
=
"Center"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"TipodeParticipante"
HeaderStyle-HorizontalAlign
=
"Center"
HeaderText
=
"Tipo de Participante"
>
<
HeaderStyle
HorizontalAlign
=
"Center"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridTemplateColumn
HeaderText
=
"Editar Correo"
>
<
ItemTemplate
>
<
asp:ImageButton
ID
=
"send"
runat
=
"server"
CommandName
=
"Enviar"
CausesValidation
=
"false"
ImageUrl
=
"~/images/DOER_IMAGES/delete.gif"
/>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
</
Columns
>
<
EditFormSettings
>
<
EditColumn
FilterControlAltText
=
"Filter EditCommandColumn column"
>
</
EditColumn
>
</
EditFormSettings
>
</
MasterTableView
>
<
FilterMenu
EnableImageSprites
=
"False"
>
</
FilterMenu
>
</
telerik:RadGrid
>
protected
void
grdInvitacionPos_ItemComm(
object
sender, GridCommandEventArgs e)
{
GlobalNotify.Text =
"item command"
;
GlobalNotify.Show();
}
I hope you can help me
Thak you for your attention
Good Day
Hi,
We need to hide the GroupExpandCollapse column for groping with RadGrid.
We tried following two ways -
1) Set AllowGroupExpandCollapse="false" in client setting.
2) Add ExpandCollapseColumn and set visible= "false"
But both are not working.
Please let us know how to hide the GroupExpandCollapse column for groping with RadGrid.
Regards,
Shirish
<
telerik:RadWindowManager
runat
=
"server"
ID
=
"RadWindowManager1"
EnableShadow
=
"true"
/>
<
telerik:RadScriptBlock
ID
=
"RadScriptBlock1"
runat
=
"server"
>
<
script
type
=
"text/javascript"
>
//![CDATA[
var myName = myMasterTable.get_selectedItems()[0].getDataKeyValue( 'Name' );
var myPrompt = "Are you sure you want to delete this program?\r\n\r\n";
alert( myPrompt + myName );
radconfirm(myPrompt + myName, ConfirmProgramDeleteCallBackFn, 330, 100, null, 'Delete Program?' );
.DefaultCustom.RadEditor
{
background-color
:
#ececec
;
}
/* reWrapper */
.DefaultCustom.reWrapper
{
border
:
solid
1px
#828282
;
}
.DefaultCustom.RadEditor .reContentCell
{
border
:
solid
1px
#828282
;
}
.DefaultCustom.reColorPicker,
.DefaultCustom.reInsertTable,
.DefaultCustom.reDropDownBody,
.DefaultCustom.reCustomLinks a:hover
{
border
:
solid
1px
#828282
;
}
<
ClientSettings
>
<
Selecting
AllowRowSelect
=
"True"
/>
<
Scrolling
AllowScroll
=
"True"
UseStaticHeaders
=
"True"
/>
<
ClientEvents
OnRowClick
=
"SelectShoppingList_RowClick"
/> <% This triggers an Ajax Call on Row Click %>
</
ClientSettings
>
<
MasterTableView
DataKeyNames
=
"Account_ID, List_ID"
ClientDataKeyNames
=
"Account_ID, List_ID"
>
<
Columns
>
<
telerik:GridButtonColumn
ButtonType
=
"ImageButton"
CommandName
=
"SelectList"
CommandArgument
=
"Account_ID, List_ID"
ImageUrl
=
"../Images/btSelectCharcoal.gif"
Visible
=
"false"
UniqueName
=
"SelectColumn"
>
</
telerik:GridButtonColumn
>
<
telerik:GridTemplateColumn
UniqueName
=
"TemplateColumn"
ItemStyle-Width
=
"400px"
>
<
ItemTemplate
>
<
asp:Label
ID
=
"lblTemplateName"
runat
=
"server"
CssClass
=
"slListName"
> <%# DataBinder.Eval(Container.DataItem, "List_Name")%></
asp:Label
><
br
/>
<
asp:Label
ID
=
"lblLastUpdated"
runat
=
"server"
CssClass
=
"slDetailLine"
> <%# DataBinder.Eval(Container.DataItem, "Detail_Line")%></
asp:Label
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridBoundColumn
UniqueName
=
"ItemsColumn"
DataField
=
"Item_Count_Display"
ItemStyle-Width
=
"80px"
ItemStyle-CssClass
=
"slItemCount"
>
</
telerik:GridBoundColumn
>
<
telerik:GridTemplateColumn
UniqueName
=
"CommandsColumn"
>
<
ItemTemplate
>
<
telerik:RadButton
ID
=
"btnRename"
runat
=
"server"
CommandName
=
"RenameList"
CommandArgument
=
"Account_ID, List_ID"
Text
=
"Rename"
UniqueName
=
"RenameColumn"
ButtonType
=
"LinkButton"
BorderWidth
=
"0"
Font-Underline
=
"true"
BackColor
=
"#063648"
ForeColor
=
"White"
>
</
telerik:RadButton
> <%OnClick on this button always triggers the Ajax Call which I do not want %>
<
br
/>
<
telerik:RadButton
ID
=
"btnDelete"
runat
=
"server"
CommandName
=
"DeleteList"
CommandArgument
=
"Account_ID, List_ID"
Text
=
"Delete"
UniqueName
=
"DeleteColumn"
ButtonType
=
"LinkButton"
BorderWidth
=
"0"
Font-Underline
=
"true"
BackColor
=
"#063648"
ForeColor
=
"White"
>
</
telerik:RadButton
><%OnClick on this button always triggers the Ajax Call which I do not want %>
<
telerik:RadButton
ID
=
"btnCancel"
runat
=
"server"
Width
=
"72"
Height
=
"31"
>
<
Image
ImageUrl
=
"../Images/btCancelCharcoal.gif"
/>
</
telerik:RadButton
><% This button does not trigger the AJAX call which is what i want%>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridButtonColumn
FilterControlAltText
=
"Filter DeleteCol column"
UniqueName
=
"DeleteCol"
ButtonType
=
"ImageButton"
CommandName
=
"DeleteItemFromShoppingList"
CommandArgument
=
"Account_ID,List_ID"
ConfirmText
=
"Are you sure you want to delete this item from the list ?"
ConfirmTitle
=
"Delete List"
ImageUrl
=
"..\Images\icoDeleteRedX.gif"
ItemStyle-HorizontalAlign
=
"Left"
> ><% Similarly This button does not trigger the AJAX call which is what i want%>
</
telerik:GridButtonColumn
>
</
Columns
>
</
MasterTableView
>