Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
104 views
I have several custom dialogs attached to toolbar buttons which do various things like insert links. Frequently (not always), when I call pasteHtml(), the content gets inserted at the top of the editor, rather than at the cursor position.

I understand that this is due to the editor losing focus, and therefore forgetting the cursor position. You can sort-of reproduce this in the demo editor. Place the cursor in the middle of the content somewhere, then click on a blank area of the toolbar, so that the editor loses focus. Then click the add link button and see that the link gets inserted at the top.(I know this is artificial, but I think it a useful demonstration of what happens.)

I am trying to figure out how to either prevent the loss of focus, or write some code which remembers the cursor position so that I can restore it before calling pasteHtml().

I tried calling editor.getSelection().getRange() after the button click, but the focus seems to already be lost, and the range object seems to refer to the top of the editor content. I also tried calling getRange() in OnClientSelectionChange, and also in a 'blur' event I attached to the content area. I have tried to set unselectable="on" in various places. None of these things helped.

I see that this behaves reliably in your built-in dialogs. So I wonder what I am doing wrong. (My custom dialogs are iframes contained in jQuery UI dialogs, which I don't think is too different in principle from your built-in dialogs.)
Marin Bratanov
Telerik team
 answered on 15 Apr 2013
4 answers
170 views
I use RadAsyncUpload to process multiple files upload online. I want to make an uploading queue with certain length.

Tow questions:

Q1: How to count the concurrent uploading users, exclude those who browse this page without uploading.

Q2: If the count meets max-queue-length, is it possible to make the RadAsyncUpload waiting until the count < max-queue-length, after the files selection on the client.

I've searched the forum, but found nothing concerning my question. Is there any suggestion?
Hristo Valyavicharski
Telerik team
 answered on 15 Apr 2013
1 answer
67 views
Hi

I want to customize my shorting icon in Radgrid. Any one can help me in this.

Regards,
Nithya
Shinu
Top achievements
Rank 2
 answered on 15 Apr 2013
7 answers
98 views
Hi,

1) How can I apply custom css style for SPRadgrid for Sharepoint 2010?
2) How can I hide the option of showing up SPRadGrid Designer for the SPRadGrid webpart when the user (with viewer permissions) clicks on the dropdown which is at the upper right corner? (see image for understanding)
Tsvetoslav
Telerik team
 answered on 15 Apr 2013
0 answers
53 views
Hi,

I would like to have a detail form with extended information about the selected item.
I think that i could use TreeListEditCommandColumn to do that hidding the add button.
I like this approach as it avoids postback (some info in the treelist is composed on ItemDataBound).
I would like to know your opinion because maybe there is a better solution.
 
Thank you.
Sonia
Top achievements
Rank 1
 asked on 15 Apr 2013
12 answers
1.2K+ views
Hi,
I am using a radgrid in my application as given below.

 

<telerik:RadGrid ID="RadGridMeasuresList" runat="server" AllowPaging="True" AutoGenerateColumns="False" Width="700px" ShowFooter="false" Skin="WebBlue" BorderColor="White" BackColor="White" ItemStyle-BorderColor="Black" Height="300px" HeaderStyle-ForeColor="Black" onitemdatabound="RadGridMeasuresList_ItemDataBound" onitemcreated="RadGridMeasuresList_ItemCreated">

 

 

<ItemStyle BorderColor="Black" />
<MasterTableView>

 

 

<Columns>

 

 

<telerik:GridBoundColumn HeaderText="Measure" DataField="MeasureName" HeaderStyle-Wrap="false" ItemStyle-Wrap="true" HeaderStyle-Width="250px" ItemStyle-HorizontalAlign="Left" HeaderStyle-Font-Bold="false">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn HeaderText = "Total Opportunities" DataField="Opportunities" HeaderStyle-Wrap="false" UniqueName="Opportunities" ItemStyle-HorizontalAlign="Left" HeaderStyle-Font-Bold="false">

 

 

<ItemStyle Wrap="True"/>

 

 

</telerik:GridBoundColumn >

 

 

<telerik:GridHyperLinkColumn HeaderText = "Patients with Clinical Alerts" DataTextField="NonComplianceCount" ItemStyle-HorizontalAlign="Left" UniqueName="NonComplianceCount" HeaderStyle-Font-Bold="false" HeaderStyle-Wrap="false" DataNavigateUrlFields="Condition,Measure" DataNavigateUrlFormatString="IPClinicalAlerts.aspx?Condition={0}&Measure={1}&IsCompliant=False&PatientSearch=0" HeaderStyle-Width="150px">

 

 

