Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
69 views
Hi Friends,

I have an requirement to display grid rows as columns which should be separated by slider control.

Is there any sample to solve this problem?

Appreciate for any answer.


Naresh.
Shinu
Top achievements
Rank 2
 answered on 02 Feb 2012
1 answer
139 views
Hi,

               I have default button in my webpage.

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


 

Marin
Telerik team
 answered on 02 Feb 2012
4 answers
145 views
I have a grid template column, which is an icon, and on mouseover should show the picture as a tooltip. It works fine with IE, but with FireFox, it sometimes shows the tooltip for top two rows, and for the rest it does not. The grid has paging, and when you come back to the first page, it does not show tooltips at all, for which it was showing before. Its the second column in the grid. I am attaching only that part of the code which deals with the RadToolTipManager

version : RadControls for ASP.NET AJAX Q1 2008


ASPX Code :

<

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

Aditya
Top achievements
Rank 1
 answered on 02 Feb 2012
5 answers
131 views
RadEditor for MOSS was working fine till yesterday and all of a sudden the control is disabled. We are not able to edit/add content. This is affecting all the site in the server. Any ideas why this is happening?

The control is grayed out and I am not able to click in the content area for the toolbar to show.
Rumen
Telerik team
 answered on 02 Feb 2012
1 answer
62 views

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.

Kate
Telerik team
 answered on 02 Feb 2012
1 answer
161 views
Hi,

I have a fieldset with legend text as an element on a nestedviewtemplate and I would like to be able to change the text dynamically from the codebehind. The usual methods don't seem to work -  I can't seem to cast an item as type legend so I'm unsure how to find the control. What is the best way of going about this?

Cheers,
Christian

Edit:

FWIW I have made my own workaround for this issue. I placed a label within the legend tags and then used casting and the FindControl method to locate and edit this element (this is the usual way). I would still be interested as to how one would access the legend element directly, however this is no longer a pressing issue. Thanks.
Daniel
Telerik team
 answered on 02 Feb 2012
1 answer
67 views
How to access the cell value from client side in a button click?
Princy
Top achievements
Rank 2
 answered on 02 Feb 2012
4 answers
685 views

<
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 
Jayesh Goyani
Top achievements
Rank 2
 answered on 02 Feb 2012
2 answers
103 views
Hi
I am very new to telerik
how can edit text which we inserted in image editor?
Can we apply image layering in rad image editor ?
how we can track inserted text for further editing ?
is there any way to do that?
Pradnya
Top achievements
Rank 1
 answered on 02 Feb 2012
1 answer
68 views
Hello,

I'm writing a page where the user can select multiple items in a grid and then press 'edit' to edit the items in a popup screen. If the items contain different values for one field I want the relevant control to be greyed out until they edit it and I need to be able to detect whether they have altered the value or not when they postback the page. Are there any telerik controls that can do this?

E.g. The user selects 5 students from a grid and clicks 'edit'. The edit window pops up. As all the students have different names, the text box for entering the name field is greyed out. If the user clicks on the text box it turns white and they can type in a value. When the page is submitted, if the user has not edited the field then all the students retain their old name but if the user has typed in the text box then all students will have their name changed to the same value.
Andrey
Telerik team
 answered on 02 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?