Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
3.7K+ views
How do I wrap contents of long non space text in a RadGrid column?
Please review the attachment.
I tried following code ,it not helping.
Thank you.
<telerik:GridBoundColumn DataField="ShipName" HeaderText="ShipName" SortExpression="ShipName" UniqueName="ShipName"
             <ItemStyle Wrap="false" Width="50px"  /> 
</telerik:GridBoundColumn>
Disposable Hero
Top achievements
Rank 1
Iron
 answered on 08 Aug 2019
3 answers
218 views

Hi,

I am using radscheduler and customizing the colors of Appointments in Day, Week and Month Views, However, in the Year view I am unable to view the appointments days in different colors (depending on what type of appointments are made on that day). In the year view, all days containing appointments are shown in a single color, is there a way to view these days in different colors?

We are against our project deadline so a quick response would be greatly appreciated.

Thanks,

Jalil Akhtar

Peter Milchev
Telerik team
 answered on 08 Aug 2019
14 answers
315 views

Hello,

we have custom versions of Bootstrap skins in application. Everything works almost fine. It is easy to create build framework (with help of Theme Builder) based on source scss files. Then using multiple variables we are generating multiple "Bootstrap skins" for lightweight mode.

But there are 2 version of skin resources. Classic and Lite. When EnableEmbeddedSkins is active, everithings works. Resources are inserted to page and my overrides are aplied. But there are many problems in Ajax requests. Results are not as expected. Many controls are broken without any reason. For example Grid Pager paddings are missing etc.

So I decided to disable embedded skins and build whole Bootstrap skin. Well, then I found it sometimes doesn§t work and many styles are missing. I found, then in original page, both skins are injected - classic then lite. 

So for example - css handler returns \Bootstrap\Grid.Bootstrap.css then \BootstrapLite\Grid.Bootstrap.css

Just look for css selector '.RadGrid_Bootstrap .rgPagerCell .rgPageNext'. It is defined in classic css file but not in lite css. So when classic css is missing, button is invisible.

I'm lost :-) I thought that both versions are different. That I can use lite OR classic. So why in lightweight mode is still classic css required?

So in my build framework I need to build classic css and append lite version to get working Bootstrap skin?

I'm really loking for any explanation about skins, how it works based on renderring mode.

Best Regards

René

Rumen
Telerik team
 answered on 08 Aug 2019
3 answers
5.7K+ views
Hi,
This seems like it should be so simple - but I can't get it to work. I have a RadGrid , using AjaxManager and NeedDataSource.  I execute different queries - depending on the search criteria selected and return a dataset that is set to the DataSource:

this.RadGrid1.MasterTableView.DataSource = ds;

this.RadGrid1.MasterTableView.DataMember = ds.Tables[0].ToString();


This works great - however I have a clear button that I am trying to clear the grid with - the code is executed but the rows still are in the grid on the screen  - I set the DataSource and DataMember to null and rebind.

protected

void btnClear_Click(object sender, EventArgs e)

{

this.RadGrid1.MasterTableView.DataSource = null;

this.RadGrid1.MasterTableView.DataMember = null;

this.RadGrid1.DataSource = null;

this.RadGrid1.Rebind();

}

So when that didn't work I thought I would manually try to remove the rows and I can't seem to find any RowsCollecion to iterate through and remove.

What am I missing here?? Any help is appreciated. Thanks!

Edited to add - I have EnableViewState set to True on the grid

Edited again - I was able to get the functionality I wanted by creating an empty table and setting the dataset to the datasource and the empty table to the datamember and then doing the this.RadGrid1.Rebind(); 

I would still be curious as to why setting the datasource and datamember to null would not work. It seems as though this functionality works when the NeedDataSource event is called automatically without having to do a Rebind.

joni

Attila Antal
Telerik team
 answered on 07 Aug 2019
1 answer
209 views
     We have a RadGrid with a RadNumericTextBox in a GridTemplateColumn.  How can we have the grid highlight the row where the keyboard focus is?  So as the user Tabs to the next RadNumericTextBox in the next row, the highlighted row of the grid should change.
Attila Antal
Telerik team
 answered on 07 Aug 2019
6 answers
203 views

Hi,

Using the RadGrid in Batch Editing mode and the EditType is set to row.

What is the best way to implement a RangeValidation for a GridNumericColumn ? I 

I just want the user having to enter a value between 1 and 999. If this is not the case, a small message indicates the error.