<ItemStyle Wrap="True" Font-Underline="true"/>

 

 

</telerik:GridHyperLinkColumn>

 

 

<telerik:GridBoundColumn HeaderText = "Compliance Rate" DataField="Rate" HeaderStyle-Wrap="false" UniqueName="Rate" ItemStyle-HorizontalAlign="Left" HeaderStyle-Font-Bold="false">

 

 

<ItemStyle Wrap="True" />

 

 

</telerik:GridBoundColumn>

 

 

</Columns>

 

 

</MasterTableView>

 

 

<HeaderStyle BackColor="#E1E1E1" Font-Bold="True"/>

 

 

<clientsettings enablerowhoverstyle="True" >

 

 

<selecting allowrowselect="True" />

 

 

<scrolling AllowScroll="true" usestaticheaders="True" />

 

 

</clientsettings>

 

 

</telerik:RadGrid>

Here are the 2 problems i am facing
1.When i view this grid in browser i am not getting a Underline for the values in the Hyperlink column even after setting Underline property as true for the Items. Even i tried setting using CssClass but i am not able to acheive it.
2.On mouse over the values in the HyperLink columns i am getting a tooltip displaying the same values. How to hide the tooltip.

Thanks in advance,
Sharath

 

Margret
Top achievements
Rank 1
 answered on 15 Apr 2013
1 answer
218 views
I have an application using a MasterPage with content pages and user controls. Inside one of the user controls we have another user control (I know, it's an Inception kind of thing). This user control spawns a RadWindow. Everything works fine: the window shows some RadGrids populated with fields from the DB, then I close the window. All of this is being done with RadWindow1.VisibleOnPageLoad in some kind of server-side event. After closing the window, I have no way of setting RadWindow1.VisibleOnPageLoad = false; so when I click on another control that fires an AJAX event (which in this case shows a different RadWindow) the RadWindow from before pops back up. In other parts of our application we've passed arguments to the server through the OnClientClose method of the RadWindow and also by calling the OnAjaxRequest event of the RadAjaxManager. This fires a server side event and I can set the property, but I'm using a RadAjaxManagerProxy, which doesn't support this event. 

I've come up with some options for this:

- Set VisibleOnPageLoad on the client side, which I can't find anywhere on any forums or documentation.
- Pass some kind of different event to the server so I can set the property.

Or maybe there's something completely different that I'm not aware of or haven't thought of. I'm open to any options.
Marin Bratanov
Telerik team
 answered on 15 Apr 2013
1 answer
68 views
Hello,
  I want the user to be able to add a value to the RadComboBox if it is not there.  Is this possible with the RCB?

Thanks
Princy
Top achievements
Rank 2
 answered on 15 Apr 2013
2 answers
501 views
Hi,
I want to display more than one data in the tooltip (on mouse hover) in pie chart (HTMLChart)
ex. project1 - output status(%) - started date.
<telerik:RadHtmlChart Height="400px" runat="server" ID="PieChartProjectOutput" DataSourceID="DSProjectOutcome"
Width="800px">
<Legend>
<Appearance BackgroundColor="White" Position="Right" Visible="true">
</Appearance>
</Legend>
<PlotArea>
<Series>
<telerik:PieSeries DataFieldY="Output" StartAngle="90" Name="Role_id"
 ExplodeField="Output"
NameField="Project_Name">
  <LabelsAppearance Position="Circle" DataFormatString="{0}" DataField="Output">
 </LabelsAppearance>
<TooltipsAppearance DataFormatString="{1}{0}"></TooltipsAppearance>
</telerik:PieSeries>
</Series>
</PlotArea>
 </telerik:RadHtmlChart>

Also i want to change the legend size (to display bigger than the normal size).
pls help me how to do that.


Thanks
-Alex
Alex
Top achievements
Rank 1
 answered on 15 Apr 2013
6 answers
467 views
Hello everyone,

I've downloaded the RadControls for ASP.NET AJAX and I am trying to use them in a MVC application. I'm especially interested on using
the RadScheduler control but I am having a hard time figuring out how to interact with it using AJAX/Json.
I am wondering if someone has some example of how could I bind/edit the Appointments or some other action within the Scheduler.

Thank you all!

Namaste
Plamen
Telerik team
 answered on 15 Apr 2013
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?