Page.Master.Page.Form.DefaultButton = btnEnter.UniqueID;
I entered some text on policy id and click on enter button,it should bind mygrid which is in ajaxpanel.
when i click on enter button,it is firing the event..but it is unable to find the radgrid.
<telerik:RadAjaxPanel ID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1" runat="server">
//My Grid....
</telerik:RadAjaxPanel>
I have more than one textboxes and if i entered text on any one of the textbox and click on enter button,i shouldget the grid with the latest result..
i tried all forum thread solutions..
can u please provide new one..ASAP..
Thanks,
PANDU
<
telerik:RadToolTipManager runat="server" ID="RadToolTipManager1" RelativeTo="Element" Animation="None" OnAjaxUpdate="OnAjaxUpdate" AutoCloseDelay="2000" HideDelay="0" ShowCallout="false" Position="MiddleRight" ShowDelay="0" ContentScrolling="Auto" ShowEvent="OnMouseOver" Visible="true" Style="display: none;">
</telerik:RadToolTipManager>
<
telerik:RadGrid ID="RadGridMain" runat="server" AllowPaging="True" AutoGenerateColumns="False" OnItemEvent="RadGridMain_ItemEvent" OnNeedDataSource="RadGridMain_NeedDataSource" OnItemDataBound="RadGridMain_ItemDataBound">
<MasterTableView>
<RowIndicatorColumn Visible="False">
<HeaderStyle Width="20px" />
</RowIndicatorColumn>
<ExpandCollapseColumn Resizable="False" Visible="False">
<HeaderStyle Width="20px" />
</ExpandCollapseColumn>
<Columns>
<telerik:GridTemplateColumn UniqueName="Detail">
<ItemTemplate>
<sis:WebButton ID="WebButtonDetail" runat="server" ImageUrl="~/App_Themes/LBL/wbtnDetail_small.gif" IsSmallButton="true" UseCssHover="true" AutoTipKey="Detail" OnCommand="WebButtonDetail_OnCommand" CommandArgument='<%# Eval("StudentDBN") %>' />
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Photo" UniqueName="Photo">
<ItemTemplate>
<sis:WebButton ID="WebButtonCamera" runat="server" ImageUrl="~/App_Themes/LBL/wbtnCamera.gif" UseCssHover="true" />
</ItemTemplate>
</telerik:GridTemplateColumn>
C# Code :
protected
void Page_Load( object sender, EventArgs e ) {
if
( Page.IsPostBack == false ) {
this.RadToolTipManager1.TargetControls.Clear();
}
protected
void RadGridMain_ItemDataBound( object sender, GridItemEventArgs e ) {
if
( e.Item.ItemType == GridItemType.AlternatingItem || e.Item.ItemType == GridItemType.Item ) {
WebButton
photoBtn = e.Item.Cells[3].FindControlRecursive<WebButton>();
if
(photoBtn != null){
photoBtn.Visible = btnVisible;
if (btnVisible)
{
photoBtn.ID = sum.StudentDBN +
".jpg";
this.RadToolTipManager1.TargetControls.Add(photoBtn.ClientID, true);
} } }
protected
void OnAjaxUpdate( object sender, ToolTipUpdateEventArgs args ) {
int start = args.TargetControlID.LastIndexOf( "_" );
string im = args.TargetControlID.Substring( start + 1 );
Image image = new Image();
image.ImageUrl = im;
image.ImageUrl =
"Images/GetImage.ashx?s=" + im;
if ( image.Height.Value > 200 ) {
image.Height = 200;
}
args.UpdatePanel.ContentTemplateContainer.Controls.Add( image );
int index = args.TargetControlID.LastIndexOf( "_" );
string elementID = args.TargetControlID.Substring( index + 1 );
this.UpdateToolTip( elementID, args.UpdatePanel );
}
private void UpdateToolTip( string elementID, UpdatePanel panel ) {
Control ctrl = Page.LoadControl( "Controls/StudentPhotoPopup.ascx" );
panel.ContentTemplateContainer.Controls.Add( ctrl );
//
}
Thanks,
Brenda
Hello,
I'm testing the controls and I found that the RadComboBox, when the state is Disabled, in chrome with the skin of Windows7, the selected item is not visible.
I could indicate how this problem is solved.
Thank you,
Sorry for my English.
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
=
"server"
Skin
=
"Sitefinity"
onitemcommand
=
"RadGrid1_ItemCommand"
onitemdatabound
=
"RadGrid1_ItemDataBound1"
>
<
MasterTableView
AutoGenerateColumns
=
"false"
GridLines
=
"None"
>
<
Columns
>
<
telerik:GridButtonColumn
DataTextField
=
"firstname"
UniqueName
=
"col1"
ButtonType
=
"LinkButton"
CommandName
=
"detail"
></
telerik:GridButtonColumn
>
</
Columns
>
</
MasterTableView
>
<
HeaderContextMenu
EnableAutoScroll
=
"True"
>
</
HeaderContextMenu
>
</
telerik:RadGrid
>
Now I want to assign the command argument of GridButtonColumn
with id(pk) from my db table,
so that every row is corresponding to an id which I can access later withour shpwng on the grid view