Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
480 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
96 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
117 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
345 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
99 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
453 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
135 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
166 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
1 answer
104 views
Hi,

I have a customized calendar within a special page layout (calendar is always visible). I have also two navigation buttons for the previous/next  day/week/month/.

Do you have an example showing the Scheduler Navigation (GoToDate/Today/Prev/Next) on the Client-Side?

Cheers,
Jani
Peter
Telerik team
 answered on 04 Oct 2011
2 answers
612 views
Hi All,

  I have a cell text with a comma  delimited line so I have
Report_date, report_due, Report_Severity, report_order, Report_work_center. I can wrap the text of the grid cell by setting the tableLayout="fixed" and setting the style property like below
.itemNameColumn span
{
    display: block;
    width: 500px; 
  
    word-wrap: break-word; 
  
}

 

My problem is the line that is displayed is chopped off in between  so I get Report_date, report_due, report_sev on one line of the cell and then I get erity, report_order on another line. Is it possible that chopping off occurs at comma rather than in the middle of the text. Below is my radgrid. I am trying to display this huge comma delimited line "Select List" grid template column.

<telerik:RadGrid ID="RadGrid_LoadQuery" Width="100%" AllowSorting="false" AllowPaging="false"
      AllowMultiRowSelection="True" runat="server" GridLines="Both" ExportSettings-ExportOnlyData="true">
      <MasterTableView RetrieveAllDataFields="true" AutoGenerateColumns="false" TableLayout="Fixed">
          <Columns>
              <telerik:GridTemplateColumn HeaderText="Export Name">
                  <ItemTemplate>
                      <asp:Label ID="lblExportName" runat="server" Text='<%#Bind("ExportName") %>'></asp:Label>
                  </ItemTemplate>
              </telerik:GridTemplateColumn>
              <telerik:GridTemplateColumn HeaderText="Select List" ItemStyle-CssClass="itemNameColumn"
                  ItemStyle-Width="1000px">
                  <ItemTemplate>
                      <asp:Label ID="lblSelect" runat="server" Text='<%#Bind("SelectColumnList") %>'></asp:Label>
                  </ItemTemplate>
              </telerik:GridTemplateColumn>
              </telerik:GridTemplateColumn>
          </Columns>
      </MasterTableView>
  </telerik:RadGrid>

Any help will be greatly appreciated.

Anjali
Top achievements
Rank 1
 answered on 04 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?