Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
78 views
Hi...
When I press the button "Add new record" integrated in the RadGrid I enter (1°position in the Call Stack) in the NeedDataSource method.

My question is "is it possible know which event run before? If I press the Add Button or a simply Autopostaback of other control in the page? Exist a property of RadGrid that indicate me that the Add Button is pressed ?".

 Thanks
Jayesh Goyani
Top achievements
Rank 2
 answered on 09 Nov 2011
2 answers
94 views
Hi
I have been upgrading an appication from Asp.Net to Asp.Net Ajax. But I'm having trouble making the ajax part working.
All I get is this error:
"Error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled." 

As soon as I add a Ajaxsetting programatically or through html I get the same error. 

I have been stuck on this error some while now. I have browsed the forum for help, but cant seem to find a solution to my problem.

Adding a simple page that produces this error

Please help

staleb
Top achievements
Rank 1
 answered on 09 Nov 2011
1 answer
135 views
Hi,

We are having problems with horizontal lines not being aligned in the Scheduler (see attached image not_aligned.png - note that the red areas in the image are appointments that have visible=false and a red background). The mark-up for our Scheduler is:

<telerik:RadScheduler runat="server" ID="CalendarScheduler" DayStartTime="06:00:00" Culture="da-DK" AllowEdit="False" AllowDelete="False" GroupBy="User" DayEndTime="20:00:00" TimeZoneOffset="02:00:00" DataKeyField="ID" Format="HH:mm" DataSubjectField="Subject" DataStartField="Start" DataEndField="End" InsertingInAdvancedForm="True" OverflowBehavior="Expand" ColumnWidth="50px" SelectedView="WeekView" ShowAllDayRow="False" ShowViewTabs="False" Height="414px" OnClientAppointmentInserting="OnClientAppointmentInserting" RowHeight="12px" OnAppointmentDataBound="RadScheduler1_OnAppointmentDataBound" OnTimeSlotCreated="RadScheduler1_TimeSlotCreated" OnFormCreating="RadScheduler1_OnFormCreating" NumberOfHoveredRows="3" FirstDayOfWeek="Monday" LastDayOfWeek="Sunday" OnResourceHeaderCreated="RadScheduler1_ResourceHeaderCreated">

It seems that the misaligned lines causes appointments to be misaligned as well: See attached image appointments.png. The three purple appointments should fill out the entire white areas (the appointment data indicates this when we debug) but they do clearly not.

Any ideas?
Plamen
Telerik team
 answered on 09 Nov 2011
17 answers
269 views
Hi
I have an aspx page in a sharepoint site which has a RadHTMLField. When I edit the page and publishes it without updating the RadHTMLField, an extra div gets created as the outer div to the existing contents of the field. And this happens every time I publish the page after editing it.

The code looks like
<radE:RadHtmlField ID="RadHtmlField1" FieldName="FocusOn" AllowSpecialTags="true" AllowScripts="true" runat="server"></radE:RadHtmlField>

Can you plz suggest a script or some other resolution so that the extra div is not checked in with the page every time.
Regards
Sudhanshu Kaushik
Rumen
Telerik team
 answered on 09 Nov 2011
5 answers
82 views
Hello,

I have a treeview and its context menu for which i initialize its items at the design time .
I populate the treeview dynamically. For each node, i want to configure the context menu differently ( ex: Add new contextMenu Items, change their text...). Can I do it at the server side? It seems that the contextMenu is not proper to the node, but to all the treeview? And the modifications are applied to the contextMenus of all the TreeViewItems..

Thank You for Clarification.


Kate
Telerik team
 answered on 09 Nov 2011
1 answer
197 views
I've customized the editor toolbars by removing some buttons while adding my own custom buttons.  I've implemented a clientside OnClientCommandExecuting handler to intercept and cancel keyboard shortcuts to the removed editor buttons.  I also want to handle click events from the editor toolbar custom buttons. 

