Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
138 views
Hi all,
I am new to the telerik suite of controls, and so far quite impressed after working with Ajax asp.net programming for a few years now (MS or Anthem mostly).
I am in design of a multiple active page internet customer portal (login/order creation/order status/product browser/profile..messages), hence requirement for a much better site style out of the box (I do not program CSS or JS or even muck about with HTML much) .
What I would normally do is design each 'active page' as a panel all in one .aspx, and switch the visibility on/off for each panel, but this site i'm estimating to be a little heavier in the amount of rendered html (+much more graphics)  in total for one page, and the code behind will get a bit messy for the amount of server side functions that will be required.
My basic reasoning for this 'style' is that i am normally low on graphics (intranet style business applications) and I like to give a 'no page refresh ever' scenario (i.e never real postbacks, always callbacks).
This time I think my approach is going to have to be different, so I wanted to gather a little opinion from you all of a basic approach that might be reasonable given my intense dislike of page refreshing, but keep my code base and user experience expectations intact.
Should I consider master/content style (can this be done without full page refresh between each content page switch?), or something else that I havn't thought of or seen yet?
Any help would be appreciated.
Thanks,
Kevin.

Remko
Top achievements
Rank 1
 answered on 02 Mar 2008
0 answers
155 views
I want to set benchmarks in a stacked bar charts for each indivisual bar. I want to paint the bar whose Y value is below benchmark with one color and the portion between benchmark and the bar's Y Value with another color. Similarly the bars whose YValue exceeds benchmark value I want to paint the portion of the bar upto the benchmark with one color and another portion which exceeds the benchmark with different color. How can I achive this functionality?
Amey
Top achievements
Rank 1
 asked on 01 Mar 2008
10 answers
1.0K+ views
I have an user control with a Grid and TooltipManager inside UpdatePanel. I add TargetControls on ItemDataBound of RadGrid and handle AjaxUpdate of the TooltipManager. TooltipManager works fine but before any Ajax Request to the Grid. Once I click "Refresh" command item (that fires RebindGrid) or on another external client-side AjaxRequest() call, I don't get the tooltip.

Here is the code

