Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
168 views
Hi
I create a ajaxpanel and add to it some of control,also i add a ajaxpanel .i assign always mode two ajaxpanel ,equal to "Always".
but when either of ajaxpanel updating other of ajaxpanel hide from my page..
  i test this scenario with updatepanel asp.net and it worked correctly...

        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="100%" 
            Width="100%"  LoadingPanelID="RadAjaxLoadingPanel1" 
            onajaxsettingcreated="RadAjaxPanel1_AjaxSettingCreated" >
            <asp:Button Text="FirstButton" ID="FirstButton" runat="server" onclick="FirstButton_Click" />
            <asp:TextBox runat="server" ID="FirstTxt" />
  
            <telerik:RadAjaxPanel ID="RadAjaxPanel2" runat="server" Height="200px" 
                Width="300px" LoadingPanelID="RadAjaxLoadingPanel1" 
                onajaxsettingcreated="RadAjaxPanel2_AjaxSettingCreated" >
                <asp:Button Text="SecondButton" ID="SecondButton" runat="server" 
                    onclick="SecondButton_Click" style="margin-bottom: 0px" />
                <asp:TextBox runat="server"  ID="SecondTxt"/>
                <asp:Label  ID="SecondLable" runat="server" />
            </telerik:RadAjaxPanel>
          
        </telerik:RadAjaxPanel>
  
  
protected void RadAjaxPanel1_AjaxSettingCreated(object sender, Telerik.Web.UI.AjaxSettingCreatedEventArgs e)
        {   
            e.UpdatePanel.UpdateMode = UpdatePanelUpdateMode.Always;
        }
  
        protected void RadAjaxPanel2_AjaxSettingCreated(object sender, Telerik.Web.UI.AjaxSettingCreatedEventArgs e)
        {
            e.UpdatePanel.UpdateMode = UpdatePanelUpdateMode.Always;
        }
  
        protected void FirstButton_Click(object sender, EventArgs e)
        {
            SecondTxt.Text = "ok";
        }
  
        protected void SecondButton_Click(object sender, EventArgs e)
        {
  
            FirstTxt.Text = "ok";
            SecondTxt.Text = "ok";
            txt3.Text = "ok";
            SecondLable.Text = "ok";
           }
mehdi
Top achievements
Rank 1
 asked on 29 Sep 2011
1 answer
102 views
Hello!
I want to work with grid with large amount of rows(~300000) using ASP.Net AJAX Telerik Controls.
But grid works very slowly. have you some solution for my problem?
Shinu
Top achievements
Rank 2
 answered on 29 Sep 2011
8 answers
168 views

Hello All,

I have a very simple Calendar with 2 months, Sep and Oct
The SpecialDay is Oct first an must be only visible on the second month in the calendar.
So far so good.

 

In the first month of the calendar this date is not visible as a SpecialDay but when I hover over the date then the date lights-up while it must be disabled and when hover-off then the style is applied from the special date.

 

The screen dump’s show before hover and after hover.

 

I set the date on DayRender and compare the date to e.Day and the Month.

The tooltip is only visible on the second calendar month so I know the a have the correct day and month.

 

How can I disable the days form the other months without setting the property ShowOtherMonthsDays="false" ?

<head runat="server">
    <title></title>
    <style type="text/css">
        .RadCalendar .event_future
        {
            border: 1px solid Green !important;
            background-color: Lime;
        }
        .RadCalendar .rcOtherMonth a, .RadCalendar .riDisabled a
        {
            cursor: default;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
        <telerik:RadCalendar ID="RadCalendar1" runat="server" CultureInfo="nl-NL" EnableMultiSelect="False"
            EnableMonthYearFastNavigation="False" FirstDayOfWeek="Monday" MultiViewRows="2"
            TitleFormat="MMM" ShowDayCellToolTips="false" Skin="WebBlue" TitleAlign="Center" 
            UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False">
        </telerik:RadCalendar>
    </form>
</body>
</html>

 

Protected Sub RadCalendar1_DayRender(sender As Object, e As Telerik.Web.UI.Calendar.DayRenderEventArgs) Handles RadCalendar1.DayRender
    Dim SpecialDay As Date = DateValue("1-10-2011")
    If e.Day.Date = SpecialDay AndAlso e.View.MonthStartDate.Month = SpecialDay.Month Then
        e.Day.IsSelectable = True
        e.Day.IsDisabled = False
        e.Cell.ToolTip = "SpecialDay"
        e.Cell.CssClass = "event_future"
    Else
        e.Day.IsSelectable = False
        e.Day.IsDisabled = True
        e.Cell.CssClass = "riDisabled"
    End If
    Me.RadCalendar1.SpecialDays.Add(e.Day)
End Sub

 

 

 

Best regards,

 

Marco

Marco
Top achievements
Rank 2
 answered on 29 Sep 2011
1 answer
59 views
Hi guys

I created a simple project at home with telerik controls...Now when i open my project at school i get the errors "Failer to create designer" How can i solve this?
Princy
Top achievements
Rank 2
 answered on 29 Sep 2011
1 answer
187 views
hi all :)

