Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
90 views

Hi,

We need to add 2 user controls to  an aspx file, these 2 user controls have one telerik ajax manager each. but telerik only allows one ajax manager in a web page. I am getting exception while running the app.

Is there any way work around for this?

Regards,

Joe.
SamJ
Top achievements
Rank 1
 answered on 30 Jun 2010
4 answers
109 views
Hello is there any demo or help article that shows how (using automatic data source operations) in radgrid I can inform the user if an update, insert or delete operation failed??  If not, how can I accomplish this??

Thanx,
Manuel
Shinu
Top achievements
Rank 2
 answered on 30 Jun 2010
5 answers
343 views
Dear Team,
How to remove the vertical white space in Radgrid.
Refer the attached screenshot.



<

 

telerik:RadGrid runat="server" ID="DGE" AllowSorting="false" AllowMultiRowSelection="true"

 

 

AutoGenerateColumns="false" EnableEmbeddedSkins="false" Skin="NextGen" Visible="true"

 

 

OnItemDataBound="Grid_ItemDataBound" EnableEmbeddedScripts="false" >

 

 

<ClientSettings EnableRowHoverStyle="true">

 

 

<Scrolling AllowScroll="true" ScrollHeight="120px" UseStaticHeaders="true" />

 

 

<Selecting AllowRowSelect="true" EnableDragToSelectRows="true" />

 

 

<Resizing ClipCellContentOnResize="true" AllowColumnResize="true" AllowRowResize="True" ResizeGridOnColumnResize="true" />

 

 

</ClientSettings>

 

 

<MasterTableView AutoGenerateColumns="false" GroupsDefaultExpanded="true" TableLayout="Auto">

 

 

<RowIndicatorColumn>

 

 

<HeaderStyle Width="20px"></HeaderStyle>

 

 

</RowIndicatorColumn>

 

 

<ExpandCollapseColumn>

 

 

<HeaderStyle Width="20px"></HeaderStyle>

 

 

</ExpandCollapseColumn>

 

 

<Columns>

 

 

<telerik:GridTemplateColumn HeaderStyle-HorizontalAlign="Center" HeaderText="" UniqueName="RecordCount"

 

 

HeaderStyle-Width="23px" Visible="true">

 

 

<ItemStyle HorizontalAlign="Center" />

 

 

<ItemTemplate>

 

<%

# Container.ItemIndex + 1 %>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridBoundColumn HeaderStyle-HorizontalAlign="Left" >

 

 

<HeaderStyle Wrap="false" />

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn AllowSorting="false" DataField="PaymentAmount" HeaderStyle-HorizontalAlign="Left"

 

 

>

 

 

<HeaderStyle Wrap="false" />

 

 

<ItemStyle HorizontalAlign="Right" Wrap="false" />

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="PaymentCurrency" HeaderStyle-HorizontalAlign="Left"

 

 

">

 

 

<HeaderStyle Wrap="false" />

 

 

<ItemStyle Wrap="false" />

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn HeaderStyle-HorizontalAlign="Left" >

 

 

<ItemStyle Wrap="false" />

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridTemplateColumn >

 

 

<ItemTemplate>

 

 

<asp:Label ID="lblSM" runat="server"></asp:Label>

 

 

<telerik:RadToolTip ID="ttMsg" Text='' runat="server" RelativeTo="Mouse" AutoCloseDelay="50000"

 

 

EnableEmbeddedSkins="false" Skin="NextGen" TargetControlID="lblSM" EnableViewState="false">

 

 

</telerik:RadToolTip>

 

 

</ItemTemplate>

 

 

<ItemStyle Wrap="false" />

 

 

</telerik:GridTemplateColumn>

 

 

</Columns>

 

 

</MasterTableView>

 

 

<FilterMenu EnableTheming="True">

 

 

<CollapseAnimation Duration="200" Type="OutQuint" />

 

 

</FilterMenu>

 

 

<ClientSettings AllowDragToGroup="false" AllowGroupExpandCollapse="true" ReorderColumnsOnClient="false">

 

 

<Selecting AllowRowSelect="True" />

 

 

</ClientSettings>

 

 

