Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
64 views
I need to save one new record in tooltip and to comunicate about it the page. How could I do it?

With this code I load control in the tooltip.
protected void OnAjaxUpdate(object sender, ToolTipUpdateEventArgs args)
    {
        this.UpdateToolTip(args.Value, args.UpdatePanel);
    }

    private void UpdateToolTip(string elementID, UpdatePanel panel)
    {
        var idanagraficatipo = -1;
        int.TryParse(ddlCentroRichiedente.SelectedValue, out idanagraficatipo);

        Control ctrl = Page.LoadControl("~/controls/preaccettazione/Anagrafica.ascx");
        panel.ContentTemplateContainer.Controls.Add(ctrl);
        controls_preaccettazione_Anagrafica details = (controls_preaccettazione_Anagrafica)ctrl;
        details.IdAnagraficaTipo = idanagraficatipo;
    }

I try to save record in the control but the problem that after postback I find textboxs empty.

Thank you,
Ines
Svetlina Anati
Telerik team
 answered on 12 Feb 2010
6 answers
333 views
I have several pie charts developed within the Telerik Reporting component.  These pie charts are using the default slice colors.  The problem is that the chart is generating two adjacent slices with the same color.  This seems to be happening when there are 7 slices, and two of the slices next to each other are both blue.

Is this unusual?  Is there a solution other than setting my own colors in the code-behind?

Thanks.
Dan
Ves
Telerik team
 answered on 12 Feb 2010
1 answer
139 views
I have a RadGrid and something strange seems to be happening with my Javascript when I have UseStaticHeaders set to TRUE.

I have the following line of Javascript:

var

 

orgIdCell = rgUsers.MasterTableView.get_dataItems()[i].get_cell("OrgIDColumn");

 

 



If UseStaticHeaders = FALSE, orgIdCell is populate and there are no problems.

If UseStaticHeaders = TRUE, orgIdCell comes back as NULL.


Why?

is there a workaround?

I need to use orgIdCell to access the innerText propery of a cell in the grid.


I am setting UseStaticHeaders and AllowScrolling to True/False in c# based on some conditions and other button clicks.


It seems that if both UseStaticHeaders and AllowScrolling are set to True, this issue occurs.  If only one or the other are set to TRUE, this issue does not happen.

Thanks,
Dave
Pavlina
Telerik team
 answered on 12 Feb 2010
8 answers
203 views
Hi

I have delevloped a Goodle like calendar that changes the back ground colour of the day cell dependent on a count of actions for that day (very like the google web history cal)

<telerik:RadCalendar ID="DiaryCal" runat="server" Font-Names="Arial,Verdana,Tahoma" 
    Skin="Office2007"   
    ForeColor="Black"   
    Style="border-color: #ececec" AutoPostBack="True" 
    CultureInfo="English (United Kingdom)"   
    EnableMultiSelect = "false"   
    OnSelectionChanged="DiaryCal_OnSelectionChanged"   
    OnDayRender="DiaryCal_DayRender" 
    ShowDayCellToolTips="false"   
> 
</telerik:RadCalendar> 
<asp:Table ID="Table1" runat="server" CellSpacing="1" BorderWidth="0" Width="175">  
    <asp:TableRow ID="TableRow1" runat="server" > 
        <asp:TableCell BackColor="#daf3cb" HorizontalAlign="Center" Width="25%" Height="8px"></asp:TableCell>   
        <asp:TableCell BackColor="#aade8a" HorizontalAlign="Center" Width="25%" Height="8px"></asp:TableCell>   
        <asp:TableCell BackColor="#6dc738" HorizontalAlign="Center" Width="25%" Height="8px"></asp:TableCell>   
        <asp:TableCell BackColor="#4e991f" HorizontalAlign="Center" Width="25%" Height="8px"></asp:TableCell>   
    </asp:TableRow>   
    <asp:TableRow ID="TableRow2" runat="server">  
        <asp:TableCell HorizontalAlign="Center" Width="25%">  
            <asp:Label ID="Label1" runat="server" Text="1-10" /> 
        </asp:TableCell> 
        <asp:TableCell HorizontalAlign="Center" Width="25%">  
            <asp:Label ID="Label2" runat="server" Text="11-20" /> 
        </asp:TableCell> 
        <asp:TableCell HorizontalAlign="Center" Width="25%">  
            <asp:Label ID="Label3" runat="server" Text="21-30" /> 
        </asp:TableCell> 
        <asp:TableCell HorizontalAlign="Center" Width="25%">  
            <asp:Label ID="Label4" runat="server" Text="40+" /> 
        </asp:TableCell> 
    </asp:TableRow> 
</asp:Table> 

 

<telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" ShowCallout="False" Skin="Office2007" style="display: none;" ShowDelay="0" />

 

 

