Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
224 views
Hi, I have a radgrid with one template column with a icon. I need to add a tooltips that will display a picture.

In the ItemDataBound of the grid I update the column icon and set a tooltip and add this tooltip in the page with a panel. This part work good, the tooltip popup with the text "TEST". Now I when to use the OnAjaxUpdate of the radToolTipsManager to display a picture insted of the text. I cant fire this function. I think the link are not made between the tooltip and the tooltipsmanager. For example I set the skin Web20Orange in the Tooltipsmanager but the tooltip fired in the ragrid are with the default skin. Any idea?

VB
    Protected Sub RadGrid1_ItemDataBound(ByVal sender As ObjectByVal e As GridItemEventArgs)  
        If TypeOf e.Item Is GridDataItem Then 
            Dim Photo As System.Web.UI.WebControls.Image = CType(e.Item.FindControl("Photo"), System.Web.UI.WebControls.Image)  
 
 
 
            If DataBinder.Eval(e.Item.DataItem, "Photo") = True Then 
                Photo.ID = DataBinder.Eval(e.Item.DataItem, "ID")  
                Photo.ImageUrl = "/Images/Photo.gif" 
                Photo.ImageAlign = System.Web.UI.WebControls.ImageAlign.AbsMiddle  
                Photo.Style.Add("vertical-align""middle")  
                Photo.BorderWidth = Unit.Pixel(0)  
 
                Dim monTooltips As New RadToolTip  
                monTooltips.ID = Guid.NewGuid.ToString  
                monTooltips.TargetControlID = DataBinder.Eval(e.Item.DataItem, "ID")  
                monTooltips.RelativeTo = ToolTipRelativeDisplay.Element  
                monTooltips.Position = ToolTipPosition.MiddleRight  
                monTooltips.Text = "Test" 
                Panel1.Controls.Add(monTooltips)  
            Else 
                Photo.ImageUrl = "/Gestion/Images/16X16/Blank.gif" 
                Photo.AlternateText = "" 
                Photo.ImageAlign = System.Web.UI.WebControls.ImageAlign.AbsMiddle  
                Photo.Style.Add("vertical-align""middle")  
                Photo.BorderWidth = Unit.Pixel(0)  
            End If 
        End If 
    End Sub 
 
ASPX
    <div style="margin:10px 10px">  
        <asp:Panel ID="Panel1" runat="server">  
        </asp:Panel>      
      
        <telerik:RadToolTipManager ID="RadToolTipManager1" OnAjaxUpdate="OnAjaxUpdate" runat="server" Skin="Web20Orange" animation="Fade">  
        </telerik:RadToolTipManager>        
        <radG:RadGrid ID="RadGridMembre" runat="server" EnableAJAX="true" Width="400" ShowHeader="true" ShowFooter="false" AutoGenerateColumns="false"   
                Skin="Orange" AllowSorting="false" AllowPaging="true" ShowGroupPanel="false" 
                OnItemDataBound="RadGrid1_ItemDataBound" OnNeedDataSource="RadGrid1_NeedDataSource1">  
            <ClientSettings AllowColumnsReorder="false" EnablePostBackOnRowClick="false">  
                <Selecting AllowRowSelect="false"/>  
            </ClientSettings> 
            <PagerStyle CssClass="RadGridPager" Mode="NextPrevAndNumeric"></PagerStyle> 
            <MasterTableView AutoGenerateColumns="False" PageSize="30">  
                <GroupByExpressions> 
                    <radG:GridGroupByExpression> 
                        <SelectFields> 
                            <radG:GridGroupByField FieldAlias="Pupitre" FieldName="Pupitre"></radG:GridGroupByField> 
                        </SelectFields> 
                        <GroupByFields> 
                            <radG:GridGroupByField FieldName="Pupitre" SortOrder="Ascending"></radG:GridGroupByField> 
                        </GroupByFields> 
                    </radG:GridGroupByExpression> 
                </GroupByExpressions>              
                <Columns> 
                    <radG:GridBoundColumn DataField="ID"  Display="false" ReadOnly="True" DataType="System.String" HeaderText="Nom d'usager" 
                        SortExpression="ID" UniqueName="ID">  
                        <HeaderStyle /> 
                    </radG:GridBoundColumn>                  
                    <radG:GridTemplateColumn HeaderText="" uniquename="Photo" Groupable="False">  
                        <ItemTemplate>                            
                            <asp:Image ID="Photo" BorderWidth="0px" 
                                ImageUrl='<%# DataBinder.Eval(Container.DataItem, "ID") %>' runat="server">  
                            </asp:Image> 
                        </ItemTemplate> 
                    </radG:GridTemplateColumn>         
                    <radG:GridBoundColumn DataField="NomComplet" DataType="System.string" HeaderText="Nom" UniqueName="NomComplet">  
                    </radG:GridBoundColumn>                                       
                    <radG:GridBoundColumn DataField="Depuis" DataType="System.string" HeaderText="Membre depuis" DataFormatString="{0:d}" UniqueName="Depuis">  
                    </radG:GridBoundColumn>                                                           
                </Columns> 
            </MasterTableView> 
        </radG:RadGrid>       