<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">  
    <ContentTemplate> 
        <radG:RadGrid ID="WorkItemsGrid" runat="server" AllowSorting="True"   
            AutoGenerateColumns="False" DataSourceID="WorkItemsObjectDataSource" EnableAJAX="True" EnableAJAXLoadingTemplate="True" LoadingTemplateTransparency="50" 
            GridLines="None" AllowMultiRowSelection="True" Width="100%" OnItemCommand="WorkItemsGrid_ItemCommand" OnItemDataBound="WorkItemsGrid_ItemDataBound">  
            <ClientSettings> 
                <Selecting AllowRowSelect="True" /> 
                <Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="200px" /> 
                <ClientEvents OnGridCreated="GridCreated" /> 
            </ClientSettings> 
            <MasterTableView DataSourceID="WorkItemsObjectDataSource" CommandItemDisplay="Top" DataKeyNames="RequestID" 
                NoMasterRecordsText="No Work Items available.">  
                <SortExpressions> 
                    <radG:GridSortExpression FieldName="SubmittedOn" SortOrder="ascending" /> 
                </SortExpressions> 
                <CommandItemStyle HorizontalAlign="Right" /> 
                <CommandItemTemplate> 
                    <asp:LinkButton ID="WorkItemsRefreshButton" runat="server" CommandName="RebindGrid"><img style="border:0px" alt="" src="~/Images/Refresh.gif" runat="server" /> Refresh </asp:LinkButton> 
                    <asp:LinkButton ID="ReleaseRequestButton" runat="server" CommandName="ReleaseRequest"><img style="border:0px" alt="" src="~/Images/cancel.gif" runat="server" />Release</asp:LinkButton>&nbsp;  
                </CommandItemTemplate> 
                <Columns> 
                    <radG:GridButtonColumn DataTextField="RequestID" HeaderText="ReqID" UniqueName="RequestID" CommandName="ProcessRequest" ButtonType="LinkButton">  
                        <ItemStyle Width="5%" /> 
                        <HeaderStyle Width="5%" /> 
                    </radG:GridButtonColumn> 
                    <radG:GridButtonColumn DataTextField="ClientName" HeaderText="Client Name" UniqueName="ClientName" CommandName="ProcessRequest" ButtonType="LinkButton"  > 
                        <ItemStyle Width="10%" /> 
                        <HeaderStyle Width="10%" /> 
                    </radG:GridButtonColumn> 
                    <radG:GridBoundColumn AllowFiltering="False" DataField="ReqAttorney" Groupable="False" 
                        HeaderText="Req Attorney" UniqueName="ReqAttorney">  
                        <ItemStyle Width="10%"  /> 
                        <HeaderStyle Width="10%" /> 
                    </radG:GridBoundColumn> 
                    <radG:GridBoundColumn DataField="Requestor" HeaderText="Requestor" ReadOnly="True" 
                        UniqueName="Requestor">  
                        <ItemStyle Width="10%"  /> 
                        <HeaderStyle Width="10%" /> 
                    </radG:GridBoundColumn> 
                    <radG:GridBoundColumn DataField="ReqOffice" HeaderText="Office" ReadOnly="True" UniqueName="ReqOffice">  
                        <ItemStyle Width="5%"  /> 
                        <HeaderStyle Width="5%" /> 
                    </radG:GridBoundColumn> 
                    <radG:GridBoundColumn DataField="ReqType" HeaderText="Request Type" UniqueName="ReqType">  
                        <ItemStyle Width="15%"  /> 
                        <HeaderStyle Width="15%" /> 
                    </radG:GridBoundColumn> 
                    <radG:GridBoundColumn DataField="ReqStatus" HeaderText="Status" UniqueName="ReqStatus">  
                        <ItemStyle Width="14%" /> 
                        <HeaderStyle Width="14%" /> 
                    </radG:GridBoundColumn> 
                    <radG:GridBoundColumn DataField="SubmittedOn" HeaderText="Submitted" ReadOnly="True" 
                        UniqueName="SubmittedOn" DataFormatString="{0:g}">  
                        <ItemStyle Width="14%"  /> 
                        <HeaderStyle Width="14%" /> 
                    </radG:GridBoundColumn> 
                    <radG:GridBoundColumn DataField="ClaimedOn" HeaderText="Claimed On" UniqueName="ClaimedOn"  DataFormatString="{0:g}">  
                        <ItemStyle Width="14%" /> 
                        <HeaderStyle Width="14%" /> 
                    </radG:GridBoundColumn> 
                    <radG:GridBoundColumn DataField="ClaimedBy" HeaderText="Claimed By" UniqueName="ClaimedBy" Visible="false">  
                        <ItemStyle Width="10%" /> 
                        <HeaderStyle Width="10%" /> 
                    </radG:GridBoundColumn> 
                    <radG:GridClientSelectColumn UniqueName="SelectRequest" > 
                        <ItemStyle Width="3%" /> 
                        <HeaderStyle Width="3%" /> 
                    </radG:GridClientSelectColumn> 
                </Columns> 
                <ExpandCollapseColumn Visible="False">  
                    <HeaderStyle Width="19px" /> 
                </ExpandCollapseColumn> 
                <RowIndicatorColumn Visible="False">  
                    <HeaderStyle Width="20px" /> 
                </RowIndicatorColumn> 
            </MasterTableView> 
        </radG:RadGrid> 
        <telerik:RadToolTipManager ID="AlertToolTipManager" runat="server" OnAjaxUpdate="AlertToolTipManager_OnAjaxUpdate" RelativeTo="Element" Height="100%" Skin="WebBlue" Animation="None" Position="MiddleRight" MouseTrailing="false" OffsetY="-20">  
        </telerik:RadToolTipManager> 
    </ContentTemplate> 
</asp:UpdatePanel> 

        protected void AlertToolTipManager_OnAjaxUpdate(object sender, ToolTipUpdateEventArgs args)  
        {  
            int index = args.TargetControlID.LastIndexOf("_");  
            string reqID = args.TargetControlID.Substring(index + 1);  
 
            Control ctrl = Page.LoadControl("~/Parts/AlertToolTip.ascx");  
            args.UpdatePanel.ContentTemplateContainer.Controls.Add(ctrl);  
 
            AlertToolTip alert = (AlertToolTip)ctrl;  
            alert.ReqID = int.Parse(reqID);  
        }  
              
        protected void WorkItemsGrid_ItemDataBound(object sender, GridItemEventArgs e)  
        {  
            if (e.Item.ItemType == GridItemType.AlternatingItem || e.Item.ItemType == GridItemType.Item)  
            {  
                DataRowView requestRowView = e.Item.DataItem as DataRowView;  
                if (requestRowView != null)  
                {  
                    int reqID = (int)requestRowView["RequestID"];  
                    GridDataItem gridItem = e.Item as GridDataItem;  
                    string controlID = "WorkReqAlert_" + reqID.ToString();  
                    gridItem["ReqStatus"].Text += GetHTMLCodeForAlert(controlID,reqID);  
                    ToolTipTargetControl target = new ToolTipTargetControl(controlID, true);  
                    AlertToolTipManager.TargetControls.Add(target);  
                }  
          }  
}  
 
        private string GetHTMLCodeForAlert(string controlID,int reqID)  
        {  
            string dataFormatString = "<img id='" + controlID + "' src='../Images/Email_Read.gif'>";  
            return dataFormatString;  
        }  
 

