Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
126 views
Hi,
  I have a grid in which I wanted to have a tooltip with some text and a picture shown to the bottom of the row when the row is clicked. I tried to get the row element from client side javascript as follows:
            function rowClicked(sender, args) {
                var plu = args.getDataKeyValue("PLUCODE")
                var pline = args.getDataKeyValue("PLINE")
                var masterTable = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
                var id = args.get_gridDataItem().get_element().id;
                masterTable.fireCommand("ShowDetail", plu + "|" + pline+"|"+id);
}
this row element id was something like"RadGrid1_ctl00__1" and was passed to the server side and then the tooltip TargetControlID got set as following:
protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
{
    if (e.CommandName == "ShowDetail")
    {
        string[] s = e.CommandArgument.ToString().Split('|');
        CurrentItemCode = s[0];
        this.ilvRadToolTip.TargetControlID = s[2];   // "RadGrid1_ctl00__1";
        this.ilvRadToolTip.Show();
        LoadUserControl(PlaceHolder, CurrentControl, s[0], s[1]);
    }
}
the tooltip was shown at the right position but the picture inside tooltip was missing. I tried to setTargetControlID = RadGrid1.CientID and the tooltip was shown correctly and of course the position was according to the whole grid.
Is there any manipulation inside that caused this to happen ? Would there be any solution as to meet my requirement?
I would appreciate it very much if you could provide some advice. Thank you.
TIGER
Top achievements
Rank 1
 answered on 09 Nov 2011
1 answer
166 views
I'm trying to do something similar to what is demonstrated here and am really stuck on a problem I am currently having and hoping someone can help.  Basically, in the ObjectDataSource1_Selecting method I am checking the FilterExpression (with linq expressions set to false) and the expression is missing the UniqueName of the column that I am passing to the javascript filter() function.  It looks like: "([] = 'Critical')". when I select "Critical" from the radcombo.

I've looked over it a bunch and am having trouble finding something configured wrong, here is the relevant code:

<telerik:GridTemplateColumn  DataType="System.String"
                    FilterControlAltText="Filter Urgency column" HeaderText="Urgency"  AllowFiltering="true"
                    SortExpression="Urgency" UniqueName="Urgency" Visible="true">
                    <FilterTemplate>
                            <telerik:RadComboBox ID="comboUrgencyFilter" DataSourceID="UrgencyTypeDataSource" DataTextField="Name"
                                DataValueField="Name" AppendDataBoundItems="true" SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("Urgency").CurrentFilterValue %>'
                                runat="server" OnClientSelectedIndexChanged="UrgencyIndexChanged" Width="90px">
                                <Items>
                                    <telerik:RadComboBoxItem Text="All" />
                                </Items>
                            </telerik:RadComboBox>
                            <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
 
                                <script type="text/javascript">
                                    function UrgencyIndexChanged(sender, args) {
                                        var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
                                        tableView.filter("Urgency", args.get_item().get_value(), 5);
                                    }
                                </script>
 
                            </telerik:RadScriptBlock>
                        </FilterTemplate>
                    <ItemTemplate>
                            <%# Eval( "UrgencyType.Name") %>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>

Thanks for any help
Brian
Top achievements
Rank 1
 answered on 08 Nov 2011
0 answers
92 views
Hello all!  

I have scanned the  Telerik forums and 'Net for an answer to this question, but have been so for unable.  So, please forgive me if this question has already been addressed.  :)

Our client is currently using an older version of the Telerik controls  (Telerik.Web.UI.dll : Runtime Version: 2.0.50727

Version: 2010.1.309.35).  

I am trying to do two things:

1) Configure the timeline in Day View so that there are more labels than just hourly.  Right now our timeline is showing 12am, 1am, 2am, etc - but we wish to, for instance, have labels every 15 minutes OR have tick-marks (if such a thing is possible) between labels.

2) Configure the Day View so Appointment do not snap to the nearest half-hour.  We are tracking events that occur pretty much anytime of day  - not just at the nearest half hour - and they have a need to have that level of granularity show.

So, once again, sorry if this is a repeat.  Any help would be great.  We certainly do enjoy using these controls and Telerik does a marvelous job of packing functionality into them - just not sure where to find this particular functionality.

Thanks!

-Greg D - Yahara Software, Ltd, Madison, WI

Gregory
Top achievements
Rank 1
 asked on 08 Nov 2011
4 answers
130 views
Hello-
We are implementing a media gallery and are using 2 Rad Rotators on the page, one of 4 images, small thumbnails, and one below of just 1 large image, which will show the details when the user clicks on the image on the top.

