Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
175 views
Good Day

We have two RadGrids in a RadTab/RadMultiPage control. In addition, there is a a RadAjaxManager on the page which is used in code behind to apply some settings to the grids.

The grids are in two separate user controls and the initial filtering only works for one grid - but it seems order matters here. For example, if I put the Issues grid, then the Risk grid on the Mulitpage and run the app, the Risk (the 2nd control added to the page) is initially filtered where as the Issues is left in its default state. In addition, if you try to manually filter the Issues (using a templated column + combobox), it throws an exception about the string not being trimmed. If you ignore this error the Issues grid filter.

Now if you put the Risks grid first then the Issues, the reverse happens, in the the Issues is filtered and the Risks are not. At first I thought that it had something to do with the Mulitpage control but after putting issues and risks in just plain divs, the same thing happened. All I can think of is that there is some ajax call that is overriding filtering on the first grid.

Since I can't attach zipped files here, I have included a solution to highlight the issue I am facing (~16megs) (http://www.mediafire.com/file/f0kdrt8qxubwb20/RadGridTest01.zip     using VS2008 and .NET 3.5 SP1 with ASP.Ajax v.2009.1.527.20 ) . I have two classes called Issues and Risks used to generate data similar to what we currently have in our project. Also I used the OnMasterTableCreated client event of each grid to call the javascript that is supposed to do the filtering.
The actual filtering works in each case individually, but not together.

I hope you can help me figure out what is going on here. Thanks.
Daniel
Telerik team
 answered on 10 Sep 2010
1 answer
108 views
when onmouseover the Label control "lblProductTitle",RadToolTipManager has been refreshed and RadTookTipManager content did not come out, RadTookTipManager control has been flashing

It is the masterpage code front please see the blod part:

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" UpdatePanelsRenderMode="Inline">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="Panel">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Panel" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
     </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"  Style="height: 100%;
        width: 100%;"  Skin="" Transparency="30">
        <div class="loading">
         <div style=" width:100%; height:50%;">
        </div>
            <asp:Image ID="Image1" runat="server" ImageUrl="~/images/loading5.gif" AlternateText="loading" />
            <asp:Label runat="server" Text="<%$Resources:Languages,loading%>" style=" font-family:Calibri;" />
        </div>
    </telerik:RadAjaxLoadingPanel>
    <fieldset style="width: 100%; height: 100%;">
        <asp:Panel ID="Panel" runat="server" style=" width:100%; height:100%;">
            <table style="height: 100%; width: 100%;" cellpadding="0" cellspacing="0">
                <tr>
                    <td style="height: 30px; vertical-align: bottom">
                        <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
                            <script type="text/javascript">
                                function showProductIntroduction() {
                                    var tooltipManager = $find("ctl00_RadToolTipManager1");
                                    if (tooltipManager) {
                                        var tooltip = tooltipManager.getToolTipByElement(document.getElementById("ctl00_lblProductTitle"));
                                        if (!tooltip) {
                                            tooltip = tooltipManager.createToolTip(document.getElementById("ctl00_lblProductTitle"));
                                            tooltip.show();
                                        }
                                    }
                                }
                            </script>
                        </telerik:RadCodeBlock>
                        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
                            <table width="100%" class="tableClass">
                                <tr>
                                    <td>
                                        <telerik:RadToolTipManager ID="RadToolTipManager1" OffsetX="15" Skin="Telerik" Position="MiddleRight"
                                            Height="260px" Width="220px" AutoCloseDelay="999999" RelativeTo="Element" runat="server"
                                            OnAjaxUpdate="RadToolTipManager1_AjaxUpdate">
                                        </telerik:RadToolTipManager>
                                        <asp:Label runat="server" ID="lblProductTitle" onmouseover="showProductIntroduction()"
                                            Text="<%$Resources:Languages,projectTitle %>" Style="color: #005EAD; font-family: Calibri;
                                            font-size: 43px;" />
                                    </td>
                                </tr>
                            </table>
                        </telerik:RadAjaxPanel>
                    </td>

