Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
208 views
Hi.
I´ve downloaded the Clear skin. But I did notice that Splitter was missing. (css file and img files)
http://www.telerik.com/support/skins/details/clear-skin-for-asp-net-ajax.aspx
Bozhidar
Telerik team
 answered on 05 Oct 2011
1 answer
189 views

My first crack at using the RadCombo box and I have a snag.

I  can't get the SelectedIndexChanged event to fire.


Here is some code. My RadComboBox looks like this

<telerik:RadComboBox
    ID="radCustomSearchDropdown" runat="server" Height="200px" Width="200px" DropDownWidth="298px"
    EmptyMessage="Custom Search"
    HighlightTemplatedItems="true"
    EnableLoadOnDemand="true"
    Filter="StartsWith"
    OnSelectedIndexChanged="radCustomSearchDropdown_SelectedIndexChanged"
    AutoPostBack="true">
    
    <ItemTemplate>
        <table style="width: 275px" cellspacing="0" cellpadding="0">
            <tr>
                <td style="width: 260px;">
                    <strong><%# DataBinder.Eval(Container, "Attributes['Title']")%></strong>
                </td>
            </tr>
            <tr>   
                <td style="width: 260px;">
                    <i><%# DataBinder.Eval(Container, "Attributes['Description']")%></i>
                </td>
            </tr>
        </table>
    </ItemTemplate>
</telerik:RadComboBox>

And in the code behind the SelectedIndexChanged code looks like this.

protected void radCustomSearchDropdown_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
{
    int CustomSearchID = Convert.ToInt32(e.Value);
    SetLocationSearchByCustomSearchID(CustomSearchID);
}

This code never gets called.
 
Autopostback is true, the event is defined, what more is there?

Brad
Top achievements
Rank 1
 answered on 05 Oct 2011
3 answers
465 views
hi...

when using RadAjaxManager, its OnResponseEnd event not working properly...
here everything working when i put one alert('ss') before calling ajaxrequest...
but when i comment the alert('ss') onresponseEnd doesn't show the content from UpdatedControl...

please check my code..

here it is...

js code
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
 
 
<telerik:RadScriptManager ID="RadScriptManager2" Runat="server">
</telerik:RadScriptManager>
 
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="ajaxManager_AjaxRequest"
 ClientEvents-OnResponseEnd="NewEncounterResponseEnd">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="HiddenField1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
 
  
                    <asp:Button ID="btnOK" runat="server" Text="OK" 
                        OnClientClick="returnToParentNewEncounter('Save');"/>
                    <asp:HiddenField ID="HiddenField1" runat="server" />
                     
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
 <script type="text/javascript">
 
function returnToParentNewEncounter(btn)
{
 
   if(btn=='Save')
    {        
       //  alert('ss');
         var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("NewEncounter");
    }
}
 
function NewEncounterResponseEnd(sender, args)
{
    var oArg = new Object();
    var oWnd = GetRadWindowNewEncounter();
 
    var hidden_input = document.getElementById("<%= HiddenField1.ClientID %>").value;
    alert(hidden_input);
}
</script>
 
</telerik:RadCodeBlock>

c# code
public void ajaxManager_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
   HiddenField1.Value = "Invalid Patient ID";
}

i used both RadCodeBlock and RadScriptBlock....
but still have the problem.....
shinu rag
Top achievements
Rank 1
 answered on 05 Oct 2011
1 answer
91 views
I am using C# in ASP.Net to create a dynamically loaded line graph chart.  The axis values and amount of series change depending on the data requested by the user.  My problem is that the maximum and minimum data points display on the very top and bottom of the plotting area.  I would like a little extra room so the data point is obvious. I have tried numerous setting changes (but apparently not the right one).  Can anyone recommend the correct setting for this?  Thanks.
Kent
Top achievements
Rank 1
 answered on 04 Oct 2011
1 answer
115 views
Hello Everyone, 

I am wondering if there is a way that you can turn on or off the <NestedViewTemplate> within C#?

Thanks for the help
chris
Top achievements
Rank 1
 answered on 04 Oct 2011
8 answers
332 views
Hi,
in a UserControl I've referenced the Telerik.Web.UI Assembly full qualified.
<%@ Register assembly="Telerik.Web.UI, Version=2010.1.415.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" namespace="Telerik.Web.UI" tagprefix="telerik" %> 

