Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
87 views
Is it possible to make the ImageManager Viewpath an absolute url from another website?
Vessy
Telerik team
 answered on 15 Apr 2013
5 answers
275 views

Hi Telerik,

 

We have problem with RadGrid localization. Our web page (which contains the RadGrid) is localized by local resources using the functionality „Generate Local Resource“. Applying such function adds the meta information into the RadGrid. Thus, here is the problem. The RadGrid doesn’t work correctly with those meta information. So, when the AJAX is used the RadGrid doesn’t load the data, or more exactly in other words:  the “NeedDataSource” event is not fired and therefore the RadGridData_NeedDataSource handler is not called.

 

Here is the code snippet of our implementation:

 

 

        protected void Page_Load(object sender, EventArgs e)

        {

             RadAjaxManager.GetCurrent(this.Page).AjaxSettings.AddAjaxSetting(RadGridData, RadGridData, RadAjaxLoadingPanel);

 

            if (IsPostBack == false)

                   RadGridData.Rebind();

         }

 

        protected void RadGridData_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)

        {

            DataTable  dataTable = GetObjectData();

            RadGridData.DataSource = dataTable;

        }

If the meta information are deleted, the RadGrid works normally again. The other telerik controls are localized as well, and they’re working normally. If we keep at least one meta information at some place, the problem appears again. 

We found an example of using Global resources for telerik controls localization on your websites. We’ve tried it, however it didn’t make desired effect. We’ve copied the file RadGrid.Main. sk-SK.resx into the App_GlobalResources folder. Although the entire page is localized, the RadGrid is not. In addition, these settings is not working although the property (Culture = "sk-SK") is set directly.

 

Is there any way to perform mentioned localization using the  ‘local resources‘ approach?

Thank you very much for your advice.

 

Kind regards,

SCT

Pavlina
Telerik team
 answered on 15 Apr 2013
3 answers
138 views
A client wants a grid where only some of the rows can be dragged around and re-ordered.  Is it possible to present the drag bar only on some rows in the table but not others?  If so, can you point me towards the area of the documentation for this?  Thank you.
Jayesh Goyani
Top achievements
Rank 2
 answered on 15 Apr 2013
1 answer
105 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
182 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
71 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
99 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
54 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
225 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?