Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
110 views
I am using the office2010black skin with my radbuttons.  I wanted the button to stay the orange color it turns to after the user clicks on it.   how do I do this?
Slav
Telerik team
 answered on 10 May 2012
7 answers
134 views
Hi,

I am using RadScheduler with websevice (v.2012.1.411). I use args.get_schedulerInfo() to pass extra info to the webservice on event OnClientAppointmentsPopulating,  it is working well.

But when I try to use args.get_schedulerInfo() in event OnClientAppointmentWebServiceInserting, It pops up javascrip undefined error. I checked the online document http://www.telerik.com/help/aspnet-ajax/p_telerik_web_ui_radscheduler_onclientappointmentwebserviceinserting.html , This property should be supported in this event. here is the code,
function OnClientAppointmentWebServiceInserting(sender, args) {
    var schedulerInfo = args.get_schedulerInfo();
    alert(schedulerInfo);
    var userName = '<%=UserName %>';               
    schedulerInfo.UserName = userName;
}

Thanks in advance

Jason
Peter
Telerik team
 answered on 10 May 2012
1 answer
91 views
Hi,
        I have a Radcombo radItem and in item request event , binding the data according to the search type. My issue is , search a word with "fruit basket" and populate all  item name including the fruit basket . but i removing the fruit basket from search area then item populate first with name include "Fruit" and after sometime combo populate item with no search condition.....  Loading message notification not showing while deteting the text from search area.... this is my issue...  Please help.....

Thanks in advance
Jesmon Joseph
Ivana
Telerik team
 answered on 10 May 2012
1 answer
78 views
Here is my code :

<%@ Page Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false" CodeBehind="Calendar.aspx.vb" Inherits="Digicontacts_Web_Final.Calendar" %>

<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

<asp:Content ID="content1" ContentPlaceHolderID="MainContent" runat="server">

    <div id="settings-container">
    <script type="text/javascript">
        
        function rebindScheduler() {
            var scheduler = $find('<%=RadScheduler1.ClientID %>');
            scheduler.rebind();
        }
    
    
    </script>
    <telerik:RadPanelBar runat="server" ID="RadPanelBar1" Width="200px"
            Skin="Transparent">
            
                <Items>
                    <telerik:RadPanelItem runat="server" Text="Mes Agendas" ForeColor="#404040">
                        <Items>
                            <telerik:RadPanelItem runat="server" ForeColor="#404040">
                                <ItemTemplate>
                                    <div class="rpCheckBoxPanel">
                                        <telerik:RadTreeView ID="RadTreeView2" Runat="server" CheckBoxes="True"
                                            DataSourceID="SqlDataSource1" DataTextField="calendar_name"
                                            TriStateCheckBoxes="False">
                                        </telerik:RadTreeView>
                                        <asp:SqlDataSource ID="SqlDataSource1" runat="server"
                                            ConnectionString="<%$ ConnectionStrings:vicidial_V4ConnectionString %>"
                                            ProviderName="<%$ ConnectionStrings:vicidial_V4ConnectionString.ProviderName %>"
                                            SelectCommand="SELECT calendar_name FROM digi_calendar"></asp:SqlDataSource>
                                        
                                    </div>
                                </ItemTemplate>
                            </telerik:RadPanelItem>
                        </Items>
                    </telerik:RadPanelItem>
                </Items>
            </telerik:RadPanelBar>
     </div>
    <div id="scheduler-container">
    <asp:SqlDataSource ID="SqlDataSource1" runat="server"
            ConnectionString="<%$ ConnectionStrings:vicidial_V4ConnectionString2 %>"
            ProviderName="<%$ ConnectionStrings:vicidial_V4ConnectionString2.ProviderName %>"
            SelectCommand="SELECT id, start_date_time, end_date_Time, subject, description, location FROM digi_calendar_events">
        </asp:SqlDataSource>
        <telerik:RadScheduler ID="RadScheduler1" runat="server" Culture="fr-FR"
            DataDescriptionField="location" DataEndField="end_date_Time" DataKeyField="id"
            DataSourceID="SqlDataSource1" DataStartField="start_date_time"
            DataSubjectField="subject" EnableDescriptionField="True" Height="600px"
            Width="1000px">
        </telerik:RadScheduler>
     </div>