Another thing: When I add tha OnAjaxUpdate, the page crash when the mouse hover the + - icone of the grid group. If I remve this OnAjaxUpdate from the tooltipsmanager line, the toolip of the + radgrid appear correctly (displaying "Collapse group")

Thanks
Pierre
Marin Bratanov
Telerik team
 answered on 09 Nov 2011
1 answer
57 views
hi,

i have used RadCalender.net2 control in my project.

the scenario is <xxx:RadDatepicker .../>(here xxx is usercontrol tag prefix name) is used in aspx page, and in that same page i have used <telerik:Radtimepicker  .../> .nw the timepicker is not working.. but if use <xxx:Radtimepicker .../> in that page means its working but the style is not applying its simply displaying thats it... wat can i do..
Princy
Top achievements
Rank 2
 answered on 09 Nov 2011
2 answers
133 views
I have multiple notifications that i can adding to a placeholder dynamically. Is it possible to make sure that these notifications show one above another and not on top or hiding one another? Similar to the demo here:

http://demos.telerik.com/aspnet-ajax/notification/examples/default/defaultcs.aspx

Any ideas?
Princy
Top achievements
Rank 2
 answered on 09 Nov 2011
2 answers
164 views
Hi I have a combox in the edit template of a column in a grid . I would like to intercept the selected value and add it to the existing column content , rather than replace it when Update button is clicked. Can you give me some pointers? Which grid event ? How to grab the existing value , and rebind it with the selected value? ( I'll add a comma separator) Thanks for help with this. I am going round in circles but not getting to the solution . Thanks Clive
Dimitar Terziev
Telerik team
 answered on 09 Nov 2011
7 answers
137 views

I have a simple radstrip, every time i click Reports tab, Provider tabe is enabled.

 


<
telerik:RadTabStrip ID="RadTabStrip1" runat="server" Skin="Windows7" MultiPageID="RadMultiPage1"

 

 

 

SelectedIndex="0" Align="Justify" Width="347px">

 

 

 

<Tabs>

 

 

 

<telerik:RadTab Text="Providers" NavigateUrl="Default.aspx" runat="server" >

 

 

 

</telerik:RadTab>

 

 

 

<telerik:RadTab Text="Reports" NavigateUrl="~/Report/Reports.aspx" runat="server">

 

 

 

</telerik:RadTab>

 

 

 

</Tabs>

 

 

 

</telerik:RadTabStrip>

Need help ASAP.

 

Dimitar Terziev
Telerik team
 answered on 09 Nov 2011
2 answers
80 views
Hi,

I have 2 Grids in the aspx page.

I am using Customized edit form (user control) for first Radgrid.

In the first grid we are using customized editform.  It has a link button. When the user clicks on  the link button , it  should bind the data to the second grid.

Is there any way can we achieve this.
Could some one plese help me regarding this.

Thanks
Usha
Jayesh Goyani
Top achievements
Rank 2
 answered on 09 Nov 2011
1 answer
103 views
I have the below grid....on page load its empty. Then binds the grid after an action is taken on the page....see js function below. The default page size (10) is not changing to account for the new page size (count) ... how do i fix this?

thanks in advance

 

<telerik:RadGrid runat="server" ID="rgSpecialtyType" AutoGenerateColumns="false" GridLines="None" style="border-width: 1px >

 

 

<HeaderStyle Font-Bold="true"  />

 

 

<ItemStyle Wrap="true" />

 

 

 

<MasterTableView CellPadding="4" CellSpacing="1">

 

 

<Columns>

 

 

<telerik:GridTemplateColumn >

 

 

<HeaderStyle CssClass="colTitle" Width="5%" Height="7%" />

 

 

<HeaderTemplate>

 

 

<asp:CheckBox ID="cbSelectAll" runat="server" onClick="checkAll(this);"></asp:CheckBox>

 

 

</HeaderTemplate>

 

 

<ItemTemplate>

 

 

 

<asp:CheckBox ID="chkBoxST" AutoPostBack="false" runat="server" ></asp:CheckBox>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridBoundColumn UniqueName="ST" DataField="ST" HeaderText=" Specialty Type"  >

 

 

</telerik:GridBoundColumn>

 

 

 

</Columns>

 

 

 

</MasterTableView>

 

 

<ClientSettings>

 

 

<ClientEvents OnCommand="function(){}" />

 

 

 

</ClientSettings>

 

 

</telerik:RadGrid>

Javascript function:

 

 

function PopulateGrid(results,count) {

 

 

 

 

 

var tableView = $find("<%= rgSpecialtyType.ClientID %>").get_masterTableView();

 

 

tableView.set_dataSource(results);
tableView.set_pageSize(count)  //the new page size in not taking in effect....
tableView.dataBind();

 

 

 

}

Shinu
Top achievements
Rank 2
 answered on 09 Nov 2011
1 answer
180 views
Hello,

My users have asked me if it's possible to filter a given column in a grid using boolean operators.  Using this demo as a example, they'd like to filter like this:

Show me all orders where the shipcountry starts with "fr" or "ge".

Is there a syntax for this when using basic/simple filtering on a RadGrid?  I don't want to use a RadFilter because it has not faired well in usability tests with this group of users.  I've tried the options listed below but they don't seem to accomplish what I'm looking for:

fr or ge
fr || ge

Can anyone tell me if this functionality is baked into the RadGrid basic filtering?

Thank you,
Andrew

Princy
Top achievements
Rank 2
 answered on 09 Nov 2011
2 answers
212 views
Hi friends,

i am using RadScheduler in our application.
As our clients requirement we have to display only arrow keys(left and right arrows) in scheduler with out today link and calender (i.e down arrow) in Navigation bar.
so how can i change this one as per clients requirement
i have changed today link using
<style type="text/css">
    .rsToday
    {
        display: none !important;
    }

</style>
how can i change calender arrow
i.e down arrow

Thanks
Anwar
Anwar
Top achievements
Rank 2
 answered on 09 Nov 2011
6 answers
165 views
Hi everybody,

Microsoft Dynamics AX2009 supports ASP.NET development on its Enterprise Portal framework, which runs on SharePoint. In theory, it should be possible to use the Telerik user controls on this platform. However, all attempts to accomplishing this are resulting in the same error below. The Enterprise Portal uses a 'Dynamics AX User Control Web Part' to host the user control.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
System.Web.HttpException: Please, see whether wrapping the code block, generating the exception, within RadCodeBlock resolves the error. ---> System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
   at System.Web.UI.ControlCollection.Add(Control child)
   at Telerik.Web.SkinRegistrar.RegisterCssReference(Page _page, Control _control, String _url)
   --- End of inner exception stack trace ---
   at Telerik.Web.SkinRegistrar.RegisterCssReference(Page _page, Control _control, String _url)
   at Telerik.Web.SkinRegistrar.RegisterCssReferences(ISkinnableControl _control)
   at Telerik.Web.UI.RadWebControl.RegisterCssReferences()
   at Telerik.Web.UI.RadWebControl.ControlPreRender()
   at Telerik.Web.UI.RadInputControl.ControlPreRender()
   at Telerik.Web.UI.RadWebControl.OnPreRender(EventArgs e)
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.WebControls.WebParts.WebPart.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------

Has aynone been succesfull in using Telerik components on AX2009 Enterprise Portal? If so, did you encounter this error and how did you solve it?

My sincere thanks in advance!

With regards,
Hendrik Pasmans
Evgeny Bestfator
Top achievements
Rank 1
 answered on 09 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?