in the code behind there is a handler for the DayRender Event and the tooltip events as follows

    Protected Sub DiaryCal_DayRender(ByVal sender As Object, ByVal e As Telerik.Web.UI.Calendar.DayRenderEventArgs)  
        Dim cellID As String  
        cellID = String.Format("{0}_{1}_{2}", DiaryCal.ClientID, e.Day.[Date].ToString("yyyy_M_d"), 0)  
        If DiaryCounts IsNot Nothing Then  
            For Each diaryCount As Safe.CRM.DAL.BusinessObjects.DiaryCount In DiaryCounts ' contains a list of days and counts  
                If diaryCount.ActivityCompleteBy = e.Day.Date Then  
                    Dim iCounts As Integer = diaryCount.Counts  
 
                    If iCounts >= 1 And iCounts <= 10 Then  
                        e.Cell.Style("background-color") = "#daf3cb"  
                    ElseIf iCounts >= 11 And iCounts <= 20 Then  
                        e.Cell.Style("background-color") = "#aade8a"  
                    ElseIf iCounts >= 21 And iCounts <= 30 Then  
                        e.Cell.Style("background-color") = "#6dc738"  
                    ElseIf iCounts >= 31 Then  
                        e.Cell.Style("background-color") = "#4e991f"  
                    End If  
 
                    cellID = String.Format("{0}_{1}_{2}", DiaryCal.ClientID, e.Day.[Date].ToString("yyyy_M_d"), iCounts)  
                    Exit For  
                End If  
            Next  
        End If  
        e.Cell.Attributes.Add("id", cellID)  
        RadToolTipManager1.TargetControls.Add(cellID, True)  
    End Sub  
 
 
    Protected Sub RadToolTipManager1_AjaxUpdate(ByVal sender As Object, ByVal e As Telerik.Web.UI.ToolTipUpdateEventArgs) Handles RadToolTipManager1.AjaxUpdate  
        ' get the event date from the cell id    
        Dim idParts As String() = e.TargetControlID.Split(New Char() {"_"c})  
        Dim year As Integer = Int32.Parse(idParts(idParts.Length - 4))  
        Dim month As Integer = Int32.Parse(idParts(idParts.Length - 3))  
        Dim day As Integer = Int32.Parse(idParts(idParts.Length - 2))  
        Dim eventDate As New DateTime(year, month, day)  
        Dim items As Integer = Int32.Parse(idParts(idParts.Length - 1))  
 
        ' display the proper content based on the event date    
        Dim tooltipActivitesLabel As New Label()  
        Dim tooltipDateLabel As New Label()  
        Dim toolTipPanel As New Panel  
        If items = 0 Then  
            tooltipActivitesLabel.Text = "" 
        ElseIf items = 1 Then  
            tooltipActivitesLabel.Text = String.Format("{0} activity.", items)  
        Else  
            tooltipActivitesLabel.Text = String.Format("{0} activities.", items)  
        End If  
        tooltipDateLabel.Text = String.Format("{0}", eventDate.ToString(CType(DiaryCal, Telerik.Web.UI.RadCalendar).DayCellToolTipFormat))  
        If tooltipActivitesLabel.Text <> "" Then  
            toolTipPanel.Controls.Add(tooltipActivitesLabel)  
            toolTipPanel.Controls.Add(New LiteralControl("<br />"))  
        End If  
        toolTipPanel.Controls.Add(tooltipDateLabel)  
        toolTipPanel.HorizontalAlign = HorizontalAlign.Center  
 
        e.UpdatePanel.ContentTemplateContainer.Controls.Add(toolTipPanel)  
    End Sub 

All works fine untill I select a diary entry after this the tool tip still works but as the mouse moves over the other cells the background colour is reset.. Is there anyway I can use JS to keep the colour using a custom client side events.... or am i missing somthing else

Julian
Iana Tsolova
Telerik team
 answered on 12 Feb 2010
3 answers
296 views
Hello

I use RadTreeView with load-on-demand feature (ServerSideCallback). When a node is expanded I create child nodes and do HtmlEncode for its' texts. I see "<input>" text as "<input>" and that's OK. But when I click any child node (I have server-side Click handler that actually do not change any nodes) all "<input>" nodes become text boxes!

I guess it's a bug. Could you give me some workaround?
Thanks.
Pavel
Top achievements
Rank 1
 answered on 12 Feb 2010
1 answer
96 views
I am currently running into a major issue where when using the paging navigation and I try to move to the next page nothing happens. I get a brief flash where the grid header row's columns adjust and then settle back to their original widths.

I might assume it's something with a Script or RadManager maybe?
Anyone have any suggestions?
Tsvetoslav
Telerik team
 answered on 12 Feb 2010
1 answer
88 views
Is there a simple way to set properties (like the width) of the radcombobox in a griddropdowncolumn?
Shinu
Top achievements
Rank 2
 answered on 12 Feb 2010
2 answers
116 views
I have a File Explorer:

 

<telerik:RadFileExplorer   
 
ID="EquipmentFileExplorer"   
 
runat="server"   
 
InitialPath="~/AppData/Uploads/" 
 
VisibleControls="TreeView, Grid, Toolbar, ContextMenus">  
 
<Configuration   
 
MaxUploadFileSize="2004800"   
 
SearchPatterns="*.doc,*.pdf,*.gif,*.jpg,*.jpeg,*.tif,*.tiff"   
 