<GroupingSettings UnGroupTooltip="true" />

 

 

</telerik:RadGrid>


Expecting your reply.

 

Florence D
Top achievements
Rank 1
 answered on 30 Jun 2010
2 answers
186 views
hi,
I have a RadGridView. In the edit form template i have 2 RadTimePciker Control. So using add new command i can get the edit template for enter 2 times.

My requirement is when i select one time in first time picker i need to change the startTime of the second time picker to the next interval. SO i can avoid one validation.
For eg:
 If i select 7:30 in the first time pciker and the time interval is 15 minutes the second time picker's start time is 7:45 only

Any possibility to do in the client side. I saw one evet called onclientTimeSelected But not get any set_StartTime or something like that to set a new start date and also how to get the object in the edit form template in clientside
Akhil Raj
Top achievements
Rank 1
 answered on 30 Jun 2010
4 answers
87 views
Dear All,

On a webpage, i have a asp.net menu  and a Telerik Scheduler.
It's fine , but only a little problem in rsAllDay css
This div generated by telerik scheduler will cover my menu.
I rewrited a style file like this:

.rsAllDay
{
    z-index:-1;
}

but, it doesn't work.

Is there anyone know where the problem is?

Thanks

Vincent
Vincent Lew
Top achievements
Rank 1
 answered on 30 Jun 2010
2 answers
785 views
I have a GridButtonColumn defined in within a Grid control which needs to display diffeent images depending on the data source row. 

However, there doesn't seem to be a way of setting the ImageURL property of this control from a data source column value.  How can this be done?
Rich
Top achievements
Rank 1
 answered on 29 Jun 2010
1 answer
234 views
Is there a way to set the width of the column when exporting to excel using excelml

I tried using a stylesheet with the grid to export to xml, but the colors don't pass.  ExcelML seems to work better for me on this...so that's why I am trying to see if there is a "width" feature.

Thanks,
GP
Daniel
Telerik team
 answered on 29 Jun 2010
11 answers
585 views

Hi,

These are issues that have been reported by others. I am raising them as a bug reports to be evaluated by Telerik staff. There are two issues reported here.

Scenario: simple app - a RadTreeView on the left, clicking on a node dynamically loads a bunch of RadControls on the right.

Issue 1: If the controls on the right are displayed for the first time (i.e. first click on the corresponding node), they are displayed just fine. However, the second time a user visits a node, the following error is shown: "Script control may not be registered after PreRender".

The stack trace is below. It is obvious from the highlighted lines what generates the problem and I don't have any control over it. Kindly suggest a workaround or issue a fix

[InvalidOperationException: Script controls may not be registered after PreRender.]
   System.Web.UI.ScriptControlManager.RegisterScriptControl(TScriptControl scriptControl) +269
   System.Web.UI.ScriptManager.RegisterScriptControl(TScriptControl scriptControl) +99
   Telerik.Web.UI.RadWebControl.RegisterScriptControl() +43
   Telerik.Web.UI.RadWebControl.OnPreRender(EventArgs e) +39

   Telerik.Web.UI.RadInputControl.OnPreRender(EventArgs e) +28
   System.Web.UI.Control.PreRenderRecursiveInternal() +86
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2041

Issue 2: Same scenario. When doing an action that postbacks the page, the tree is reloaded/rerendered. When this happens, a javascript error occurs:

"Sys.InvalidOperationException: A control is already associated with the element.
Code 0."

This is a showstopper and as of yet I have no explanation for it.

Both problems didn't exist before moving to the new version of the controls.

Thanks,
Cristian

smith spd
Top achievements
Rank 1
 answered on 29 Jun 2010
1 answer
173 views
I have a rad editor on my page and the style builder is showing up incorrectly (see image).  How do I fix this?

    <telerik:radeditor id="tBody" runat="server" Skin="Black" Height="500px"  
            ToolsFile="~/assets/ToolsFile.xml" Width="630px" AllowScripts="True"  
            AutoResizeHeight="True" > 
        <CssFiles> 
            <telerik:EditorCssFile Value="~/assets/EditorContentArea.css" /> 
        </CssFiles> 
            <ImageManager DeletePaths="~/images" UploadPaths="~/images" ViewPaths="~/images" MaxUploadFileSize="99999999" /> 
            <DocumentManager DeletePaths="~/docs" UploadPaths="~/docs" ViewPaths="~/docs" MaxUploadFileSize="99999999" /> 
            <FlashManager DeletePaths="~/flash/uploads" UploadPaths="~/flash/uploads" ViewPaths="~/flash/uploads" /> 
            <MediaManager MaxUploadFileSize="99999999" /> 
            <Content> 