this is my code behind:
 protected void RadToolTipManager1_AjaxUpdate(object sender, Telerik.Web.UI.ToolTipUpdateEventArgs e)
        {
            ProductDetails detials = (ProductDetails)this.LoadControl("ProductDetails.ascx");
            e.UpdatePanel.ContentTemplateContainer.Controls.Add(detials);
        }

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ProductDetails.ascx.cs"
    Inherits="TEXO.ProductDetails" %>
<table runat="server" id="ProductWrapper" class="inner" border="0" cellpadding="2"
    cellspacing="0">
    <tr>
        <td style="width: 200px; text-align: center;">
            <div class="title" style=" text-align:left;">
                <asp:Label ID="Label1" runat="server" Style="font-family: Calibri; font-size: 16px;"
                    Text="<%$Resources:Languages,productIntroduction %>" Width="210px"></asp:Label></div>
        </td>
    </tr>
</table>
Iana Tsolova
Telerik team
 answered on 10 Sep 2010
2 answers
169 views

Hi,

While browse our application in IE8, 
    1. The page is not rendering properly ( Please see the attachment  ie8issue_schedulerctl.jpg )
    2. Even some time it's giving script error. (Please see attachment scripterror_in_ie8.jpg)
    3. In Compatability view mode (IE8), some times it's working and some time it's not working. (Please see attachment  ie8_but_compatabilityview.jpg)

Thanks,
Team

Peter
Telerik team
 answered on 10 Sep 2010
2 answers
100 views
Hi,
I am using a confirmation dialogue from a radgrid to ask the user to confirm whether or not they want to delete the row.
This works great, but I need to change the default 'Information' icon that appears in the radwindow.
Could you explain how I do this?

Thanks in advance
Andrew
Top achievements
Rank 1
 answered on 10 Sep 2010
1 answer
129 views

I have a RadPanelBar that when clicked, loads the proper user control / file.  It basically looks for the text value of the item clicked and "If clickedText = "value" Then ---DO SOMETHING--- End If"

I have one tab labeled "All Products".  When clicked, I would like to load a RadWindow (aspx page).

I am using the below code to test.... *note that even changing the window.radopen command to something simple like alert('hello') works the same.

If e.PageView.ID = "All Products" Then
   