Telerik documentation says to add onclick handlers to the editor's RadEditorCommandList.  But, I've noticed that custom button click events are first processed by the OnClientCommandExecuting handler before they get to the RadEditorCommandList handlers.  

What is the difference between using these two handlers?  The custom buttons will instigate serverside save and saveas functionality via an ajax post.  I'ld prefer to combine everything into the OnClientCommandExecuting handler, and to launch save/saveas ajax posts from there.  After each launch I will cancel the click event.


<script type="text/javascript">
  
    function OnClientCommandExecuting(editor, args) {
       if ("Save" == args.get_commandName()) {
            alert("OnClientCommandExecuting Save"); 
            args.set_cancel(true);          
        } else if ("SaveAs" == args.get_commandName()) {
            alert("OnClientCommandExecuting SaveAs");
            args.set_cancel(true); 
        }
    } //EOF OnClientCommandExecuting
  
</script>
  
<telerik:RadEditor ID="telerikeditor" Runat="server" 
                   OnClientLoad="onClientLoad"
                   OnClientCommandExecuting="OnClientCommandExecuting">
    <Tools>
        <telerik:EditorToolGroup Tag="grpInputOutput">
            <telerik:EditorTool ImageUrl="Images/radeditorSave.gif" 
                Name="Save" ShowText="False" 
                Text="Save" />
            <telerik:EditorTool ImageUrl="Images/radeditorSaveAs.gif" 
                Name="SaveAs" ShowText="False" 
                Text="Save As" />
            <telerik:EditorSeparator />     
        </telerik:EditorToolGroup>
     </Tools>
     <Content>
     </Content>
</telerik:RadEditor>    
          
<script type="text/javascript"
     //locate this script after the radeditor HTML declaration
    RadEditorCommandList["Save"] = function(commandName, editor, oTool) {
        alert("RadEditorCommandList Save");
    }
</script>
Rumen
Telerik team
 answered on 09 Nov 2011
6 answers
105 views
Hi Telerik team,

is it possible to change the size of the SPRadEditor via Javascript? 

Following code does not work for me:

function OnClientLoad(editor, args) {
    editor.get_contentAreaElement().style.height = 490px;
}


Thank you very much,
Ben
Rumen
Telerik team
 answered on 09 Nov 2011
4 answers
96 views
Hi,

I need to put circa 20 sliders onto one page - a survey.  I'd prefer to somehow use one shared slider - similar to with the calendar popup code.  Is there an easy way to do this?  Same goes for the slider items - worst case I suppose that I can add them from the server code but would prefer that I could use a shared calendar.

Any help much appreciated.

Cheers,

Jon
Jon
Top achievements
Rank 1
 answered on 09 Nov 2011
1 answer
183 views
We have requirement to use x and y coordinate of cell within radgrid.

Please suggest on it that how to get this.


Thanks
Shimab
Marin
Telerik team
 answered on 09 Nov 2011
1 answer
46 views
I have a complex problem:

I have in my Grid a GridTemplatecolumn which displays the text " rapport " but this text must be visible only for some lines

The condition to enable or disable the visibility is within the second if

protected void GridDisplayOldRDV_ItemDataBound(object sender, GridItemEventArgs e)
{
 
    HiddenField HiddenFieldIdParticipant = e.Item.FindControl("HiddenFieldIdParticipant") as HiddenField;
    Utilisateur utilisateur = (Utilisateur)Session["utilisateur"];
    if (HiddenFieldIdParticipant != null)
    {
         if (utilisateur.idUtilisateur.ToString() != HiddenFieldIdParticipant.Value.ToString())
        {
            GridDisplayOldRDV.MasterTableView.GetColumn("Debriefing").Visible = false;
        }
    }
}


Right now , my problem is with this line :
GridDisplayOldRDV.MasterTableView.GetColumn("Debriefing").Visible = false;

The column disappears everytime...

I hope i'm clear enough

Thanks in advance for your help

Adigard
Top achievements
Rank 1
 answered on 09 Nov 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?