Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
153 views

Hi,

We have upgraded our existing .NET application from .NET 2.0 to .NET 4.5.2. As part of this upgrade, we have upgraded the Telerik controls as well. The Grid which is upgraded, ie the RadGrid has the following features which are not working as earlier.

1. The sorting is not working  properly. The records are getting sorted only in ascending order, descending order sorting is not working at all. Even while sorted in ascending order, when moved to the next page, the sorting is not getting applied. If I click on the column header for sorting, it moves to the first page and shows those records alone as sorted.

2. Pagination is not working properly. When the next page button is clicked, it moves only till second page. After that, how many ever times, the next page is clicked, it remains  in second page only. Where if i select on a particular page, say 4, it moves to the fourth page correctly. If i click next page after that, it again moves back to the second page and stays there.

Requesting suggestions to fix this issue at the earliest. Let me know if you require any further details.

P.S: I have implemented NeedDataSource event handler as well for binding the data already.

Regards,

Santhosh.

Konstantin Dikov
Telerik team
 answered on 27 Dec 2016
2 answers
218 views

Hi:

because I don't need ImageArea, and only need ThumbnailsArea, so I hide ImageArea !

I need when user click each image (not scroll or next) at ThumbnailsArea, I can fire some client event , and wish get some information about user selected image. How can I do ?

    <style type="text/css">
        .RadImageGallery .rigActiveImage {
            display:none !important;
        }
    </style>

<telerik:RadImageGallery ID="RadImageGallery1" runat="server" Width="550px" Height="100px" ImagesFolderPath="~\img\"   >
                <ThumbnailsAreaSettings ShowScrollButtons="true" Mode="Thumbnails"  ScrollButtonsTrigger="Hover" Position="Top" ThumbnailsSpacing="10"/>
                <ImageAreaSettings ShowDescriptionBox="False" ShowNextPrevImageButtons="False"  />
                <ToolbarSettings Position="None" ShowFullScreenButton="false" ShowSlideshowButton="false" ShowThumbnailsToggleButton="false" />
 </telerik:RadImageGallery>

Konstantin Dikov
Telerik team
 answered on 27 Dec 2016
1 answer
105 views

hi, we are facing a strange issue with grid resize. Will Grid resize / horizontal scroll bar automatically wont work in IE? And also in chrome getting the attached issue in all grids, can this be better aligned?

 

In your demo you have avoided vertical lines, but we have vertical lines, Check the attachment.

Konstantin Dikov
Telerik team
 answered on 27 Dec 2016
3 answers
201 views

Hello,

When resizing a column in a RadGrid, widths of the next columns are automatically resized.

I would like to prevent that, or to freeze the column widths of some columns.

I tried the property EnableNextColumnResize set to false on my grid's (from http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/columns/resizing), but it doesn't change anything.

Is there any solution to this ?

Thanks and regards.

Vasil
Telerik team
 answered on 27 Dec 2016
10 answers
179 views

Hi,

Please see the following scenario:

There is the structure:

Folder A

----- Sub-folder 1

----- Sub-folder 2

----- ...

----- Sub-folder 1000

 

So, we have folder with thousand sub-folders.

Clicking on the Folder A in tree-view side of File-Explorer, we will have the following steps:

1. ResolveRootDirectoryAsTree - execute one time for Folder A in grid (acceptable)

2. ResolveRootDirectoryAsTree - execute one time for Folder A in the tree-view (acceptable)

3. ResolveRootDirectoryAsTree - execute one thousand times, for each sub-folder in the tree-view (very slow)

As you can see, the step 3 is the cause of very slow loading.

Is there any way to avoid this behavior? Do you have any suggestion? 

Maybe to try to disable expand of nodes if there is a very large amount of data under them? Only to populate a grid, as the Windows explorer does?

When i turn-off expanding of the tree-view nodes (args.set_cancel(true) on node clicking for test purpose) i have very good response. Because, there are only two executions of ResolveRootDirectoryAsTree method.

Am i missing something here?

I red the article "Setup virtual scrolling in the RadGrid embedded in RadFileExplorer", but i still have the tree-view issue.

Vessy
Telerik team
 answered on 27 Dec 2016
8 answers
581 views
Hi All.

I have a rad grid and the grid having check boxes in item templates.. i wish to validate that check box at client side.. if any one of the check box was not selected at the time of update then need to show an alert message.. 
Please help ...

 i tried this script but its not working 
