Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
152 views

When I turn off scrolling ".rgDataDiv" no longer gets emitted, and I lose the ability to set a minimum height.  If I have no records I'm OK because I can use the NoRecords template to set an empty table.  If I have over a page of rows, I'm good because I turned off scrollbars.  BUT, if I only have a few rows, the grid stops after the last row, leaving most of the page blank.  Without ".rgDataDiv" I can't set a min height.  Any Ideas?

<telerik:RadGrid runat="server" ID="RadGridIncomeOfficeRetailRentRoll" CellSpacing="0" GridLines="None"
    DataSourceID="ObjectDataSourceRetailIndusOfficeRentRoll" OnItemCommand="RadGridRentRollROI_ItemCommand"
    AllowSorting="True" AutoGenerateColumns="False" PageSize="20" AllowPaging="true" AllowFilteringByColumn="false"
AllowMultiRowSelection="false" HeaderStyle-Font-Bold="true" CssClass="GridHeightSet">
                    <ClientSettings EnableRowHoverStyle="True">
                        <Scrolling AllowScroll="False" UseStaticHeaders="True" SaveScrollPosition="True" />
                        <Selecting AllowRowSelect="true" />
                    </ClientSettings>
 
                    <MasterTableView DataSourceID="ObjectDataSourceRetailIndusOfficeRentRoll" OverrideDataSourceControlSorting="true"
                        DataKeyNames="TRRD_ID" CommandItemDisplay="None" EnableNoRecordsTemplate="True">
                <NoRecordsTemplate>
                    <table width="100%" border="0" cellpadding="20" cellspacing="20" style="height: 250px;">
                        <tr>
                            <td></td>
                        </tr>
                    </table>
                </NoRecordsTemplate>
Steven
Top achievements
Rank 1
Iron
 asked on 26 Apr 2017
1 answer
116 views
In the past we were able to make RadGrid DateTime columns display the correct date region formatting by only adding Culture="auto" to the page. This still works for all our supported browsers and OSs, except IE11 on Windows 10. On this combination, it is always displaying in US format. We are able to make Firefox work on Windows 10 by installing the desired region. We can also make IE11 work on Windows 7 and 8.1 by changing our region settings. Its just the specific combination of IE on Windows 10. We are currently using telerik version 2015.2.623.35, but were also able to reproduce the issue when upgrading to the latest version. Is there something else we have to add to make this work on IE11 Win10?
Eyup
Telerik team
 answered on 26 Apr 2017
8 answers
1.5K+ views
Hi

There is a radcombobox with checkboxes enabled and how can I access all the checked items in C# code?

Thanks all
Dona.

jamsheer
Top achievements
Rank 1
Veteran
 answered on 26 Apr 2017
6 answers
268 views
When trying to filter on a string with square brackets [ ] in it the filter does not work (all rows are still shown).  I am assuming that this is a situation that grid filtering can't handle.  Is there a solution for this issue or at least a list of invalid characters for filtering that I can pass along to our testers.

Thanks

John
Kevin
Top achievements
Rank 1
 answered on 26 Apr 2017
0 answers
140 views

When editing numbers in a TreeListNumericColumn, some fractions are rounded down if the SQL data type is real.  E.g. 1.4 shows up in read mode, but in edit mode it is 1.39. This does not happen with the RadGrid box. See the picture attached. It's a tree list and a rad grid - both using the same SQL data source.

Source code:

 

<telerik:RadTreeList runat="server" DataSourceID="sql" ParentDataKeyNames="parent_id" DataKeyNames="id" Caption="TreeList"
    EditMode="InPlace">
    <Columns>
        <telerik:TreeListEditCommandColumn ShowAddButton="false" />                   
    </Columns>
</telerik:RadTreeList>
<br /><br />
<telerik:RadGrid runat="server" DataSourceID="sql" AllowAutomaticUpdates="true" MasterTableView-Caption="Grid" >              
    <MasterTableView EditMode="InPlace">
 
        <Columns>
            <telerik:GridEditCommandColumn />
        </Columns>
    </MasterTableView>
</telerik:RadGrid>
 
<asp:SqlDataSource runat="server" ID="sql" ConnectionString="<%$ ConnectionStrings:SqlDB%>" CancelSelectOnNullParameter="false"
    SelectCommand="select 0 id, convert(real, 1.4000) real_value, convert(decimal(10,4), 1.4) decimal_value, null parent_id " />
G716
Top achievements
Rank 1
 asked on 26 Apr 2017
0 answers
171 views
How do I make an ajax call to an asp classic page and pass parameters. How do I then reference the parameter value in the code. I dont see the value being passed.
Karen
Top achievements
Rank 1
 asked on 25 Apr 2017
1 answer
129 views

Hi,

How to i load all the jpg and png files from specific folder into RadImageGallery from server side?

 

 

Thank You

Venkata
Top achievements
Rank 1
 answered on 25 Apr 2017
7 answers
524 views

Hi there,

I want to align the items to the left (see attachment).
Any idea?

Regards,

Marcel

Vessy
Telerik team
 answered on 25 Apr 2017
13 answers
365 views
Anyone get this method to work?

I keep getting Object doesn't support this property or method - though I can see the method in the list for the grid I'm trying to clear in the javascript debugger...


        function UnCheckAll() {
            var grid = $find("rgGroupEmail");
           grid.clearSelecteItems();
        }
 
the rgGroupEmail grid exists, getting the grid in a var -  gridSelectedItems.length returns 274...
Kevin
Top achievements
Rank 1
 answered on 25 Apr 2017
10 answers
1.3K+ views
Hi all,

I seem to be running into an issue...  When the OnClientClicking event is handled, the button will not auto post back (even if AutoPostBack=true and the event is not canceled).  I can work around the issue by manually invoking click() in the handler -or- I saw this post about toggling the autopostback in the client clicked handler.

But, I guess I want to know if this is a bug? or by design (and I'm using the clicking handler incorrectly/for the wrong purpose)?

Markup:
<form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" />
    <div>
        <telerik:RadScriptBlock>
            <script type="text/javascript">
                function testButtonClicking(sender, args) {
                    var confirmed = confirm("Are you sure you want to postback?");
                    if (confirmed)
                        sender.click(); // I wouldn't think this would be neccesary?
                    else
                        args.set_cancel(true);
                }
            </script>
        </telerik:RadScriptBlock>
        <telerik:RadButton runat="server"  ID="TestButton" Text="Test Confirm"
        ButtonType="StandardButton"  OnClientClicking="testButtonClicking"
        OnClick="TestButton_Click" AutoPostBack="true" />
    </div>
</form>

Code behind:
protected void TestButton_Click(object sender, EventArgs e)
{
     Page.Response.Write("posted back");
}

Environment: IIS 7.5 / ASP.NET 4.0
Hüseyin
Top achievements
Rank 1
 answered on 25 Apr 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?