Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
71 views

 

I have a graph with 8 series. Four bars and four line series. I need to add a new figure to the legends of line graphics and only them. How do I add new pictures?

The bars series, I use a rectangle, but the Line series other figure. Figures that do not belong to the list.

Is posible to add new Figures to a Legend? Is posible?
Thanks for all.
Peshito
Telerik team
 answered on 28 Jun 2012
1 answer
155 views
How to set Specific TimeZone for raddatetimepicker in asp.net
i've seen http://www.telerik.com/community/forums/aspnet/calendar/is-there-a-way-to-specify-a-time-zone-for-the-datepicker-and-datetimepicker.aspx
this but here control behaving based on client machine settings...
i want specific behaviour for each user... based on timezone...
is it possible...?
Daniel
Telerik team
 answered on 28 Jun 2012
3 answers
351 views
I have created textbook dynamically as follows,

Dim control As New RadTextBox()
control.ID = "txtpassword"
control.Text = obj.FieldValue
control.CssClass = obj.CssClass
control.WrapperCssClass = obj.WrapperCssClass
control.AutoPostBack = obj.IsAutoPostBack
control.TextMode = obj.TextMode
for the password I have pass the value '2' for textmode.

Actually I have create the control on page load. But i can't see the text which I pass to the control(expected to see ************).
But text will be empty.
Please guide me to avoid this issue.
Vasil
Telerik team
 answered on 28 Jun 2012
3 answers
120 views
Hello, Telerik team:
Please help for this issue:
I'm working on timelien.When I click Timeline, it shows default view looks fine. When change the view  to licke day or weeks or month fromTimeline show, the error shows up as "Object reference not set to an instance of an object." When  change to click between day or weeks or month again, the error go away. When i debug, the error point to in tag <AppointmentTemplate> first line at <%# Eval("Subject") %>. From other swith click, the code go to

 RadScheduler1_AppointmentDataBound(object sender, SchedulerEventArgs e). Only from timeline switch to ohters view, the code go to <%# Eval("Subject") %>, then cause this error.

 

 Does any one know what is wrong when switch to click from timeline to other view that error shows up?

Thanks!!

 

Plamen
Telerik team
 answered on 28 Jun 2012
10 answers
297 views

Hi all I have designed a radwindow manager which will have a dropdown and a textbox and a button which are placed inside a update panel.

Every thing works fine but on button click I am closing my window manager as follows

RadWindowManager1.Windows[0].VisibleOnPageLoad = false;

But this didn't work can some one help me this is my design and code

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Behavior="Default"
        InitialBehavior="None">
        <Windows>
            <telerik:RadWindow ID="RadWindow1" runat="server" Behaviors="Default" InitialBehaviors="None"
                OpenerElementID="btn" Width="650" Height="480" VisibleOnPageLoad="false">                   
                <ContentTemplate>
                    <asp:UpdatePanel ID="up" runat="server" OnUnload="up_Unload">
                    <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="rdcmb" EventName="SelectedIndexChanged" />
                    <asp:AsyncPostBackTrigger ControlID="radbtn" EventName="Click" />
                    </Triggers>
                        <ContentTemplate>
                            <telerik:RadComboBox ID="rdcmb" runat="server" AutoPostBack="true" OnSelectedIndexChanged="sel">
                                <Items>
                                    <telerik:RadComboBoxItem Text="One" Value="One" />
                                    <telerik:RadComboBoxItem Text="Two" Value="Two" />
                                    <telerik:RadComboBoxItem Text="Three" Value="Three" />
                                    <telerik:RadComboBoxItem Text="Four" Value="Four" />
                                </Items>
                            </telerik:RadComboBox>
                            <telerik:RadTextBox ID="rdText" runat="server">
                            </telerik:RadTextBox>
                            <telerik:RadButton ID="radbtn" runat="server" Text="Save" OnClick="btn_Click">
                            </telerik:RadButton>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </ContentTemplate>
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>
    <telerik:RadButton ID="rdbtnwhAnother" Text="Add WithHolding" runat="server" ButtonType="LinkButton"
        OnClick="rdbtnwhAnother_Click">
    </telerik:RadButton>

Code 

protected void Page_Load(object sender, EventArgs e)
{
    if (!IsPostBack)
    {
        RadWindowManager1.Windows[0].VisibleOnPageLoad = false;
    }
}
 
protected void rdbtnwhAnother_Click(object sender, EventArgs e)
{
    RadWindowManager1.Windows[0].VisibleOnPageLoad = true;
}
 
protected void btn_Click(object sender, EventArgs e)
{
    RadWindowManager1.Windows[0].VisibleOnPageLoad = false;
}
 
protected void sel(object sender, EventArgs e)
{
    rdText.Text = rdcmb.SelectedItem.Text;
}
 
protected void up_Unload(object sender, EventArgs e)
{
    /* Cast sender as an updatePanel, and use reflection to invoke * * the page's scriptmanger registerUpdatePanel() method * * */
    //RadWindowManager1.Windows[0].VisibleOnPageLoad = false;
    UpdatePanel aUpdatePanel = sender as UpdatePanel;
 
    MethodInfo m = (
        from methods in typeof(ScriptManager).GetMethods(
            BindingFlags.NonPublic | BindingFlags.Instance
            )
        where methods.Name.Equals("System.Web.UI.IScriptManagerInternal.RegisterUpdatePanel")
        select methods).First<MethodInfo>();
 
    m.Invoke(ScriptManager.GetCurrent(aUpdatePanel.Page), new object[] { aUpdatePanel });
}