I want my window to be maximized by default when it open

how can I do that ?


thanks :)
Princy
Top achievements
Rank 2
 answered on 29 Sep 2011
1 answer
70 views
Hi

I am working on a grid that allows for in-line editting and I'm using edit templates.

I have a couple of columns that are inter-related.

The first column allows the user to pick from one of three choices when in edit mode,

No Sort, Sort Ascending, or Sort Descending. I am using a ComboBox in this column's ItemTemplate.

The second column allows the user to determine the sort precidence, 1, 2, 3, etc.
For this column I am using a NumericTextBox with SpinUp and SpinDown buttons.

If the first column has 'No Sort' as its value I would like to prevent the Edit Control for the second
column from appearing when I put the row into edit mode.

I have managed to create some client-side code that hides and shows the NumericTextBox and its spin buttons
and I invoke this code on a selection change in the first column's ComboBox. This works acceptably.

However I have been unable to come up with a method for not showing the NumericEditControl when
I put the row into edit mode.

Any ideas on how to do this with client, or server side could wold be a great help.

THX
Mira
Telerik team
 answered on 29 Sep 2011
1 answer
71 views
Hi,

I am using Radgrid  and i want to change the style of GroupHeaderItem.
The skin of Radgrid is "SunSet". 

I just override telerik css class like -

.RadGrid_Sunset .rgGroupHeader td p{
    color:#FF6633 !important;
}

it is working fine. But is it efficient way to do that?

Thanks in advance...
Regards,
Abhi
Princy
Top achievements
Rank 2
 answered on 29 Sep 2011
7 answers
415 views
Hello,
This is what I do from client side:
 var master = $find(gridID).get_masterTableView();
 master.fireCommand("InitInsert""");
Grid correctly creates a new row but I never get to ItemCommand handler in codebehind. Why?
Thank you.
Dmitry
Top achievements
Rank 1
 answered on 29 Sep 2011
0 answers
61 views
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
       {
           if (e.Item is GridEditableItem && e.Item.IsInEditMode)
           {
               RadDatePicker StartDate = (RadDatePicker)e.Item.FindControl("DateofCommencement");
               RadNumericTextBox Duration = (RadNumericTextBox)e.Item.FindControl("Duration");
               RadDatePicker EndDate = (RadDatePicker)e.Item.FindControl("DateofCompletion");
               Duration.Attributes.Add("onblur", string.Format("changeEndDate('{0}','{1}','{2}','{3}','{4}');", StartDate.ClientID, Duration.ClientID, EndDate.ClientID, Dtcomm, Dtcomplete));
           }
       }


In this itemdatabound  i passing through javascript ,
First time public variable values are come ,
after i change the public variable ,
Second that public variables values not old values on available ,
How i get current values

Reply as soon as possible

Thanks,
Mohamed,
mohamed
Top achievements
Rank 1
 asked on 29 Sep 2011
1 answer
75 views
Hi forum,
I'm evaluating the ASP.NET controls but I don't understand if they are right for my application.
My application will run into a closed network and I will be splitted in two parts.

1. Configuration interface
My users must configure a chart and save the template.
Into the template is not relevant if there is the connection string and the sql statement but it's important that it includes every series and chart configuration.
This part of my application can be a standalone winform application (I can buy also the winform components collection) but my users must create a chart without use VisualStudio (just my compiled application) and export it in some way (xml, stream, ....).
I didn't find a way to use the chart wizard of the winform chart control or the asp.net chart control at run-time.

2. End-user interface
This part of my application must be an ASP.NET webform (or webcontrol) where my users must insert the chart template and the connection string and the sql statement.
The sql statement inserted must be compatible with the statement used during the chart template creation.


Can I do it with you chart control?
Have you got some code sample about it?


Sorry for my english, I hope you understand me.

Please, help me!
Thank you,
Claudio
Ves
Telerik team
 answered on 29 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?