Dim myscript As String = "window.radopen("Details.aspx?AuthorID=22", null);"
Page.ClientScript.RegisterStartupScript(Me.GetType(), "MyScript", myscript, True
'Response.Redirect("test-try.asp", True) 
   
End If

When ran like such, nothing happens.  No error, no action. 

If I uncomment the Response.Redirect portion, it does redirect onClick of "All Products", so I know the action is triggering that sub.

If I add the following code to Page_Load, I am prompted with the rad window on load.

If Not Page.IsPostBack Then
   AddPageViewGrid("All Products")
End If

So it seems to work when called automatically onLoad, but not conditionally onClick.

Any ideas?

Thanks!

 

 

Shinu
Top achievements
Rank 2
 answered on 10 Sep 2010
1 answer
118 views
Hi,

While browse our application in IE8, 
    1. The page is not rendering properly ( Please see the attachment  ie8issue.jpg )
    2. Even some time it's giving script error. (Please see attachment scripterror_in_ie8.jpg)
    3. In Compatability view mode (IE8), some times it's working and some time it's not working. (Please see attachment  ie8_but_compatabilityview.jpg)

Thanks,
Team
Peter
Telerik team
 answered on 10 Sep 2010
1 answer
203 views

I can't seem to remove the gridlines from the Web20 skin even if Gridlines is set to none.  Is there another way to do this?

<telerik:RadGrid ID="rgTickets" runat="server" Skin="Web20" AutoGenerateColumns="false"
                                           Width="100%" AllowSorting="True" AllowMultiRowSelection="False" AllowPaging="True"
                                           GridLines="None" PageSize="25" OnNeedDataSource="rgTickets_NeedDataSource" OnDetailTableDataBind="rgTickets_DetailTableDataBind"
                                           OnItemDataBound="rgTickets_ItemDataBound" OnPreRender="rgTickets_PreRender" OnPageIndexChanged="rgTickets_PageIndexChanged"
                                           OnSortCommand="rgTickets_SortCommand">
                                           <MasterTableView DataKeyNames="TicketID" Name="rgMaster" AllowMultiColumnSorting="False" GridLines="None"
                                               Width="100%" HeaderStyle-BackColor="#7FA5D7" ItemStyle-BackColor="#E8F0FB" AlternatingItemStyle-BackColor="#E8F0FB">
                                               <DetailTables>
                                                   <telerik:GridTableView DataKeyNames="TicketID" runat="server" Name="rgDetail" Width="100%"
                                                       GridLines="None" ShowHeader="false" HeaderStyle-BackColor="White" ItemStyle-BackColor="White"
                                                       AlternatingItemStyle-BackColor="White">
                                                       <Columns>
                                                           <telerik:GridBoundColumn HeaderText="Description" DataField="Description" HeaderStyle-Width="50%">
                                                           </telerik:GridBoundColumn>
                                                           <telerik:GridBoundColumn HeaderText="Ticket Detail" DataField="TicketDetail" HeaderStyle-Width="50%">
                                                           </telerik:GridBoundColumn>
                                                           <telerik:GridBoundColumn DataField="TicketID" UniqueName="TicketID" Visible="false">
                                                           </telerik:GridBoundColumn>
                                                           <telerik:GridBoundColumn DataField="Type" UniqueName="Type" Visible="false">
                                                           </telerik:GridBoundColumn>
                                                       </Columns>
                                                   </telerik:GridTableView>
                                               </DetailTables>
                                               <Columns>
                                                   <telerik:GridBoundColumn DataField="TicketID" UniqueName="TicketID" Visible="false">
                                                   </telerik:GridBoundColumn>
                                                   <telerik:GridBoundColumn DataField="IsMSSP" UniqueName="IsMSSP" Visible="false">
                                                   </telerik:GridBoundColumn>
                                                   <telerik:GridBoundColumn DataField="CreatedDate" DataFormatString="{0:d}" UniqueName="CreatedDate"
                                                       Visible="false">
                                                   </telerik:GridBoundColumn>
                                                   <telerik:GridTemplateColumn>
                                                       <ItemTemplate>
                                                           <asp:HyperLink ID="hlBookit" runat="server" SkinID="HyperLink" ImageUrl="../Icons/Calendar.gif"
                                                               NavigateUrl='<%# "~/Scheduler/ClientActivity.aspx?TicketID=" + DataBinder.Eval(Container.DataItem, "TicketID") %>'
                                                               Target="_blank"></asp:HyperLink>
                                                       </ItemTemplate>
                                                   </telerik:GridTemplateColumn>
                                                   <telerik:GridHyperLinkColumn HeaderText="Ticket #" DataTextField="TicketNumber" DataNavigateUrlFormatString="~/Tickets/AddEditTickets.aspx?TicketID={0}"
                                                       DataNavigateUrlFields="TicketID" Target="Blank" SortExpression="TicketNumber">
                                                   </telerik:GridHyperLinkColumn>
                                                   <telerik:GridTemplateColumn HeaderText="Client<br>Location" SortExpression="ClientName">
                                                       <ItemTemplate>
                                                           <asp:Label ID="ClientName" Text='<%# DataBinder.Eval(Container.DataItem, "ClientName") %>'
                                                               runat="Server" />
                                                           <br />
                                                           <asp:Label ID="Location" Text='<%# DataBinder.Eval(Container.DataItem, "Location") %>'
                                                               runat="Server" /></ItemTemplate>
                                                   </telerik:GridTemplateColumn>
                                                   <telerik:GridTemplateColumn HeaderText="User Name<br>Phone" SortExpression="UserName">
                                                       <ItemTemplate>
                                                           <asp:Label ID="UserName" Text='<%# DataBinder.Eval(Container.DataItem, "UserName") %>'
                                                               runat="Server" />
                                                           <br />
                                                           <asp:Label ID="Phone" Text='<%# DataBinder.Eval(Container.DataItem, "UserPhone") %>'
                                                               runat="Server" /></ItemTemplate>
                                                   </telerik:GridTemplateColumn>
                                                   <telerik:GridTemplateColumn HeaderText="Asset Name<br>Item" SortExpression="AssetName">
                                                       <ItemTemplate>
                                                           <asp:Label ID="AssetName" Text='<%# DataBinder.Eval(Container.DataItem, "AssetName") %>'
                                                               runat="Server" />
                                                           <br />
                                                           <asp:Label ID="Item" Text='<%# DataBinder.Eval(Container.DataItem, "Item") %>' runat="Server" /></ItemTemplate>
                                                   </telerik:GridTemplateColumn>
                                                   <telerik:GridTemplateColumn HeaderText="Priority<br>Status" SortExpression="TicketPriority">
                                                       <ItemTemplate>
                                                           <asp:Label ID="lblPriorityGrid" Text='<%# DataBinder.Eval(Container.DataItem, "TicketPriority") %>'
                                                               runat="Server" />
                                                           <br />
                                                           <asp:Label ID="Status" Text='<%# DataBinder.Eval(Container.DataItem, "Status") %>'
                                                               runat="Server" /></ItemTemplate>
                                                   </telerik:GridTemplateColumn>
                                                   <telerik:GridTemplateColumn HeaderText="Ticket Type" SortExpression="TicketType">
                                                       <ItemTemplate>
                                                           <asp:Label ID="TicketType" Text='<%# DataBinder.Eval(Container.DataItem, "TicketType") %>'
                                                               Visible="true" runat="Server" />
                                                       </ItemTemplate>
                                                   </telerik:GridTemplateColumn>
                                                   <telerik:GridTemplateColumn HeaderText="Action<br>Age" SortExpression="ActionDate">
                                                       <ItemTemplate>
                                                           <asp:Label ID="ActionDate" Text='<%# DataBinder.Eval(Container.DataItem, "ActionDate","{0:d}") %>'
                                                               runat="Server" />
                                                           <br />
                                                           <asp:Label ID="Age" Text='<%# DataBinder.Eval(Container.DataItem, "Age") %>' Visible="true"
                                                               runat="Server" /></ItemTemplate>
                                                   </telerik:GridTemplateColumn>
                                                   <telerik:GridTemplateColumn HeaderText="Owner<br>Assigned" SortExpression="Owner">
                                                       <ItemTemplate>
                                                           <asp:Label ID="Owner" Text='<%# DataBinder.Eval(Container.DataItem, "Owner") %>'
                                                               runat="Server" />
                                                           <br />
                                                           <asp:Label ID="AssignedTo" Text='<%# DataBinder.Eval(Container.DataItem, "AssignedTo") %>'
                                                               Visible="true" runat="Server" /></ItemTemplate>
                                                   </telerik:GridTemplateColumn>
                                                   <telerik:GridTemplateColumn HeaderText="Ticket Status<br>Task Owner" SortExpression="TicketStatusType">
                                                       <ItemTemplate>
                                                           <asp:Label ID="TicketStatusType" Text='<%# DataBinder.Eval(Container.DataItem, "TicketStatusType") %>'
                                                               Visible="true" runat="Server" /><br />
                                                           <asp:Label ID="TaskOwner" Text='<%# DataBinder.Eval(Container.DataItem, "TaskOwner") %>'
                                                               runat="Server" />
                                                       </ItemTemplate>
                                                   </telerik:GridTemplateColumn>
                                                   <telerik:GridBoundColumn HeaderText="" DataField="StatusID" UniqueName="StatusID"
                                                       Visible="false">
                                                   </telerik:GridBoundColumn>
                                                   <telerik:GridBoundColumn HeaderText="" DataField="TicketTypeID" UniqueName="TicketTypeID"
                                                       Visible="false">
                                                   </telerik:GridBoundColumn>
                                                   <telerik:GridBoundColumn HeaderText="" DataField="IsVip" UniqueName="IsVip" Visible="false">
                                                   </telerik:GridBoundColumn>
                                                   <telerik:GridBoundColumn HeaderText="" DataField="RequestedByEmail" UniqueName="RequestedByEmail"
                                                       Visible="false">
                                                   </telerik:GridBoundColumn>
                                                   <telerik:GridBoundColumn HeaderText="" DataField="IsUnique" UniqueName="IsUnique"
                                                       Visible="false">
                                                   </telerik:GridBoundColumn>
                                                   <telerik:GridBoundColumn HeaderText="" DataField="MasterTicketID" UniqueName="MasterTicketID"
                                                       Visible="false">
                                                   </telerik:GridBoundColumn>
                                                   <telerik:GridBoundColumn HeaderText="" DataField="IsMasterTicket" UniqueName="IsMasterTicket"
                                                       Visible="false">
                                                   </telerik:GridBoundColumn>
                                                   <telerik:GridTemplateColumn HeaderText="CC's">
                                                       <ItemTemplate>
                                                           <asp:HyperLink ID="NewControl" runat="server" Visible="True" Text="Add CC" Target="_blank"
                                                               NavigateUrl='<%# "~/Tickets/AddEditTickets.aspx?tab=changeControl&ccid=-1&ticketid=" + DataBinder.Eval(Container.DataItem, "TicketID") %>'></asp:HyperLink>
                                                       </ItemTemplate>
                                                   </telerik:GridTemplateColumn>
                                               </Columns>
                                           </MasterTableView>
                                           <%-- <HeaderStyle Width="100px" />--%>
                                           <ClientSettings>
                                               <Scrolling AllowScroll="false" UseStaticHeaders="true" SaveScrollPosition="true"
                                                   ScrollHeight="100%"></Scrolling>
                                           </ClientSettings>
                                           <PagerStyle Position="TopAndBottom" />
                                       </telerik:RadGrid>

Pavlina
Telerik team
 answered on 10 Sep 2010
1 answer
84 views
Hi,
I have a RadGrid with items that I can drag and drop on a RadScheduler,
Each Item in the grid has its own color, which will be shown on the scheduler once added to it.
Is there a way to use the scheduler appointment color style and use them in the grid,
so the user will see what is the color of the item in the grid and in the scheduler?
Please advise,
Mickey
Iana Tsolova
Telerik team
 answered on 10 Sep 2010
5 answers
695 views
Hey Telerik Community,

I have what I hope is a quick question,

I am creating a group of custom controls for my project. I am working on a numeric text box that includes range validation, optional required field validation, and built in tool tips.

I have the tooltips and required field validation in and working, but the range validation is proving to be well, not so simple. I have done some research and all looks good for using integer values, but I have the same result whether I am using integer or double. When I trigger a validation failure in the debugger, the RadNumericTextBox reacts as expected, but the error message is not displayed.

<telerik:RadNumericTextBox ID="txtField" runat="server" Type="Number"
        NumberFormat-AllowRounding="false" NumberFormat-GroupSeparator=""
        AllowOutOfRangeAutoCorrect="false">
    </telerik:RadNumericTextBox>
    <asp:RequiredFieldValidator ID="rfvField" runat="server" ControlToValidate="txtField"
        Display="Dynamic">
    </asp:RequiredFieldValidator>
    <asp:RangeValidator ID="rgvField" runat="server" ControlToValidate="txtField"
        Display="Dynamic" Type="Double" ErrorMessage="error!" Text="*">
    </asp:RangeValidator>
    <telerik:RadToolTip ID="ttHelp" runat="server" AnimationDuration="300" ShowDelay="200"
        EnableShadow="true" HideDelay="1" RelativeTo="Element"
        TargetControlID="txtField" Animation="Slide" Position="BottomCenter" />

Any thoughts?
Dimo
Telerik team
 answered on 10 Sep 2010
1 answer
60 views
Is there a way to get a spline point to display on top of the base line instead of being hidden below?
Yavor
Telerik team
 answered on 10 Sep 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?