This exemple working and the text "xxx items in yyy pages" is displayed
<
PagerStyle
AlwaysVisible
=
"True"
FirstPageToolTip
=
"Début"
LastPageToolTip
=
"Fin"
NextPagesToolTip
=
"Page suivante"
NextPageToolTip
=
"Page suivante"
PageSizeLabelText
=
"Taille de page:"
PrevPagesToolTip
=
"Page précédente"
PrevPageToolTip
=
"Page précédente"
ShowPagerText
=
"True"
Mode
=
"NextPrevAndNumeric"
/>
This pager not working. Test "xxx emails" is not displayed
<
PagerStyle
AlwaysVisible
=
"True"
FirstPageToolTip
=
"Début"
LastPageToolTip
=
"Fin"
NextPagesToolTip
=
"Page suivante"
NextPageToolTip
=
"Page suivante"
PageSizeLabelText
=
"Taille de page:"
PrevPagesToolTip
=
"Page précédente"
PrevPageToolTip
=
"Page précédente"
ShowPagerText
=
"True"
PagerTextFormat
=
"{1} emails"
Mode
=
"NextPrevAndNumeric"
/>
<
rad:RadGrid
...>
<MasterTableView ...>
<
Columns
>
<
rad:GridBoundColumn DataField="ID"
UniqueName
=
"ID" />
<!--...more columns...-->
<
rad:GridTemplateColumn
UniqueName
=
"Actions"
>
<
ItemTemplate
>
<
rad:RadToolBar
ID
=
"tbActions"
Orientation
=
"Horizontal"
runat
=
"server"
OnButtonClick
=
"tbActions_OnButtonClick"
>
<
Items
>
<
rad:RadToolBarButton
ImageUrl
=
"images/button1.png"
Value
=
"1"
/>
<
rad:RadToolBarButton
ImageUrl
=
"images/button2.png"
Value
=
"2"
/>
<
rad:RadToolBarButton
ImageUrl
=
"images/button3.png"
Value
=
"3"
/>
</
Items
>
</
rad:RadToolBar
>
</
ItemTemplate
>
</
rad:GridTemplateColumn
>
</
Columns
>
<
DetailTables
>
...
</
DetailTables
>
</
MasterTableView
>
</
rad:RadGrid
>
protected
void
tbActions_OnButtonClick(
object
sender, RadToolBarEventArgs e)
{
//How can I get a reference to the GridDataItem that contains the toolbar
//of the button that I just clicked?
//this is not working:
GridDataItem item = (GridDataItem)e.Item.ToolBar.Parent.Parent;
string id;
if
(e.Item.Value ==
"1"
)
{
id = item["ID"].Text;
//more code here, use ID for db update
}
else
if
(e.Item.Value ==
"2"
)
{
id = item["ID"].Text;
//more code here, use ID for db update
}
else
if
(e.Item.Value ==
"3"
)
{
id = item["ID"].Text;
//more code here, use ID for db update
}
}
Hi,
We have the following code in the aspx file to enable ajax page post back when clicked on a button or a check box is checked to fetch results for the grid based on the criteria given in the text box.
<
telerik:RadAjaxManagerProxy
ID
=
"RadAjaxManagerProxyCustomerPage"
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"btnSearch"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"CustomerGrid"
UpdatePanelHeight
=
""
LoadingPanelID
=
"RadAjaxLoadingPanelCustomer"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
<
telerik:AjaxSetting
AjaxControlID
=
"chkIncludeDeprecated"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"CustomerGrid"
UpdatePanelHeight
=
""
LoadingPanelID
=
"RadAjaxLoadingPanelCustomer"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManagerProxy
>
<
telerik:RadAjaxLoadingPanel
ID
=
"RadAjaxLoadingPanelCustomer"
runat
=
"server"
Skin
=
"Default"
InitialDelayTime
=
"200"
MinDisplayTime
=
"300"
>
</
telerik:RadAjaxLoadingPanel
>
In the above code, after the part
<
telerik:AjaxSetting
AjaxControlID
=
"btnSearch"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"CustomerGrid"
UpdatePanelHeight
=
""
LoadingPanelID
=
"RadAjaxLoadingPanelCustomer"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
was added, the submit button no longer appears as a submit button (<input type="submit"/>) but a normal button(<input type="button"/>) rendered to the page. As a result after the user enters a text in the search criteria and hits the enter key the page is not submitted, until the user clicks the button.
Can somone help what could we be missing in the code while we configured ajax action for the button, that it lost the submit behavour.
Thanks,
Manoj
Hi,
how can I rebind my detailtable on client-side? I initially bind it though the OnDetailTableDataBind event. After adding/editing/deleting a row in the detailtable i would like to show the updated data. I tried to call the rebind function for the mastertableview but it didn't worked. Also i tried to play around with the get_detailTables() function but i' not sure how to iterate through the collection and call the rebind function. Can you point me a solution of this problem?
TIA,
Rafal