<
telerik:RadScriptManager
ID
=
"RadScriptManager1"
runat
=
"server"
></
telerik:RadScriptManager
>
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"pnlMaster"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"pnlMaster"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
<
telerik:RadGrid
ID
=
"grdCompanyList"
runat
=
"server"
GridLines
=
"None"
AutoGenerateColumns
=
"False"
AllowSorting
=
"True"
AllowFilteringByColumn
=
"True"
AllowPaging
=
"True"
EnableLinqExpressions
=
"False"
PageSize
=
"10"
OnNeedDataSource
=
"grdCompanyList_NeedDataSource"
OnItemDataBound
=
"grdCompanyList_ItemDataBound"
OnItemCommand
=
"grdCompanyList_ItemCommand"
>
<
PagerStyle
Mode
=
"NextPrevAndNumeric"
></
PagerStyle
>
<
MasterTableView
DataKeyNames
=
"watchlist_id"
CommandItemDisplay
=
"Top"
EditMode
=
"PopUp"
>
<
CommandItemSettings
ShowAddNewRecordButton
=
"false"
/>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"watchlist_id"
DataType
=
"System.Int32"
HeaderText
=
"watchlist_id"
ReadOnly
=
"True"
SortExpression
=
"watchlist_id"
UniqueName
=
"watchlist_id"
Visible
=
"false"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"company_id"
DataType
=
"System.Int32"
HeaderText
=
"company_id"
ReadOnly
=
"True"
SortExpression
=
"company_id"
UniqueName
=
"company_id"
Visible
=
"false"
>
</
telerik:GridBoundColumn
>
<
telerik:GridTemplateColumn
AllowFiltering
=
"false"
ItemStyle-Width
=
"180px"
>
<
ItemTemplate
>
<
asp:Image
width
=
"142"
height
=
"58"
ID
=
"CompLogos"
ImageUrl="<%# showCompLogo(Container.DataItem) %>"
runat="server" AlternateText="Logo" />
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridBoundColumn
DataField
=
"company_name"
HeaderText
=
"Company name"
SortExpression
=
"company_name"
ItemStyle-Width
=
"450"
UniqueName
=
"company_name"
ReadOnly
=
"true"
>
<
ItemStyle
Width
=
"450px"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridTemplateColumn
AllowFiltering
=
"false"
ItemStyle-Width
=
"150px"
HeaderText
=
"Actions"
>
<
ItemTemplate
>
<
div
>
<
span
style
=
"padding:0 5px"
>
<
asp:HyperLink
ID
=
"CoLink"
runat
=
"server"
ImageUrl
=
"~/images/viewicon_big.png"
ToolTip
=
"View Details"
></
asp:HyperLink
>
</
span
>
<
span
style
=
"padding:0 5px"
>
<
asp:ImageButton
runat
=
"server"
ID
=
"DelButton"
ImageUrl
=
"~/images/delete-32.png"
ToolTip
=
"Delete"
CausesValidation
=
"false"
CommandName
=
"Delete"
/>
</
span
>
</
div
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
</
Columns
>
</
MasterTableView
>
<
ClientSettings
EnableRowHoverStyle
=
"true"
></
ClientSettings
>
</
telerik:RadGrid
>
protected
void
grdCompanyList_ItemCommand(
object
sender, GridCommandEventArgs e)
{
if
(e.CommandName == RadGrid.DeleteCommandName)
{
GridDataItem item = (GridDataItem)e.Item;
string
iWatch = item[
"watchlist_id"
].Text;
Power50MiddleWare.BL.Watchlist oWatch =
new
Power50MiddleWare.BL.Watchlist();
oWatch._WatchlistId = Int32.Parse(iWatch);
try
{
int
retResult = oWatch.RemoveWatchlist();
if
(retResult == 1)
{
GenerateWatchlist();
pnlMsg.Visible =
true
;
lblMsg.Text =
"Successfully deleted your watchlist item"
;
}
else
{
pnlMsg.Visible =
true
;
lblMsg.Text =
"Sorry could not delete the item, please contact your system administrator"
;
}
}
catch
(System.Exception exp)
{
pnlMsg.Visible =
true
;
lblMsg.Text =
exp.Message.ToString() + exp.StackTrace;
}
}
<
telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"
Skin="Vista" IsSticky="true" BackgroundPosition="Center" Height="60px"
Width="70px" HorizontalAlign="Center">
</telerik:RadAjaxLoadingPanel>
<asp:ContentPlaceHolder ID="contentBody" runat="server">
--------------Here comes the pages---------------
</asp:ContentPlaceHolder>
Actually , when ajax workes, i see the image loading but it is positioned in top of the page, and also take place. I want it to be in the center of the ajaxed place, and to above the content, not instead place in the content.
Is it possible?
I have attached a picture of how my loadingPanel is seen when ajaxed.
Thanks,
gila
Hi
I’m trying to setup a terms & conditions box.
What mechanism/control can I use to display html T & C text (coming from a data field) on a web form such that when user scrolls to the bottom of the text using scroll bar then an event is fired to designate that user has read all the text?
Many Thanks
Regards
<
telerik:AjaxSetting
AjaxControlID
=
"RadGrid"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"RadGrid"
LoadingPanelID
=
"RadAjaxLoadingPanel1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>