Telerik Forums
UI for ASP.NET AJAX Forum
19 answers
656 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
157 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
51 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
68 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
9 answers
195 views
Is there a way to get the RadRotator to scroll/rotate a single item? I want to display a dynamic list of items, and i have noticed that if there is only one item, it does not scroll, it stays at the top. How do I get it to sroll that one item?
Slav
Telerik team
 answered on 08 Nov 2011
3 answers
289 views
I want to change text Check All, Item selected when check select check box? Please support for me.
Irene Alpen
Top achievements
Rank 1
 answered on 08 Nov 2011
1 answer
389 views
Hi all,
        I am using a rad chart (type="Line") where x axis values are adding dynamically which is working smoothly. Now I need to add y axis values also in the same manner. I know minimum and maximum values of y axis but the major tick values binding on it should be specific. For instance: minimum Value=0 and Maximum Value=10. Now I want to display only major ticks like 0,2,5,9 & 10 in the y axis; and also distance between these values should be proportionate. Is it possible ? Any help would be highly appreciated
Thanks in advance
Shafi
Peshito
Telerik team
 answered on 08 Nov 2011
6 answers
166 views
Greetings,

I have been trying to follow the steps of this demo to save the content of my Editor in my database.
http://demos.telerik.com/aspnet-ajax/editor/examples/saveindatabase/defaultcs.aspx
But it is not working unfortunately

<form id="form1" runat="server">
<div>
<input type="hidden" name="EditedNews" runat="server" id="EditedNews" />
    <telerik:RadEditor ID="NewsEditor" runat="server">
    </telerik:RadEditor>
</div>
<telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
</telerik:RadScriptManager>
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />
<asp:SqlDataSource ID="SqlDataSourceRadEditor" runat="server"
    ConflictDetection="OverwriteChanges"
    ConnectionString="<%$ ConnectionStrings:IntranetConnectionString %>"
    DeleteCommand="DELETE FROM [rendezvous] WHERE [idRDV] = @idRDV"
    InsertCommand="INSERT INTO [rendezvous] ([rapport]) VALUES (@rapport) WHERE idRDV = @idRDV "
    SelectCommand="SELECT [idRDV], [rapport] FROM [rendezvous]"
    UpdateCommand="UPDATE [rendezvous] SET [rapport] = @rapport WHERE [idRDV] = @idRDV">
    <DeleteParameters>
        <asp:Parameter Name="idRDV" Type="Int32" />
        <asp:Parameter Name="rapport" Type="String" />
    </DeleteParameters>
    <InsertParameters>
        <asp:Parameter Name="rapport" Type="String" />
    </InsertParameters>
    <UpdateParameters>
        <asp:QueryStringParameter Name="idRDV" QueryStringField="idRDV" Type="Int32" />
        <asp:Parameter Name="rapport" Type="String" />
    </UpdateParameters>
</asp:SqlDataSource>
</form>

protected void Button1_Click(object sender, EventArgs e)
{
    if (EditedNews.Value == string.Empty)
    {
       
        SqlDataSourceRadEditor.UpdateParameters.Add("NewsText", NewsEditor.Content);
        SqlDataSourceRadEditor.Update();
    }
 
     
}


PS: the RadEditor control is within a RadWindow and i pass an ID from a RadGrid to the window, that's why i have a
<asp:QueryStringParameter Name="idRDV" QueryStringField="idRDV" Type="Int32" />

To get back the ID.
The Command i try to do is the update.

Thanks in advance for your help
Adigard
Top achievements
Rank 1
 answered on 08 Nov 2011
5 answers
186 views

Hi All,

  I want to add a new row  below the child item when expand a  Parent item.
  How is it possible?

Thank You.
 
  
 

 
Tsvetina
Telerik team
 answered on 08 Nov 2011
8 answers
128 views
Hello,
I want to make an initial sorting when grid is loaded first but, when I press column header to sort, I want to dismiss initial sorting expressions and follow the grid default sorting procedures. Is that possible? I already know how to sort programmatically but I cannot correctly remove sorting expressions when I don't need them.
Thank you.
Dmitry
Top achievements
Rank 1
 answered on 08 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?