Every time I modify the ascx file, a second entry is inserted:
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 

How can I prevent this second entry to be included? It breaks the control, since I need to reference full qualified?

Thanks
René
Arkadiusz
Top achievements
Rank 1
 answered on 04 Oct 2011
1 answer
93 views
I am working with an autogenerated edit form and trying to get controls that have added in code behind to display on the top of the form.  Here is the code that I am trying to get working.

        protected void MyOnItemInserted(object sender, GridInsertedEventArgs e)
        {
            try
            {
                if (e.Exception != null)
                {
                    e.ExceptionHandled = true;
                    e.KeepInInsertMode = true;
                    check = true;
                    throw new AssetManager.Helper.UniqueIndexViolationException("Error:  Item already exists");
                }
            }
            catch (AssetManager.Helper.UniqueIndexViolationException ex)
            {


                if (e.Item is GridEditFormItem && e.Item.IsInEditMode && check)
                {
                    AssetManager.FormException FormException = new AssetManager.FormException();
                    FormException.Message = ex.Message.ToString();
                    GridEditFormItem _form = e.Item as GridEditFormItem;
                    
                    TableCell cell = _form.EditFormCell as TableCell;
                    
                    for (int i = 0; i < cell.Controls.Count; i++)
                    {
                        if (cell.Controls[i].GetType() == FormException.GetType())
                        {
                            //form exception is already there, remove it and display new message
                            cell.Controls.Remove(FormException);
                            cell.Controls.Add(FormException);


                        }
                        else
                            //add form exception control to table cell
                            cell.Controls.Add(FormException);
                    }
                }
            }

            catch (Exception ex)
            {


            }
        }

I can see the control get added to teh cell.Controls collection but the cell text does not update with the message.  Am I missing something that would update the cell on the postback?  I am doing this in the Inserted event.  Can anyone see what I might be missing?
Jeremy
Top achievements
Rank 1
 answered on 04 Oct 2011
16 answers
432 views
Hello,

    We are still facing the same problem,as described in the last thread (pls see below for more details). The editor contents still scroll up automatically whenever mouse is moved out of the editor after few seconds.
 
Is it possible that we can arrange a web conference ? during the conference, we can reproduce the scrolling problem and it will help you to get idea about it.
    
Regards
Rahul


From: 
Date: 12/16/2009 6:39:56 AM
CC: gaurishn@zconsolutions.com,rajesht@zconsolutions.com
Hello Rahul,

I followed the new instructions but the problem did not appear again. The video which demonstrates my test is attached. I waited 10-15 seconds and moved the mouse outside the content area, but the scroller did not scroll to the top.

Could you please try to reproduce this issue with the latest Q3 SP1 2009 build of RadControls for ASP.NET AJAX? In case you save the editor content using an Asp:Timer control and AJAX as in this demo: Auto-Save then please disable the automatic update and try to reproduce the problem again.
Kind regards,
Rumen
the Telerik team

Adam King
Top achievements
Rank 1
 answered on 04 Oct 2011
1 answer
125 views
I keep getting the error...

Telerik.Web.UI.AppointmentData' does not contain a constructor that takes 4 arguments

since i have moved my site to .net 4, i'm still using...

RadControls_for_ASP.NET_AJAX_2010_1_519 - will this cause problems?
Peter
Telerik team
 answered on 04 Oct 2011
1 answer
161 views
Hi,
I am usig Telerik Scheduler in my project. I am able to get the advanced form values from the code behind by using'AppointmentUpdate' event. But my requirement is to find the values through client-side code. I have gone through the given link - 'http://www.telerik.com/community/forums/aspnet-ajax/scheduler/need-client-side-fxn-called-by-save-close-and-cancel-button-on-appointment-edit-form.aspx'. But I need something like this,

<

telerik:RadScheduler ID="RadScheduler1" runat="server" onClientAppointmentUpdate="SaveFormValues">

<   script type="text/javascript">


function
SaveFormValues() {

var saveButton= $find('<%=RadScheduler1.SaveButton.ClientID %>');  

}

</script>

Please help me to find a solution... :(

Thanks & Regards,
ViPiN.P.C

 

Peter
Telerik team
 answered on 04 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?