</asp:Content>

I would like to view by appointment only if I check the box on my agenda but I do not know.
Can you help me?
Ivana
Telerik team
 answered on 10 May 2012
3 answers
83 views
i am using a popup web control as the edit form for my rad grid. i added  a RadAjaxLoadingPanel and a RadAjaxManager to display progress for a slow-loading combobox. now, when i attempt to close or click "cancel" in my web control i get the error below:

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: A control with ID 'ctl00$ContentPlaceHolder1$RadGridProductionOrders$ctl00$ctl06$Detail10$ctl12$EditFormControl$RadComboBoxItemCodeFilters' could not be found for the trigger in UpdatePanel 'ctl00$ContentPlaceHolder1$RadGridProductionOrders$ctl00$ctl06$Detail10$ctl12$EditFormControl$PanelMainPanel'.
Andrey
Telerik team
 answered on 10 May 2012
1 answer
122 views
Hi,
Is there any way we can re-arrange Fields on New/Edit Appointment window? 
I need "Description" after the "Subject" and  after "All Day" Checkbox


Thanks in advance
Plamen
Telerik team
 answered on 10 May 2012
1 answer
172 views
I am having a RadGrid on my page.

This grid is having a GridBoundColumn of type "DateTime" with the CurrentFilterFunction="EqualTo" with in-place filter for the columns. My requirement is not to use the DatePicker icon to select date rather allow user to write text directly into filter through the column. But while trying with the filter functionality typing any non-datetime text into the column filter control and clicking enter postbacks the page but it does not filters, the same data remains there in the page, whereas it should filter and should show no data for any non-datetime entry into filter control.

Here is my RadGridBound column's source:-

<telerik:GridBoundColumn UniqueName="DOB" DataField="DOB" HeaderText="DOB"
                       CurrentFilterFunction="EqualTo" ShowFilterIcon="False" AutoPostBackOnFilter="True"
                       DataFormatString="{0:d}" DataType="System.DateTime">                       
                       <ItemStyle HorizontalAlign="Right" />
                       <HeaderStyle HorizontalAlign="Right" Width="100px" />
                       <FooterStyle HorizontalAlign="Right" />                       
                   </telerik:GridBoundColumn>

Can anybody have any idea for solving this issue.
Thanks in advance.
Vasil
Telerik team
 answered on 10 May 2012
4 answers
182 views
Hi,

I am adding Node Templates like;
protected void RadTreeView2_TemplateNeeded(object sender, RadTreeNodeEventArgs e)
{
    bool someCondition = true;
    if (someCondition)
        e.Node.NodeTemplate = new BoxTemplate();
    else
        e.Node.NodeTemplate = new OtherTemplate();
}

And here is my BoxTemplate class;
class BoxTemplate : ITemplate
{
    public void InstantiateIn(Control container)
    {
        Label nodeLabel = new Label();
        nodeLabel.ID = "NodeLabel";
        nodeLabel.DataBinding += new EventHandler(NodeLabel_DataBinding);
        container.Controls.Add(nodeLabel);
 
        ImageButton delButton  = new ImageButton();
        delButton.ImageUrl = "~/images/icons/delete16.png";
        delButton.OnClientClick = "return ConfirmDelete();";
        container.Controls.Add(delButton);
     }
 
    private void NodeLabel_DataBinding(object sender, EventArgs e)
    {
        Label theLabel= (Label)sender;
        RadTreeNode node = (RadTreeNode)theLabel.BindingContainer;
        theLabel.Text = (string)DataBinder.Eval(node, "Text");
    }
}

I couldn't figure it out how to add server side click event to my delButton and handle it at code behind.
Any help would be appreciated. TIA.
Princy
Top achievements
Rank 2
 answered on 10 May 2012
1 answer
204 views

Dear all

I wonder if somebody could help clarify something about the persistence behaviour I should be expecting from the RadTreeView's EnableViewState property? I am not sure if I am seeing the behaviour by design or not ...