Thanks in advance to show me the way :)

 

Attila Antal
Telerik team
 answered on 07 Aug 2019
3 answers
435 views

I am looking to get the URL from the radWindow from javascript.  I would rather not have to set it via javascript but not doing this it won't be able to resize the radwindow as it returns an error.  I would like to get the NavigateURL from the radWindow

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    <script type="text/javascript" src="/scripts/ValidateFileType.js"></script>
    <script src="/scripts/ModalWindow.js" type="text/javascript"></script>
    <script type="text/javascript">
 
    function openWinNavigateUrl() {
            var oWnd = $find("<%= rwApplication.ClientID%>");
        oWnd.setUrl("/Repository/Application/2_CompletedPDF.pdf");
        sizeRadWindow(oWnd, 50, 55);
        oWnd.show();
    }
 
    function sizeRadWindow(oWnd, width, height) {
        var browserWidth = $telerik.$(window).width();
 
        var browserHeight = $telerik.$(window).height();
        oWnd.setSize(Math.ceil(browserWidth * width / 100), Math.ceil(browserHeight * height / 100));
        oWnd.center();
 
    }
    </script>
</telerik:RadCodeBlock>

 

                    <telerik:RadLinkButton runat="server" Text="View Completed Application"
                        OnClientClicked="openWinNavigateUrl" AutoPostBack="false" ID="_appLink">
                    </telerik:RadLinkButton>
<telerik:RadWindow RenderMode="Lightweight" runat="server" ID="rwApplication" NavigateUrl="/Repository/Application/2_CompletedPDF.pdf"
    Modal="true" InitialBehaviors="Maximize" RestrictionZoneID="NavigateUrlZone" AutoSize="false" VisibleStatusbar="false" ShowContentDuringLoad="false"
    Behaviors="Close, Maximize" Title="Completed Application">
</telerik:RadWindow>
Vessy
Telerik team
 answered on 07 Aug 2019
1 answer
174 views

Hi all, 

 

Wondering you can help.

We have found that we have to set the width of the radtabstrip in PX to get the scrolling to work.  Can we use 100% so that it uses the full browser width and enables the scroll feature if the width of the tabs is greater than width of the page.  

When we us 100% it errors, however if we set to say 500px it doesn't resize on the different size screens.

Cheers

Joel

 

Rumen
Telerik team
 answered on 07 Aug 2019
1 answer
124 views

Hello,

I am having a hard time triggering OnClientMouseOver event on parent RadMenuItem after the slide the slide containing the RadMenuItem children had been expanded. For example, take the picture below. When I hover over each sub menu item of Guitars menu item, I should have content of .rmSlide .rmVertical:before changed. It does that onClientMouseOver, but it does not change if I hover back from the slide menu items (like ClassicalGuitars, Steel String Guitars and so on) to the Guitars menu item. Is there any way I can do this easily, some functionality provided by the framework or what do you think it is the best practice in this case ? 

 

I am looking forward to your reply. 

Thank you! :)

 

Eric R | Senior Technical Support Engineer
Telerik team
 answered on 06 Aug 2019
1 answer
94 views

  Hi,

We are using RadNumericTextBox inside user control. When this page is rendering on mobile(iOS) RadNumericTextBox is not editable(seems like read only).

Kindly help me to fix this issue as soon as possible.

Code used in user control:

<td style="text-align: center;">
                        <asp:Label SkinID="fieldLabel" ID="Label1" runat="server" Text="Salary and Wages" /></td>
                    <td style="text-align: center;">
                        <telerik:RadNumericTextBox RenderMode="Lightweight" ID="MHI_Salary_Wages_Amount" runat="server" Width="70" MaxLength="8" AllowOutOfRangeAutoCorrect="True" Value="0.00" MinValue="0.00" MaxValue="99999.99" DataType="System.Decimal" Type="Currency"
                            EnableSingleInputRendering="True" Style="text-align: right" AutoPostBack="true" ClientEvents-OnKeyPress="resetValidationState" ToolTip="Salary Wages Amount" SelectionOnFocus="SelectAll">
                            <NumberFormat AllowRounding="true" DecimalDigits="2" KeepNotRoundedValue="True" KeepTrailingZerosOnFocus="True" />
                        </telerik:RadNumericTextBox>
                    </td>

 

Thanks

Loganathan

Rumen
Telerik team
 answered on 06 Aug 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?