<script type="text/javascript">
      function ValidateCheckBox() {
          validateTextBox();
          //get target base & child control.
          var TargetBaseControl = document.getElementById('<%= RadGridAssetCode.ClientID%>');
          var TargetChildControl = "CheckBox1";
 
          //get all the control of the type INPUT in the base control.
          var Inputs = TargetBaseControl.getElementsByTagName("input");
 
          for (var n = 0; n < Inputs.length; ++n)
              if (Inputs[n].type == 'checkbox' && Inputs[n].id.indexOf(TargetChildControl, 0) >= 0)
              if (Inputs[n].checked) return true;
 
          alert('Select at least one checkbox!');
          return false;
      }
    </script>

<ItemTemplate>
      <asp:CheckBox id="CheckBox1" OnCheckedChanged="ToggleRowSelection" AutoPostBack="True" runat="server"></asp:CheckBox>
</ItemTemplate>

<telerik:RadButton ID="btnSave" runat="server" Text="Update" OnClientClick="javascript:return ValidateCheckBox();">
<Icon PrimaryIconCssClass="rbSave" PrimaryIconLeft="4" PrimaryIconTop="4" />
</telerik:RadButton>

Please help...

Regards 

Prassin
Eyup
Telerik team
 answered on 27 Dec 2016
1 answer
119 views

Hello!

I was wondering if there was a way on the back end to setup the toggle states like:

                <ToggleStates>
                    <telerik:RadButtonToggleState Text="Checked" PrimaryIconCssClass="rbToggleRadioChecked"></telerik:RadButtonToggleState>
                    <telerik:RadButtonToggleState Text="UnChecked" PrimaryIconCssClass="rbToggleRadio"></telerik:RadButtonToggleState>
                </ToggleStates>

 

My current code is something like this:

 RadButton button = new RadButton();
                        button.GroupName = rbl.ID;
                        button.ToggleType = ButtonToggleType.Radio;
                        button.ButtonType = RadButtonType.StandardButton;
                        button.AutoPostBack = false;
                        button.Text = row.option_name;
                        button.Value = row.option_value;
                        button.RenderMode = RenderMode.Lightweight;
                        button.Icon.PrimaryIconCssClass = "rbToggleRadio";

Would I have to set an on change to handle changing the PrimaryIconCssClass?

Ianko
Telerik team
 answered on 27 Dec 2016
1 answer
465 views

Hello, I am new to telerik,

 I have being able to add dropdownlist to my radlistbox but I have a couple of challenges with:

1. I need to display a label in front of each dropdownlist,

<telerik:RadListBox RenderMode="Lightweight" ID="RadListBox3" runat="server" AutoPostBackOnTransfer="True">
<ItemTemplate>
BDF1<telerik:RadComboBox ID="cmbBDF4" Runat="server" Skin="WebBlue">
<Items>
<telerik:RadComboBoxItem runat="server" Font-Size="Smaller" Text="NORTH CENTRAL" Value="NORTH CENTRAL" />
<telerik:RadComboBoxItem runat="server" Font-Size="Smaller" Text="SOUTHERN" Value="SOUTHERN" />
<telerik:RadComboBoxItem runat="server" Font-Size="Smaller" Text="NORTHERN" Value="NORTHERN" />
<telerik:RadComboBoxItem runat="server" Font-Size="Smaller" Text="CENTRAL" Value="CENTRAL" />
<telerik:RadComboBoxItem runat="server" Font-Size="Smaller" Text="ZONE" Value="ZONE" />
</Items>
</telerik:RadComboBox>
</ItemTemplate>
<Items>
<telerik:RadListBoxItem Text="BDF1" Value="BDF1" />
<telerik:RadListBoxItem Text="BDF2" Value="BDF2" />
<telerik:RadListBoxItem Text="BDF3" Value="BDF3" />
<telerik:RadListBoxItem Text="BDF4" Value="BDF4" />
</Items>
</telerik:RadListBox>

2. I need to get the value of each selected dropdownlist value.

 

Ivan Zhekov
Telerik team
 answered on 26 Dec 2016
9 answers
399 views
Hi, this is embarrasing but I can't seem to find a property to disable the client resizing the appointments.  Moving, adding and editing is OK but clients are not allowed to change the length of the appointment. 

I can prevent the event with OnClientAppointmentResizeStart(), but it makes no sense to have the option there and then cancel it, thats just confusing UI design - I want to remove the resize iconography period.   (which presumably means slighly less JS is generated too).

regards
ewart
Vasssek
Top achievements
Rank 1
 answered on 26 Dec 2016
4 answers
79 views
There was built in textbox validation for the RadDateTimePicker for when someone typed in the picker's textbox control.  We recently upgraded to v2010.2.826.35 and this built in textbox validation no longer exists.  I've attached two screenshots, prevdatetimepicker.png shows this built in validation and currentdatetimepicker.png shows this built in validation doesn't work/exist or functionality has changed.

Is there a fix/update for this issue?
Karen
Top achievements
Rank 1
 answered on 24 Dec 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?