I have a RadTreeView control which does not appear to maintain its node display arrangement after a postback, in that if the user expands a node, after postback the node has been collapsed once more. Also, when it comes to the underlying datasource bindings etc of the RadTreeView control, it seems as though the control does not persist the Datasource property, for example, that is configured when the control first loads on the initial post of the page. For example, the RadTreeView in question binds to a hierarchical datasource object, but I am having to reconfigure the RadTreeView to a datasource object after each postback, which seems a little counter-intuitive, and a bit of an inefficiency that I would expect the RadTreeView control to avoid by maintaining the state of the datasource object. Perhaps the data configuration and hierarchy display changes would need to be made manually with a Session object instead?

However, I would be interested to know if this is the correct way to go about this issue, or whether I am missing something of importance. 

Thanks very much for any advise!

Regards

Plamen
Telerik team
 answered on 10 May 2012
5 answers
300 views
Hello,

There is a very similar problem with <GridDateTimeColumn>, as this message: http://www.telerik.com/community/forums/reply-thread.aspx?messageId=2088875&threadId=530174 .

However, this problem still happens after the Telerik.Web.UI_2012_1_424_Dev release build.


My problem:

I have a grid with EditForm edit mode enabled.

When I select an editable field that fires a OnTextChanged post back event, if I give focus to an editable <GridDateTimeColumn> field, I get a problem.

Prior to this hotfix, I would get an error the same error: "Text property cannot be set. String was not recognized as a valid DateTime."

After this hotfix, what happend is when I focus an editable <GridDateTimeColumn> field, the contents of the field disappear. Actually, the contents appear to first be selected, then they disappear. Focusing on other types of columns does not do this.

Normal behavior (and expected), as when tabbing from field to field without this post back event, the items are selected. But the selection is not removed.

Here are the two date/time column definitions in my grid, demonstrating the problem:

<telerik:GridDateTimeColumn DataField="ValidFromDate"
    FilterControlAltText="Filter ValidFromDate column" HeaderText="Valid From"
    UniqueName="ValidFromDate" DataFormatString="{0:MM/dd/yyyy}"
    MinDate="1901-01-01" MaxDate="9999-12-31 23:59:59.999999">
</telerik:GridDateTimeColumn>
 
<telerik:GridDateTimeColumn DataField="ValidToDate"
    FilterControlAltText="Filter ValidToDate column" HeaderText="Valid To"
    UniqueName="ValidToDate" DataFormatString="{0:MM/dd/yyyy}"
    MinDate="1901-01-01" MaxDate="9999-12-31 23:59:59.999999">
</telerik:GridDateTimeColumn>


Here is the column that fires the OnTextChanged event while in Edit-Mode (see <EditItemTemplate>):

<telerik:GridTemplateColumn HeaderText="Override Discount $" UniqueName="OverrideDiscount">
     
    <ItemTemplate>
         
        <telerik:RadNumericTextBox NumberFormat-DecimalDigits="2"
            ID="txtOverrideDiscountDsp" runat="server"
            gmNumberFormat-AllowRounding="False" Type="Currency" Width="52px"
            BackColor="Transparent" BorderStyle="None"
            Value='<%#CoalesceNumericValuesToRadNumberControl(DataBinder.Eval(Container.DataItem, "UpdateCustomerPrice"), null) %>'>
        </telerik:RadNumericTextBox>              
         
    </ItemTemplate>
                     
    <EditItemTemplate>
        <telerik:RadNumericTextBox NumberFormat-DecimalDigits="2" ID="txtOverrideDiscount" runat="server"
            AutoPostBack="true" OnTextChanged="txtOverrideDiscount_OnTextChanged"
            gmNumberFormat-AllowRounding="False" Type="Currency"
            Value='<%#CoalesceNumericValuesToRadNumberControl(DataBinder.Eval(Container.DataItem, "CustomerPrice"), null) %>'>
        </telerik:RadNumericTextBox>
    </EditItemTemplate>
 
</telerik:GridTemplateColumn>

Thanks

saxan.sartar (at) gmail (dot) com 
Antonio Stoilkov
Telerik team
 answered on 10 May 2012
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?