Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
148 views

Hi,
I am using toolTip in my Grid, and want to view benefitDetails in a ToolTip when I hold the mouse over a benefit.
A tooltip appear, but I cant see any details when I hold the mouse over a benefit.

Here is my code:
<telerik:RadToolTipManager ID="RadToolTipManager1" OffsetY="-1"
    runat="server" RelativeTo="Element"
    Position="MiddleRight" >
    <TargetControls>
        <telerik:ToolTipTargetControl TargetControlID="RadGrid1" Value="benefitDetails" />
    </TargetControls>
</telerik:RadToolTipManager>
<telerik:RadGrid AutoGenerateColumns="false" ID="RadGrid1" AllowFilteringByColumn="false"
    AllowSorting="false" ShowFooter="True" runat="server" GridLines="None" AllowPaging="false"
    Skin="Outlook" OnColumnCreated="RadGrid1_ColumnCreated" HeaderStyle-CssClass="RgGroupCol"
    OnItemDataBound="RadGrid1_ItemDataBound" OnItemCreated="RadGrid1_ItemCreated">
    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
    <HeaderStyle BackColor="#507CD1" ForeColor="white" Font-Size="XX-Small" />
    <FooterStyle BackColor="#D3E9BF" CssClass="reportFooter" />
    <GroupHeaderItemStyle Font-Bold="True" ForeColor="White" CssClass="dataHead" />
    <AlternatingItemStyle BackColor="transparent" />
    <MasterTableView ShowGroupFooter="True" AllowMultiColumnSorting="false" DataKeyNames="benefitsId">
        <Columns>
            <telerik:GridTemplateColumn>
                <ItemTemplate>
                   <asp:HyperLink ID="targetControl" runat="server" NavigateUrl="#" Text='<%# Eval("description") %>'></asp:HyperLink>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridBoundColumn DataField="basis" HeaderText="Basis" UniqueName="basis"
                HeaderStyle-CssClass="dataHead" DataFormatString="{0:#}">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn Aggregate="Sum" DataField="employerCost" HeaderText="EmployerCost"
                DataFormatString="{0:N0}" UniqueName="employerCost" FooterText="Sum: " HeaderStyle-CssClass="dataHead"
                ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="benefitDetails" UniqueName="benefitDetails" HeaderStyle-CssClass="dataHead"
                Visible="false">
            </telerik:GridBoundColumn>
        </Columns>
        <ItemStyle BackColor="#BFD5E9" />
        <GroupByExpressions>
            <telerik:GridGroupByExpression>
                <GroupByFields>
                    <telerik:GridGroupByField FieldName="category" FieldAlias="category" FormatString=""
                        HeaderText="" SortOrder="None" />
                </GroupByFields>
                <SelectFields>
                    <telerik:GridGroupByField FieldName="categoryDescription" HeaderText=" " FieldAlias="categoryDescription"
                        FormatString="" HeaderValueSeparator=" " />
                </SelectFields>
            </telerik:GridGroupByExpression>
        </GroupByExpressions>
        <RowIndicatorColumn>
            <HeaderStyle BackColor="#507CD1" Width="20px" />
        </RowIndicatorColumn>
        <ExpandCollapseColumn>
        </ExpandCollapseColumn>
    </MasterTableView>
</telerik:RadGrid>


Code behind:
        protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
        {
            if (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem)
            {
                Control target = e.Item.FindControl("targetControl");
                if (!Object.Equals(target, null))
                {
                    if (!Object.Equals(this.RadToolTipManager1, null))
                    {
                            this.RadToolTipManager1.TargetControls.Add(target.ClientID, (e.Item as GridDataItem).GetDataKeyValue("benefitsId").ToString(), true);

                    }
                }
            }
    }

Anyone can help me?

Thanks,
Thaya
Svetlina Anati
Telerik team
 answered on 09 Apr 2010
1 answer
145 views

Hi,

I m having some three asp:button in my page and i m using formdecorator to initialize skins to that buttons.

But formdecorator loading at all server side events. I want to set it once and i dont want to load it again & again.

And it take some 6 secs to set skin to that buttons after server side events.

Below is the formdecorator i have used,

 

<telerik:RadFormDecorator ID="FormDecorator1" runat="server" DecoratedControls="Buttons" >

 

</telerik:RadFormDecorator>

and below is the button in Hierarchygrid,

 

 

 <CommandItemTemplate> 
                            <input type="Button" runat="server" value="MoveDown" onclick="moveRowDown()">  
                              
                            <input type="Button" runat="server" value="MoveUp"  onclick="moveRowUp()">  
                                                  
                 </CommandItemTemplate> 
 

