Hello Telerik Team,
I would like to first thank you for a constant and high quality product.
I have a RadGrid that is grouped with custom fields, I am currently opening RadWindows from the ImageButton click events like so:
to open a RadWindow (depending on what button, as each button has its own windows via a RadWindow Manager) after passing a session variable via my session handler Geek.XTV7_Videos_ID from the SelectedValue. (this code is used to get the id and pass it to the session variable:
)
Then on RadWindowClose() there is a value written to the DataBase to reflect the hits, the window close method initiates the folowing code to refresh the grid and send update command to the DB:
videoselector.ascx.cs
videoselector.ascx
sorry for the long intro but I need to be sure that the environment is understood.
THE PROBLEM:
we need to be able to pass a variable to Geek.XTV7_Videos_ID on mouse over and refresh or instantiate an AJAX request on the panel shown in the attached image (without breaking existing methods and events).
How would I go about this?
Thank you very much in advance.
Trent
I would like to first thank you for a constant and high quality product.
I have a RadGrid that is grouped with custom fields, I am currently opening RadWindows from the ImageButton click events like so:
protected
void
Play_Click(
object
sender, ImageClickEventArgs e)
{
Geek.XTV7_Time_Start = DateTime.Now.ToString();
string
sql =
""
;
var dt =
new
DataTable();
sql +=
" Select ISNull( XTV7_VideoHits, 0) AS XTV7_VideoHits From Xtrain.XTV7_2_Videos WHERE (XTV7_Videos_ID="
+ Geek.XTV7_Videos_ID.ToString() +
")"
;
dt = data.GetDataTable(sql);
Geek.XTV7_VideoHits = (Int32.Parse(dt.Rows[0][
"XTV7_VideoHits"
].ToString()) + 1).ToString();
VidHit();
RadAjaxManager1.ResponseScripts.Add(
"radopen('Forms/View/VideoViewer.aspx','RadWindow1')"
);
}
to open a RadWindow (depending on what button, as each button has its own windows via a RadWindow Manager) after passing a session variable via my session handler Geek.XTV7_Videos_ID from the SelectedValue. (this code is used to get the id and pass it to the session variable:
protected
void
RadGrid_ItemCommand(
object
source, GridCommandEventArgs e)
{
if
((e.Item
is
GridDataItem) && (e.CommandName ==
"Select"
))
{
var item = (GridDataItem)e.Item;
string
gvDataKey = item.GetDataKeyValue(
"XTV7_Videos_ID"
).ToString();
Geek.XTV7_Videos_ID = gvDataKey;
}
}
)
Then on RadWindowClose() there is a value written to the DataBase to reflect the hits, the window close method initiates the folowing code to refresh the grid and send update command to the DB:
videoselector.ascx.cs
#region Ajax Manager Request
protected
void
RadAjaxManager1_AjaxRequest(
object
sender, AjaxRequestEventArgs e)
{
switch
(e.Argument)
{
case
"closed"
:
UpdateView();
RadGrid1.Rebind();
break
;
}
}
#endregion
videoselector.ascx
function
onClose() {
$find(
"<%= RadAjaxManager.GetCurrent(Page).ClientID %>"
).ajaxRequest(
"closed"
);
}
function
RowSelected(row) {
}
sorry for the long intro but I need to be sure that the environment is understood.
THE PROBLEM:
we need to be able to pass a variable to Geek.XTV7_Videos_ID on mouse over and refresh or instantiate an AJAX request on the panel shown in the attached image (without breaking existing methods and events).
How would I go about this?
Thank you very much in advance.
Trent