Thank you,
Mahesh
Tsvetie
Telerik team
 answered on 29 Feb 2008
6 answers
238 views

I just downloaded and implemented the recently released build of Prometheus.  The tooltip however does not seem to render properly (skin and position) in Firefox OR Safari.  It works fine in IE7.

Please go here for an example:
http://www.printrunner.com/business-cards.aspx

Mouse over the blue question marks on the right side of the screen.  A tooltip with the "Telerik" skin should appear.  Compare Firefox to IE7.

The tooltips are dynamically created using a loop with the following code for each tooltip:

            Dim ToolTip As New RadToolTip  
            ToolTip.IsClientID = True 
            ToolTip.TargetControlID = "question" & lstData.ID  
            ToolTip.Skin = "Telerik" 
            ToolTip.ShowEvent = ToolTipShowEvent.OnMouseOver  
            ToolTip.Text = sHTML 
            ToolTip.RelativeTo = ToolTipRelativeDisplay.Element  
            ToolTip.Position = ToolTipPosition.MiddleLeft  
            ToolTip.ManualClose = False 
            ToolTip.Width = 375 
            ToolTip.AutoCloseDelay = 60000 
            ToolTip.HideDelay = 500 
            ToolTip.ShowDelay = 0 
fightclub777
Top achievements
Rank 1
 answered on 29 Feb 2008
1 answer
93 views
Hello,

Using the last version 1425, when exporting to excel I get in my excel file columns that are marked as Display=false in may .aspx declaration. This only for child tables related to the master table.
For the master table, the display=false columns are now correctly not exported.
Seems a bug ?

Thanks for help.
CS
Rosen
Telerik team
 answered on 29 Feb 2008
1 answer
137 views
Hi,

we're experimenting with implicit localization of the grid from local resource files (generated by VS2008, with UICulture="auto" for the page) but that seems to break all the images in the grid - they no longer appear, regardless of the resource file in use. On the other hand, text labels are localized correctly.
The grid is set to use the built-in Vista skin (but we've reproduced the problem on a different machine using WebBlue).

As an example of resource key used, this is the one produced for "RadGrid1Resource1.MasterTableView.CommandItemSettings.AddNewRecordImageUrl" by Visual Studio:

mvwres://Telerik.Web.UI, Version=2007.3.1425.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4/Telerik.Web.UI.Skins.Vista.Grid.AddRecord.gif

Maybe I need to change something there?
Any help would be appreciated.

Rosen
Telerik team
 answered on 29 Feb 2008
1 answer
95 views
I have a RadTreeView control with  a RadTreeViewContextMenu control inside.  The server side callback for this menu should delete a node when the delete menu item is clicked.  I have tried both

selected.ParentNode.Nodes.Remove(selected);
and
selected.Remove();

inside of the OnContextMenuItemClick handler, but neither method removes the node on the client side.  Is there a correct way to remove nodes through a callback?

Thanks

Dimitar Milushev
Telerik team
 answered on 29 Feb 2008
1 answer
92 views
We are in the process of updating our RadEditors to use the new Prometheus version.  While testing, we found an issue with inserting hyperlinks using Safari (Mac & PC).  When you insert a link (whether you highlight text or not), it gets inserted at the beginning of all the content.  If there is a workaround, please let me know.  Otherwise, I'll keep my eye out for a fix.
Rumen
Telerik team
 answered on 29 Feb 2008
2 answers
81 views
The textbox seems to have a size of one and i cannot get it to widen or affect the style in any way.
The Dude
Top achievements
Rank 2
 answered on 29 Feb 2008
1 answer
135 views
I am using RadControls 'Prometheus' for ASPNET Q3 2007.  I have created marked zones on my rad bar chart to specify upper and lower limits for Y-axis values. I would like to know how can I add tooltip when user have his mouse pointer over those marked zones? Is there any direct property or I will have to go the ajax way? If yes how?
Ves
Telerik team
 answered on 29 Feb 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?