Please find the screenshots to get clear idea about the problem.
Give suggestions to solve it.

Regards,
Maha

Lini
Telerik team
 answered on 09 Apr 2010
2 answers
159 views
Hi,

I have on my page a RadGrid and an ASP Button. Default the Grid has a PageSize of 10. When I click the ASP Button, the Grid is exported to Excel using the default RadGrid export method. The properties I have set for Exporting are:
  • ExportOnlyData = true
  • IgnorePaging = true
  • OpenInNewWindow = true

When the button is clicked, the Grid is correctly (all rows) exported to Excel, but when I perform an action (after the export) on the Grid itself (sorting,paging,etc.) de AllowPaging property of the Grid is set to False and all rows in the Grid are shown on the Page.
When I set the AllowPaging property back to True, after the Export, still all rows in the Grid are shown on the Page.
Offcourse when I set the IgnorePaging property to False, this problem does not occur!

Can anybody help me with this problem?

Thanks,
Danny


P.s. I am using Telerik Controls versie 2009 Q2

Danny Scheelings
Top achievements
Rank 1
 answered on 09 Apr 2010
1 answer
87 views
Hello

I have a grid (Rad AJAX 2010 Q1 C# 3.5) that is in a content page (the masterpage provides the navigation control and general look of the page while the content page shows the grid-content itself).  I finally got my grid to cosmetically resize to fit the available space that the content page provides for it on 'all' browsers.  When I say resize to fit I mean that as the browser window is resized the grid resizes to fill the new amount of space provided to it. (a formidable challenge on its own)  

My new  quest is this:

with the grid resizing and occupying 100% of the available Height and Width, the number of data rows displayed in this grid remains constant leaving an empty area in the grid at the bottom where I'd like to display more rows.  I have read the forums looking for an example like this but haven't found any...  Can you provide me with an example of how to do this within a content page.  I am sure that other readers will be interested in an example such as this.

thanks in advance!
AJ
Dimo
Telerik team
 answered on 09 Apr 2010
1 answer
151 views
Is there any opportunity in the future to have RadAjaxPanel's container element be customizable?  If I could use a TBODY instead of a DIV it would be fantastic to support in-table update panels easily.
Dimo
Telerik team
 answered on 09 Apr 2010
3 answers
334 views
Hi,

I am using a GridDropDownColumn and in some cases it cannot match the selected item with the list because of the case sensitive search.
On the RadComboBox there is a field iscasesensitive, i do not see this setting on the GridDropDownColumn.
Is there another way to do this, perhaps by overruling the compare in some way?

Tom
Radoslav
Telerik team
 answered on 09 Apr 2010
9 answers
240 views
Hi

I have a site with thumbnail gallery already put together.  Now I'd like to add the standalone image dialog such that:  user clicks thumbnail, full size image opens in Advanced Editor.   I just want users to be able to zoom and rotate - no other browse, upload, delete etc is necessary.

Is this possible and if so can you point me in a general direction as far as what properties to set on the image dialog?

Thanks!
Mark
Rumen
Telerik team
 answered on 09 Apr 2010
2 answers
108 views
Hi,

I wanted to change the style of cell in month view if there is any all day appointment, i tried to search through the css file but i cant find any class that i can override like what i want.

Now i only manage to make all the weekdays in a month to change color where i edit the css code from here:
http://www.telerik.com/help/aspnet-ajax/how-to-change-style-of-today-cell-in-month-view.html

 div.RadScheduler_[skinName]  .rsMonthView
background-color: #CCFF00; 
}  

The code above will make all weekdays in a month change to the color i set, but i have no idea how to make it only change while there are any all day appointment for that day. Which class i should override in order to get the result i want?

Thanks in advance.

Regards,
Iry





Iry Lee
Top achievements
Rank 2
 answered on 09 Apr 2010
1 answer
108 views
I have a grid with two level of group.
Is there a built in function that expands everything and collapse everything?
Or do I have to loop through each row and expand one by one?

Thanks
Tsvetoslav
Telerik team
 answered on 09 Apr 2010
1 answer
170 views
This applies to BAR CHART.

am trying to find ways how or where do i configure. so that Y Axis will always show the  0 indicator whenever there is negative value. 

please refer to the attached screenshot on what am i trying to achieve here.

thanks a lot in advance.


Ves
Telerik team
 answered on 09 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?