</Content> 
    </telerik:radeditor> 

ToolsFile.xml:
<?xml version="1.0" encoding="utf-8" ?> 
<root> 
  <tools name="MainToolbar"> 
    <tool name="Print" shortcut="CTRL+P"/> 
    <tool name="AjaxSpellCheck"/> 
    <tool name="FindAndReplace" shortcut="CTRL+F"/> 
    <tool name="Cut" /> 
    <tool name="Copy" shortcut="CTRL+C"/> 
    <tool name="Paste" shortcut="CTRL+V"/> 
    <tool name="PasteStrip"/> 
    <tool separator="true"/> 
    <tool name="Undo" shortcut="CTRL+Z"/> 
    <tool name="Redo" shortcut="CTRL+Y"/> 
  </tools> 
  <tools name="InsertToolbar" > 
    <tool name="ImageManager" shortcut="CTRL+G"/> 
    <tool name="AbsolutePosition" /> 
    <tool separator="true"/> 
    <tool name="FlashManager" /> 
    <tool name="MediaManager" /> 
    <tool name="DocumentManager" /> 
    <tool separator="true"/> 
    <tool name="LinkManager" shortcut="CTRL+K"/> 
    <tool name="Unlink" shortcut="CTRL+SHIFT+K"/> 
  </tools> 
 
  <tools> 
    <tool name="Superscript" /> 
    <tool name="Subscript" /> 
    <tool name="InsertParagraph" /> 
    <tool name="InsertGroupbox" /> 
    <tool name="InsertHorizontalRule" /> 
    <tool name="InsertDate" /> 
    <tool name="InsertTime" /> 
  </tools> 
 
  <tools> 
    <tool name="FormatBlock"/> 
    <tool name="FontName" shortcut="CTRL+SHIFT+F"/> 
    <!--tool name="RealFontSize" shortcut="CTRL+SHIFT+P"/--> 
    <tool name="FontSize" shortcut="CTRL+SHIFT+P"/> 
  </tools> 
 
  <tools> 
    <tool name="SelectAll" shortcut="CTRL+A"/> 
    <tool separator="true"/> 
    <tool name="Bold" shortcut="CTRL+B"/> 
    <tool name="Italic" shortcut="CTRL+I"/> 
    <tool name="Underline" shortcut="CTRL+U"/> 
    <tool name="StrikeThrough" /> 
    <tool separator="true"/> 
    <tool name="JustifyLeft" /> 
    <tool name="JustifyCenter" /> 
    <tool name="JustifyRight" /> 
    <tool name="JustifyFull" /> 
    <tool name="JustifyNone" /> 
    <tool separator="true"/> 
    <tool name="Indent" /> 
    <tool name="Outdent" /> 
    <tool separator="true"/> 
    <tool name="InsertOrderedList" /> 
    <tool name="InsertUnorderedList" /> 
    <tool name="ToggleTableBorder" /> 
  </tools> 
 
  <tools> 
    <tool name="ForeColor"/> 
    <tool name="BackColor"/> 
    <tool name="FormatStripper"/> 
  </tools> 
 
  <tools name="DropdownToolbar" > 
    <tool name="InsertSymbol"/> 
    <tool name="InsertTable"/> 
    <tool name="ImageMapDialog"/> 
    <tool separator="true"/> 
    <tool name="ConvertToLower" /> 
    <tool name="ConvertToUpper" /> 
    <tool separator="true"/> 
  </tools> 
 
  <snippets> 
    <snippet name="Order Confirmation"> 
      <![CDATA[
                    <div style="width:300px;border:2px outset #D8D2BD;padding:34px;font-family:Arial, Verdana; font-size:11px;background-color:#F1EFE6;">
                    Dear ____________________,<br />
                    Thank you for inquiring about ____________. Your request will be processed in 48 hours and shipped at the address you have provided. 
                    <br /><br />
                        <b>Please, contact us if you have any problems.</b>
                    </div>
                ]]> 
    </snippet> 
    <snippet name="Email Signature"> 
      <![CDATA[
                    <div style="margin-top:30px;width:80%;border-top:1px dotted gray;padding-top:4px;font-family:Arial, Verdana; font-size:11px;">
                    <b>John Wigham</b><br />
                    Senior Web Developer<br />
                        <a href=<color value="#">john@mysite.com</a>
                        <br />
                            <br />
                                <i>Disclaimer: The contents of this e-mail are privileged and confidential and intended for the addressees at the specified e-mail addresses only.</i>
                    </div>
                ]]> 
    </snippet> 
    <snippet name="Problem Report Feedback"> 
      <![CDATA[
                    <div style="width:300px;border:2px outset #D8D2BD;padding:34px;font-family:Arial, Verdana; font-size:11px;background-color:#F1EFE6;">
                    Hi ____________________,<br />
                    Thank you for reporting this issue. We have verified the problem and it is logged in our system. We will notify you once we have a solution. 
                    <br /><br />
                        <b>Please, contact us if you have any problems.</b>
                    </div>
                ]]> 
    </snippet> 
  </snippets> 
  <contextMenus> 
    <contextMenu forElement="IMG"> 
      <tool Name="SetImageProperties" /> 
      <tool Name="ImageMapDialog" /> 
      <tool Name="LinkManager" />   
    </contextMenu> 
    <contextMenu forElement="TABLE"> 
      <tool Name="ToggleTableBorder" /> 
      <tool Name="SetTableProperties" /> 
      <tool Name="DeleteTable" /> 
    </contextMenu> 
    <contextMenu forElement="TD"> 
      <tool Name="LinkManager" /> 
      <tool Name="InsertRowAbove" /> 
      <tool Name="InsertRowBelow" /> 
      <tool Name="DeleteRow" /> 
      <tool Name="InsertColumnLeft" /> 
      <tool Name="InsertColumnRight" /> 
      <tool Name="MergeColumns" /> 
      <tool Name="MergeRows" /> 
      <tool Name="SplitCell" /> 
      <tool Name="DeleteCell" /> 
      <tool Name="SetCellProperties" /> 
    </contextMenu> 
    <contextMenu forElement="A"> 
      <tool Name="LinkManager" /> 
      <tool Name="SetLinkProperties" /> 
      <tool Name="Unlink" /> 
    </contextMenu> 
    <contextMenu forElement="BODY"> 
      <tool Name="Cut" /> 
      <tool Name="Copy" /> 
      <tool Name="Paste" /> 
      <tool Name="PasteFromWord" /> 
      <tool Name="PastePlainText" /> 
      <tool Name="PasteAsHtml" /> 
    </contextMenu> 
  </contextMenus> 
 
  <symbols> 
    <symbol value="&#8364;" /> 
    <symbol value="&#162;" /> 
    <symbol value="&#163;" /> 
    <symbol value="&#165;" /> 
    <symbol value="&#164;" /> 
    <symbol value="&#169;" /> 
    <symbol value="&#174;" /> 
    <symbol value="&#8482;" /> 
    <symbol value="&#177;" /> 
    <symbol value="&#8800;" /> 
    <symbol value="&#8776;" /> 
    <symbol value="&#8804;" /> 
    <symbol value="&#8805;" /> 
    <symbol value="&#247;" /> 
    <symbol value="&#215;" /> 
    <symbol value="&#8734;" /> 
    <symbol value="&#189;" /> 
    <symbol value="&#188;" /> 
    <symbol value="&#190;" /> 
    <symbol value="&#178;" /> 
    <symbol value="&#179;" /> 
    <symbol value="&#8240;" /> 
    <symbol value="&#182;" /> 
    <symbol value="&#167;" /> 
    <symbol value="&#945;" /> 
    <symbol value="&#946;" /> 
    <symbol value="&#916;" /> 
    <symbol value="&#181;" /> 
    <symbol value="&#937;" /> 
    <symbol value="&#8721;" /> 
    <symbol value="&#216;" /> 
    <symbol value="&#8736;" /> 
    <symbol value="&#186;" /> 
    <symbol value="&#171;" /> 
    <symbol value="&#187;" /> 
    <symbol value="&#183;" /> 
    <symbol value="&#8226;" /> 
    <symbol value="&#8224;" /> 
    <symbol value="&#8225;" /> 
    <symbol value="&#402;" /> 
  </symbols> 
 
  <colors> 
    <color value="" /> 
    <color value="#ffffff" /> 
    <color value="#ffcc99" /> 
    <color value="#ffff99" /> 
    <color value="#ffffcc" /> 
    <color value="#99ff99" /> 
    <color value="#99ffff" /> 
    <color value="#ccffff" /> 
    <color value="#ccccff" /> 
    <color value="#ffccff" /> 
    <color value="#cccccc" /> 
    <color value="#ff6666" /> 
    <color value="#ff9966" /> 
    <color value="#ffff66" /> 
    <color value="#ffff33" /> 
    <color value="#66ff99" /> 
    <color value="#33ffff" /> 
    <color value="#66ffff" /> 
    <color value="#9999ff" /> 
    <color value="#ff99ff" /> 
    <color value="#c0c0c0" /> 
    <color value="#ff0000" /> 
    <color value="#ff9900" /> 
    <color value="#ffcc66" /> 
    <color value="#ffff00" /> 
    <color value="#33ff33" /> 
    <color value="#66cccc" /> 
    <color value="#33ccff" /> 
    <color value="#6666cc" /> 
    <color value="#cc66cc" /> 
    <color value="#999999" /> 
    <color value="#cc0000" /> 
    <color value="#FF6600" /> 
    <color value="#FFCC33" /> 
    <color value="#FFCC00" /> 
    <color value="#33CC00" /> 
    <color value="#00CCCC" /> 
    <color value="#3366FF" /> 
    <color value="#6633FF" /> 
    <color value="#CC33CC" /> 
    <color value="#666666" /> 
    <color value="#990000" /> 
    <color value="#cc6600" /> 
    <color value="#cc9933" /> 
    <color value="#999900" /> 
    <color value="#009900" /> 
    <color value="#339999" /> 
    <color value="#3333ff" /> 
    <color value="#6600cc" /> 
    <color value="#993399" /> 
    <color value="#333333" /> 
    <color value="#660000" /> 
    <color value="#993300" /> 
    <color value="#996633" /> 
    <color value="#666600" /> 
    <color value="#006600" /> 
    <color value="#336666" /> 
    <color value="#000099" /> 
    <color value="#333399" /> 
    <color value="#663366" /> 
    <color value="#000000" /> 
    <color value="#330000" /> 
    <color value="#663300" /> 
    <color value="#663333" /> 
    <color value="#333300" /> 
    <color value="#003300" /> 
    <color value="#003333" /> 
    <color value="#000066" /> 
    <color value="#330099" /> 
    <color value="#330033" /> 
</colors> 
 
</root> 






DTech
Top achievements
Rank 1
 answered on 29 Jun 2010
1 answer
120 views
Hi all,

Let me explain you my scenario , i also know what the problem is i just want a simple workaround not a fix.
The thing is i am using RadTooltipManager with RadSchedular, so whenever you hover over an appointment it fetches additional data from the database and displays in the tooltip,

Everything till here is fine , the other part of the story is that i also have to do a click event on the schedular appointments to perform some other task or basically select the appointmentid by clicking the appointment.

So i want both hover behaviour getting the tooltip and the click behaviour, which is not quite possible because when i initiate a request for the tooltip on hover then i am doing an ajax request.
and when i am clicking i am making a postback which cancels the ajax request and thus i receive this message

"RadToolTipManager response error:
 Exception=Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 0"

What i want is that its ok that i dont get data when i pressed the postback button but is there some way in which i can supress this javascript error somehow handling this error and not displaying it to the user as its annoying.

Thanks,
Aashish Gupta

eraashishgupta
Top achievements
Rank 1
 answered on 29 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?