Can some one help me.

When my button is inside RadMultiPage I am even unable to load my RadWindowManager1 on button click
Dorababu
Top achievements
Rank 1
 answered on 28 Jun 2012
0 answers
96 views
Hi all,

I have a data in treelist (name: RadTreeList1). Now I want export to excel call function RadTreeList1.ExportToExcel();same picture attach report.png... including column A[2] name : "Company name", column E[2] name : "Report Name". But I can't not found how. Please help me!

Thanks
Du
Top achievements
Rank 1
 asked on 28 Jun 2012
1 answer
188 views
Hi, I would like to be able to assign custom content to the NestedView (a literal control inside the nestedview) - only when the arrow is clicked and the view gets expanded.

At that point, I would find a literal control and add content dynamically. I do not want to assign the literal on ItemDataBound as that would find and populate all the literal controls - this is not desirable as they are going out and building feeds from external services and the performance would be terrible.

So what I am looking for is an event to work from, but the ItemCommand would not work, because the literalControl is not yet created/cannot be found in the page life cycle. Any creative thoughts welcome.
Maria Ilieva
Telerik team
 answered on 28 Jun 2012
3 answers
74 views
Using a TabStrip with custom skin in IE9 seems to cause tearing in the buttons. See attached screen shot. Running version 2012.607. Does not occur in IE8, Chrome or FF.

Let me know if you need more information.
Kate
Telerik team
 answered on 28 Jun 2012
1 answer
101 views
<telerik:RadGrid ID="RadGridItemSizes" runat="server" AllowPaging="false" AllowSorting="True" GridLines="None" Skin="Windows7" Width="95%">                                                        
<MasterTableView AutoGenerateColumns="false" EditMode="InPlace" >
<NoRecordsTemplate>
 No Sizes Found
</NoRecordsTemplate>                                                                                          
<Columns>                                                           
<telerik:GridBoundColumn    DataField="IT_SizePk"   UniqueName="SizePk" Visible="false" />
<telerik:GridCheckBoxColumn DataField="Checked"     HeaderText="Select"         HeaderStyle-Width="20px"    UniqueName="Checked"/>
<telerik:GridBoundColumn    DataField="Size"        HeaderText="Size"           HeaderStyle-Width="40px"    ReadOnly="true"/>                                                               
<telerik:GridNumericColumn  DataField="SizePremium" HeaderText="Size Premium"   HeaderStyle-Width="100px"   UniqueName="SizePremium" DecimalDigits="2" DataFormatString="{0:f3}" />
 </Columns>
 </MasterTableView>
 </telerik:RadGrid>

I have the above Grid. And the following Code being used for this grid

        Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            Try
               'Put In Edit Mode
                Dim i As Integer
                For i = 0 To RadGridItemSizes.PageSize - 1
                    RadGridItemSizes.EditIndexes.Add(i)
                Next i
            
            Catch exc As Exception        'Module failed to load
                ProcessModuleLoadException(Me, exc)
            End Try
End Sub


Private Sub SaveDataSpecificationTab()
                Dim Sizes() As Guid = {}
                Dim SizesPrices() As Double = {}
 
               For Each DataItem As GridEditableItem In RadGridItemSizes.EditItems
 
                   Dim CheckBox As CheckBox = DirectCast(DataItem("Checked").Controls(0), CheckBox)
                   Dim txtbox As TextBox = DirectCast(DataItem("SizePk").Controls(0), TextBox)
                   Dim SizePk As String = txtbox.Text
                   txtbox = DirectCast(DataItem("SizePk").Controls(0), TextBox)
                   Dim SizePremium As String = txtbox.Text
 
                   If CheckBox.Checked Then
                       ReDim Preserve Sizes(Sizes.Length)
                       ReDim Preserve SizesPrices(SizesPrices.Length)
                       Sizes(UBound(Sizes)) = New Guid(SizePk)
                       SizesPrices(UBound(SizesPrices)) = SizePremium
                   End If
 
               Next
End Sub

Private Sub RadGridItemSizes_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGridItemSizes.ItemCreated
           If (Not Page.IsPostBack AndAlso TypeOf e.Item Is GridEditableItem) Then
               e.Item.Edit = True
           End If
       End Sub
 
       Private Sub RadGridItemSizes_NeedDataSource(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGridItemSizes.NeedDataSource
 
           Dim Item As ConvergenceDataAccess.Items = New ConvergenceDataAccess.Items(Me.ConnectString)
           RadGridItemSizes.DataSource = Item.GetDataTable_ItemSizesPremium(New Guid(ItemPk.Value))
 
       End Sub

This page is also using the RadAjaxManager.

I haven't been able to pull the data from the grid to save using the SaveDataSpecificationTab()  Sub - being called by a button.

I've tried pretty much all of the suggestions I have found here and through google.


Tsvetoslav
Telerik team
 answered on 28 Jun 2012
1 answer
73 views
Hello,

is there an event available for catching the collapse/expand action which is enabled by setting EnableMinimizing to TRUE?

Regards,
   Jos Meerkerk
Bozhidar
Telerik team
 answered on 28 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?