We are using the load on demand web service for both rotators, as some of the albums have 100's of images. Everything works fine on the top rotator, clicking next loads the next 10 images from the webservice, etc.

The problem is when the user pages through the small rotator to items 11-20, and clicks on one of the images. The large rotator at this point only has 10 items in it, so using javascript to call set_itemIndex does nothing. Is there a way we can programatically (through javascript ideally) call the webservice to load the next set of items in the bottom rotator?

Thanks

Eric
Eric
Top achievements
Rank 1
 answered on 08 Nov 2011
8 answers
231 views
Hi,

when we try to let a link in an image map open in a new window, this setting won't save. Links in image maps always open in the same window (RadE 4.5.3.0).

Is this a known bug? Any fix for that?

Regards,

Robert
Sebastien
Top achievements
Rank 1
 answered on 08 Nov 2011
1 answer
120 views
using:

<HeaderStyle VerticalAlign="Bottom" Wrap="True" BackColor="Blue" />

the back color will not change.

 

<telerik:RadGrid AutoGenerateColumns="false" ID="grdPendingClaims" AllowSorting="True"
    GridLines="Both" OnSortCommand="grdPendingClaims_SortCommand" OnNeedDataSource="grdPendingClaims_NeedDataSource"
    Height="200px" Width="9in" runat="server" CellSpacing="0">
    <HeaderStyle VerticalAlign="Bottom" Wrap="True" BackColor="Blue" />
     <ClientSettings>
        <Scrolling AllowScroll="True" UseStaticHeaders="true" SaveScrollPosition="True" >
        </Scrolling>
    </ClientSettings>
    <ItemStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="25px" />
    <ExportSettings ExportOnlyData="true" IgnorePaging="true" OpenInNewWindow="true" />
    <MasterTableView TableLayout="Auto" Width="100%" AllowNaturalSort="false" GridLines="Both" >
        <Columns>
            <telerik:GridBoundColumn HeaderText="Status" DataField="CurrentStatus" UniqueName="CurrentStatus"
                SortExpression="CurrentStatus"
                ShowSortIcon="False" ShowFilterIcon="False" ReadOnly="True" AllowFiltering="False">     
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="ClaimID" DataField="ClaimID" UniqueName="ClaimID"
                SortExpression="ClaimID" Visible="False" ShowSortIcon="False"
                ShowFilterIcon="False" ReadOnly="True" AllowFiltering="False">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Claim Number" DataField="ClaimNumber" UniqueName="ClaimNumber"
                SortExpression="ClaimNumber"
                ShowSortIcon="False" ShowFilterIcon="False" ReadOnly="True" AllowFiltering="False">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="MemberID" DataField="MemberID" UniqueName="MemberID"
                SortExpression="MemberID" Visible="False"
                ShowSortIcon="False" ShowFilterIcon="False" ReadOnly="True" AllowFiltering="False">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Member Name" DataField="Member Name" UniqueName="Member Name"
                SortExpression="Member Name" ItemStyle-Wrap="False"
                ShowSortIcon="False" ShowFilterIcon="False" ReadOnly="True" AllowFiltering="False">
                <ItemStyle Wrap="False" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Start Date" DataField="BeginDate" UniqueName="BeginDate"
                SortExpression="BeginDate" DataType="System.DateTime"
                ItemStyle-Wrap="False" DataFormatString="{0:MM/dd/yyyy}" ShowSortIcon="False"
                ShowFilterIcon="False" ReadOnly="True" AllowFiltering="False">
                <ItemStyle Wrap="False" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="End Date" DataField="EndDate" UniqueName="EndDate"
                SortExpression="EndDate" DataType="System.DateTime"
                ItemStyle-Wrap="False" DataFormatString="{0:MM/dd/yyyy}" ShowSortIcon="False"
                ShowFilterIcon="False" ReadOnly="True" AllowFiltering="False">
                <ItemStyle Wrap="False" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Units" DataField="Units" UniqueName="Units"
                SortExpression="Units"
                DataType="System.Int32" DataFormatString="{0:###,##0}"
                ShowSortIcon="False" ShowFilterIcon="False" ReadOnly="True" AllowFiltering="False">
                <ItemStyle HorizontalAlign="Right" Wrap="False" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Division" DataField="Division" UniqueName="Division"
                SortExpression="Division"
                ShowSortIcon="False" ShowFilterIcon="False" ReadOnly="True" AllowFiltering="False">
                <ItemStyle HorizontalAlign="Center" Wrap="False" />
            </telerik:GridBoundColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