DeletePaths="~/App_Data/Uploads/" 
 
UploadPaths="~/App_Data/Uploads/" 
 
ViewPaths="~/App_Data/Uploads/">  
 
</Configuration> 
 
</telerik:RadFileExplorer> 
 

When I run the project, either locally or on a dev server, I receive an alert saying "Cannot Write To Target Folder". NETWORK SERVICE has modify set on the folder, so it should be ok?

I am using the latest ASP.NET release. Puzzled.

Richard

 

Richard Weeks
Top achievements
Rank 2
 answered on 12 Feb 2010
0 answers
126 views
Please ignore this post, I found an error in the SQL Statement

I attempting to populate a tree view via databinding and keep getting the error columns don't have unique values.  The dataset results I'm binidng to is repeated below.  The parent ID column has dupes because many of the parents have multiple children which I assume is fine, but the ID field is unique for all of the records.  Obviously I'm missing something but I don't get it, any guidance is appreciated. 

Also, here is my binding code:

Me

 

.RadTreeView1.DataSource = oDS.Tables(0)

 

 

 

Me.RadTreeView1.DataFieldID = "ID"

 

 

 

Me.RadTreeView1.DataFieldParentID = "ParentID"

 

 

 

Me.RadTreeView1.DataTextField = "Name"

 

 

 

Me.RadTreeView1.DataValueField = "ID"

 

 

 

Me.RadTreeView1.DataBind()

 

 


DATASET Contents

Name ID ParentID
Be Four C2202 NULL
Art-Kindergarten C2840 NULL
Students will share information about themselves and friends at school. K29266 T17348
Students will practice math, early reading, music, art and career skills while investigating the zoo. K352465 T35358
Students will practice language, math, and critical thinking skills while partcipating in events that happen in fall. K43131 T25425
Students will practice math, language, and reading concepts through various pumpkin activities. K43168 T25479
Students will practice art, science, oral language, early reading and gross motor skills while investigating the topic of spiders. . K43416 T25697
Students will practice early reading skills, science, art and critical thinking while describing the characteristics of a turkey and its environment. K43502 T25766
Students will practice science, oral language and early reading skills through various bee actitivies. K44445 T26705
Students will identify body parts, the letter H, healthy habits, and make healthy choices. K46533 T28728
Students will practice math and early reading skills. K46563 T28761
Students will develop speaking, math, health and higher level thinking skills. K56777 T34794
Students will continue to develop early reading, math, art and higher level thinking skills while creating a snowman. K56961 T34851
Students will continue to develop early reading, science, math and recall skills while participating in activities around Penguins and Polar Bears. K57096 T34941
Students will practice early reading, math, social iskills, art, creative thinking, listening and speaking skills while listening to The Three Bears story. K57489 T35264
Students will further develop early reading, music, social, creative art, and gross motor skills while participating in nursery rhyme activities. K57570 T35303
Students will use creative thinking, early reading, math, art and science skills when being introduced to the concept of outer space. K57844 T35402
Students will practice math, science, early reading and career skills when investigating farm animals. K70571 T40464
Students will develop science, early reading, art and speaking skills while observing seasonal change. K70834 T40607
Students will develop science, early reading, math and art while investigating flowers and insects. K71159 T40720
Students will develop speaking and listening skills, social interaction, art, creative thinking, and writing skills when making a book. K71236 T40741
All About Me T17348 U7019
Fall (apples, leaves, fire prevention) T25425 U10022
Fall (pumpkins and jack o lanterns) T25479 U10022
Spiders T25697 U10163
Turkeys T25766 U10163
Bees T26705 U7019
Healthy Habits T28728 U11326
Shapes T28761 U11326
Winter Clothing T34794 U13952
Snowmen T34851 U13952
Penguins & Polar Bears T34941 U13952
The Three Bears T35264 U14054
Nursery Rhymes T35303 U14054
Zoo Animals T35358 U14077
Outer Space T35402 U14077
Farm Animals T40464 U15979
Spring Changes T40607 U15979
Flowers and Bugs T40720 U16033
Moms and Dads T40741 U16033
October U10022 C2202
November U10163 C2202
December U11326 C2202
January U13952 C2202
February U14054 C2202
March U14077 C2202
April U15979 C2202
May U16033 C2202
All About Me U64839 C2840
Landscapes U64840 C2840
September U7019 C2202
Chris Trina
Top achievements
Rank 1
 asked on 12 Feb 2010
2 answers
120 views
Hi
I have a problem with the SortedBackColor of the column, it goes to cover the middle line of the head and the text is hidden.
Is normal and I have to change the text color of the head ? or it is a problem of the command ?

<SortingSettings SortedAscToolTip="Ordinamento Ascendente." SortedBackColor="LemonChiffon" 
                            SortedDescToolTip="Ordinamento Discendente." SortToolTip="Clicca qui per ordinare la griglia." /> 

In the <DetailTables> is work fine.



Attach the sample of the problem.

Versione of the ASP.NET 2009.3.1407.35 the last internal version.

Tnks
Aurelio

Aurelio Righetti
Top achievements
Rank 1
 answered on 11 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?