Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
826 views
function pageLoad()  {  
    var grid = $find("RadGrid1");  
    var columns = grid.get_masterTableView().get_columns();  
    for (var i = 0; i < columns.length; i++) {  
        columns[i].resizeToFit();  
    }  
}

I wanted to set the columns sizes on the client programmatically.  The above code found on the forum works great. However, I have a case where one of my columns sometimes has data that might cause some incredibly large width (say > 1000 px). Is there some way to put a max column width? I've debug inspected the columns[i] in the loop hoping to see a width property or method and then reset it if is over my desired max value.

Thanks for your help.
Shinu
Top achievements
Rank 2
 answered on 11 Jul 2014
3 answers
110 views
Hi All,

I have a requirement to export some data (which is completely different from radgrid's columns) into excel sheet when user clicks on radgrid's export to excel command button.   I am able to create new worksheet with required data.  How to remove default worksheet created by radgrid's columns ?

Thanks in advance
Gafoor.
9000999309
gafoor
Top achievements
Rank 1
 answered on 11 Jul 2014
5 answers
261 views
Hi All,

I have a requirement to export some data (which is completely different from radgrid's columns) into excel sheet when user clicks on radgrid's export to excel command button.   I am able to create new worksheet with required data.  How to remove default worksheet created by radgrid's columns ?

Thanks in advance
Gafoor.
9000999309
gafoor
Top achievements
Rank 1
 answered on 11 Jul 2014
1 answer
184 views
Hi,

I am testing the RadHtmlCharts and so far so good.

However, on the X axis i would like to show the hour in the format e.g. 01:00 - 02:00 rather than just showing 01:00 e.g.

Could someone please advise how i can accomplish this.

Attached please find the example chart i am currently using.

Thanks

Tommy
Shinu
Top achievements
Rank 2
 answered on 11 Jul 2014
1 answer
89 views
We recently upgraded our Telerik controls to version Q1 2014 and are now having some trouble with stripping Word 2007 formatting under IE10.  You can see the problem on the Telerik demo page (http://demos.telerik.com/aspnet-ajax/editor/examples/cleaningwordformatting/defaultcs.aspx).  When I paste in some text from Word 2007 into the editor loaded on IE 10 with MSWordConvertAll I get this:

<span><strong><em><span style="font-size: 10pt; font-family: 'Verdana','sans-serif'; color: #4f81bd;"><w:Sdt id="-254595406" title="Show Link" DocPart="B1FE264F85054FCB889BE45DC801997A"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">inconsequential, toe fractures that are improperly managed can lead to significant pain and disability. Treatment is generally straightforward, with excellent outcomes. <w:Sdt id="-254595406" title="Show Link" DocPart="07A86A9329474E549AD4270D9993B428">(<w:sdtPr></w:sdtPr><w:Sdt id="-254595403" DocPart="07A86A9329474E549AD4270D9993B428"><a href="http://localhost:4342/Graphic/Preview.aspx?graphicId=51289" title="Subacute or chronic weakness" target="_utdGraphicPreview"><span style="color: #0000ff;">algorithm 1</span></a><w:sdtPr></w:sdtPr><w:Sdt id="-254595399" DocPart="7D6DB96CCC274B7ABDF60C3ED5A7FD04" SdtTag="51289" ShowingPlcHdr="t"></w:Sdt></w:Sdt>)</w:Sdt></span></w:Sdt></span></em></strong></span>

As you can see, while the raw text is okay, the Word content controls are no longer converted, which is causing some trouble for our OnPaste handler.  Is there a setting I'm missing or is this a regression, or is this combination of Word 2007/IE 10 no longer supported?

Thanks,
David
Ianko
Telerik team
 answered on 11 Jul 2014
10 answers
239 views
Hi all.

I have 2 trigger controls on my page but only on is set to visible at a time.

If I disable on control on the page the Ajax breaks.

Is it possible to progamatically disable the appropriate AjaxSetting, or how do I add multiple UpdatedCongtrols at runtime.

​ <telerik:AjaxSetting AjaxControlID="ddlLocation">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="ddlSpecialty"/>
<telerik:AjaxUpdatedControl ControlID="ltlCapacity"/>
<telerik:AjaxUpdatedControl ControlID="rdDashboard"/>
</UpdatedControls>
</telerik:AjaxSetting>

<telerik:AjaxSetting AjaxControlID="ddlMyLocations">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="ddlSpecialty"/>
<telerik:AjaxUpdatedControl ControlID="ltlCapacity"/>
<telerik:AjaxUpdatedControl ControlID="rdDashboard" />
</UpdatedControls>
</telerik:AjaxSetting>


Only one either ddlLocation or ddlMyLocation is set to visible on my page at a time.

Andy

Maria Ilieva
Telerik team
 answered on 11 Jul 2014
3 answers
351 views
Hello all, my first post here.

I am using the Telerik controls in my Silverlight application.  I have a combo box with items that have been bound to the control and that appears to be working fine.  When the UI is rendered I see a small square box on that control and when I click on that combo box the top value shown is blank with a checkbox next to it.  I would like the combo box to not have any small box on the control itself and I would like to only show checkboxes, when interacting with the control, that have values.

I have posted my code below and attached a couple of photos to show the issue.

<telerik:RadComboBox.ItemTemplate>
  <DataTemplate>
    <Checkbox IsChecked="{Binding}" Content="{Binding}" />
  </DataTemplate>
</telerik:RadComboBox.ItemTemplate>
​


Kalin
Telerik team
 answered on 11 Jul 2014
3 answers
175 views
Hi - I apologize if this has been answered elsewhere, but I couldn't find it anywhere. Our application uses a number of different rad input types (masked text box, numeric text box, date text box, etc), which has been great for client-side validation and formatting (in the case of the masked text box) . Now we are trying to make those devices work with HTML5 input types, and that's become a stumbling block. I found this page: http://www.telerik.com/products/aspnet-ajax/input.aspx which discusses some of what I was looking for, like numeric text boxes and HTML5 input types, but not together. I've searched for this topic, and not found anything super new. Most things are older and they say that the RadNumericTextbox does not support HTML5, which was surprising to me. I'm hoping that I've just missed the way to do this, and someone can steer me in the right direction. Otherwise it sounds like I'm probably stuck using RadTextbox controls, and something like JQuery to do the client-side validation and formatting. Am I just missing something?

Thanks in advance!
Viktor Tachev
Telerik team
 answered on 11 Jul 2014
1 answer
275 views
Hi,

I am having multiple RadGrid on the same page , however, there are not related to each other and each one loads with a different button event. Basically I do use one AjaxManager and one Ajax Loading Panel on the page. To be able to use this Loading Panel for another grid on the same page, the following approach is correct ?
Does it mean for each RadGrid there must be another indicated Ajax Loading Panel ?

01.<telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
02.        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" RequestQueueSize="5">
03.            <AjaxSettings>
04.                <telerik:AjaxSetting AjaxControlID="RadGrid1">
05.                    <UpdatedControls>
06.                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
07.                    </UpdatedControls>
08.                </telerik:AjaxSetting>
09.                <telerik:AjaxSetting AjaxControlID="RadGrid2">
10.                    <UpdatedControls>
11.                        <telerik:AjaxUpdatedControl ControlID="RadGrid2" LoadingPanelID="RadAjaxLoadingPanel2" />
12.                    </UpdatedControls>
13.                </telerik:AjaxSetting>
14.            </AjaxSettings>
15.            <%--<ClientEvents OnRequestStart="RequestStart" OnResponseEnd="ResponseEnd" />--%>
16.        </telerik:RadAjaxManager>
17.        <telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1" Skin="Default" />
18.        <telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel2" Skin="Default" />

Thank you 
Shinu
Top achievements
Rank 2
 answered on 11 Jul 2014
1 answer
112 views
Hi,

We are having a strange problem.

We have approximately 50 users, most of which are OK.

Some though, are having the RadEditor render without the CSS Stylesheet we have included, but only some of the time.

If they open a new tab, or a new window in IE, it works fine.

Looking through the Network Traffic in IE, you can clearly see that one of the WebResource.axd CSS files are not rendered, and then the one which we have specified to set the styling on the Editor within the control using the EditorCssFile, just do not load at all. No 404 or 500 errors, nothing.

Users that work and don't work are on the exact same machines, same OS, same version of IE. We have tried resetting IE back to factor defaults. 

Can anyone shed any light on this?

Thanks
Ianko
Telerik team
 answered on 11 Jul 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?