Pavlina
Telerik team
 answered on 08 Nov 2011
19 answers
789 views
For some reason the onitemsrequested event is no longer firing when I use Q1 2010 for .net 4.  This code worked perfectly well in previous versions


<telerik:RadComboBox ID="RadComboBoxCountry" runat="server"  
                        EnableItemCaching="True" EnableLoadOnDemand="True" 
                        onitemsrequested="RadComboBoxCountry_ItemsRequested" Width="250px" 
                        Skin="Vista">
                        <CollapseAnimation Duration="200" Type="OutQuint" />
                    </telerik:RadComboBox>  



protected void RadComboBoxCountry_ItemsRequested(object o, Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs e)
        {
            PopulateCountries(e.Text);
        }
 
        private void PopulateCountries(string e)
        {
            List<Country> lst = new List<Country>();
 
            lst = timeZoneManager.FilterCountries(e);
            this.RadComboBoxCountry.Items.Clear();
            if (lst.Count > 0)
            {
                foreach (Country c in lst)
                {
                    this.RadComboBoxCountry.Items.Add(new Telerik.Web.UI.RadComboBoxItem(c.CountryName, c.CountryName));
                }
 
            }
        }


has anything changed that I need to be aware of ?
Vivek
Top achievements
Rank 1
 answered on 08 Nov 2011
1 answer
229 views
We're using RadCompression in our project and I've run into a small snag.  On one of our pages, we download a Zip file to the client.  We're using pretty standard code to download the file (similar to the following:  link), but the resulting file on the client is always coming up as corrupted.  I've verified that the source file on the server is good. 

After digging around a little, I tried disabling the EnablePostbackCompression setting in the web.config.  Now, the downloads are just fine.  So, is there a way to turn this setting off for a specific postback?  Or is there a better way to have both postback compression and the ability to download zip files?  Any help is appreciated!

Dave
Martin
Telerik team
 answered on 08 Nov 2011
0 answers
92 views
In my grid I have 2 column, first is clientselectColumn and second is a template column in which i hae a raddatepicker. This grid is in a dialog window. When I click OK button in my window I must validate that all row whith clientselectcolumn checked must have a date selected. How I can do this ?
ericc34
Top achievements
Rank 1
 asked on 08 Nov 2011
1 answer
113 views
Hello,
I create runtime some RadTooltip in order to zoom the selected image. If this image (the target one) has an alt text, in the tooltip I see the alt text instead of the zoommed image. If the target image has no alt text, all works fine. The code I use is this one:

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
 
            Try
                If Not Page.IsPostBack Then
 
                    Dim lController As New ZoomTooltipImmagini.ZoomTooltipImmagini_Controller
                    Dim lParametri As List(Of ZoomTooltipImmagini_Info)
                     lParametri = lController.GetParametri(PortalId, ModuleId)
                     'Estraggo il controlid e lo uso per aggiungere il controllo al tooltipmanager
                    For Each lParametro In lParametri
                        Dim lTooltip As New RadToolTip
                        lTooltip.ID = "RadToolTip_" + lParametro.ControlID
                        lTooltip.TargetControlID = lParametro.ControlID
                        lTooltip.IsClientID = True
                        lTooltip.Width = lParametro.Width
                        lTooltip.Height = lParametro.Height
                        lTooltip.ShowDelay = 100
                        lTooltip.AutoCloseDelay = 10000
                        lTooltip.RelativeTo = ToolTipRelativeDisplay.Element
                        lTooltip.Animation = ToolTipAnimation.None
                        lTooltip.Position = ToolTipPosition.BottomCenter
                        lTooltip.ContentScrolling = ToolTipScrolling.None
                        lTooltip.ShowCallout = True
 
                        Dim lImage As New System.Web.UI.WebControls.Image
                        lImage.ImageUrl = PortalSettings.HomeDirectory + lParametro.PercorsoImmagineEspansa
 
                        lImage.Width = lParametro.Width
                        lImage.Height = lParametro.Height
 
                        lImage.Style.Add("text-align", "center")
                        lImage.Style.Add("vertical-align", "middle")
                        lTooltip.Controls.Add(lImage)
 
                        Me.Controls.Add(lTooltip)
 
                    Next
 
 
                End If
 
            Catch exc As Exception        'Module failed to load
                ProcessModuleLoadException(Me, exc)
            End Try
 
        End Sub

Any Ideas?

Thanks
Mario
Top achievements
Rank 1
 answered on 08 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?