Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
142 views
I want be able to reorder items in radpanelbar like:
RadPanelBar
   MyList1   ->RadPanelItem
      item1   -> nested RadPanelItem
      item2
   MyList2
      item3
      item4

to

   RadPanelBar
      MyList1   ->RadPanelItem
         item1   -> nested RadPanelItem
         item2
         item3
      MyList2
         item3
         item4

I saw this  article but the thing is that i'm generating items dynamically on server, and for everything else i'm using
JavaScript.
Can you give me some examples or tips?


  
Boyan Dimitrov
Telerik team
 answered on 22 Jul 2013
3 answers
70 views
I have a RadGrid that uses a SQLDataSource.
I have a Select button in the grid, code at the bottom.

In the SelectedIndexChanged event for the grid I am capturing the .SelectedValue and using that to perform other SQL commands.
Issue is that, as an example, if I select the first row in my Grid but the database has been updated to have another row that would be before it (based on order/filtering rules) the selectedvalue that is given is this new record.

I figure it must have something to do with the "NeedDataSource" event, but I can't figure out what...  I would think that if I select a value for a grid, there should never be any rebinding done until after that is already selected, else I run into problems such as this...


<telerik:GridButtonColumn Text=">" CommandName="Select">
      <HeaderStyle Width="10px" />
      <ItemStyle Width="10px" />
</telerik:GridButtonColumn>
Andrey
Telerik team
 answered on 22 Jul 2013
3 answers
193 views
I have a page that has a number of controls on it. Included in these controls are a number of RadDropDown controls, text boxes as well as a RadScheduler and RadCalendar control and all of these controls are contained within a RadAjaxPanel.

The RadAjaxPanel has a RadAjaxLoadingPanel associated with it, that should display when a user changes the focused date on the RadCalendar, or if the user makes a selection from any of the RadDropDown controls. A RadAjaxManager handles events from the RadDropDown controls, and for each control that's managed, the LoadingPanelID is set to the pages only RadAjaxLoadingPanel.

This all works just fine, but the when the loading panel displays, it only covers half of the page, leaving all the controls (typically the text box controls) that are further down the page than the RadScheduler "exposed".

I found this topic which discusses the same issue, but the solution left me with another problem. Now when the RadAjaxLoading panel is displayed, it doesn't "cover" RadScheduler appointments or the RadScheduler Header and these appear above the RadAjaxLoadingPanel. I checked the zindex of one of the appointments and it seemed to be only 14, much lower than the 99999 of the RadAjaxLoadingPanel was set to.

In addition, setting the IsSticky and zindex properties appears to stop the animation from being displayed.
 
Any ideas?


Maria Ilieva
Telerik team
 answered on 22 Jul 2013
1 answer
102 views
Hai
  How to save the upload file in target temporary folder in client side,i mean without click server side event.my need is if user upload file(only one file) at that time file is stored in target folder may be using handler in radsyucupload control.

Regards
  Aravind
Hristo Valyavicharski
Telerik team
 answered on 22 Jul 2013
10 answers
613 views
Hi,

I would like to know if it is possible to cause a postback on selecting "Check All" option in the RadComboBox.

The documentation in this link says that the Check All checkbox "does" make a post-back, but am guessing thats a typo.

"Check All" CheckBox is not a RadComboBox item. It is a functionality implemented entirely on the client and does make a post-back to the server on checked / unchecked events, when AutoPostBack of RadComboBox is set to 'true'. 

Thanks!

Milad Doraki
Top achievements
Rank 1
 answered on 22 Jul 2013
1 answer
381 views
I have two RadButton controls setup as Radio button toggle buttons. Code below:
<telerik:RadButton ID="optOrgPosting" ClientIDMode="AutoID" runat="server" GroupName="PostingType" ToggleType="Radio" OnClientClicked="onPostingTypeChanged" Text="I am posting for my nonprofit organization/public school/university." AutoPostBack="False" ButtonType="ToggleButton" Skin="Silk"></telerik:RadButton>
<br />
<telerik:RadButton ID="optSFPosting" ClientIDMode="AutoID" runat="server" GroupName="PostingType" ToggleType="Radio" OnClientClicked="onPostingTypeChanged" Text="I am a search firm, advertising firm, consultant or other company posting on behalf of a nonprofit organization." AutoPostBack="False" ButtonType="ToggleButton" Skin="Silk"></telerik:RadButton>


I want to setup an OnClientClicked event JavaScript function to fire that will hide or show controls based on which of the two controls are displayed. Nothing too hard. What are the parameters passed into the OnClientClicked event and how can I get the Id of the control that was clicked?

Shinu
Top achievements
Rank 2
 answered on 22 Jul 2013
9 answers
1.2K+ views
Hello,

I'm new in using the Telerik Controls and have a question regarding the use of the RadListBox.

I have a RadListBox on my page with the CheckBoxes set to "true". How can you set the RadListBox that when a user selects an item, the checkbox is set as well and when a user checks a CheckBox, the item gets selected.

Or is there a way to just have the CheckBoxes enabled in a RadListBox and disable the selection method.

Thanks

Regards

Degenhardt Gerrit
Nahwin
Top achievements
Rank 1
 answered on 22 Jul 2013
3 answers
288 views
I have two EntityDataSources. One for grid and second for column filter:

<asp:EntityDataSource ID="dsTasks" runat="server" ConnectionString="xxx" DefaultContainerName="xxx" EnableFlattening="False" EntitySetName="Tasks" EntityTypeFilter="Task" Include="Type">
</asp:EntityDataSource>
<asp:EntityDataSource ID="dsType" runat="server" ConnectionString="xxx" DefaultContainerName="xxx" EnableFlattening="False" EntitySetName="Types" EntityTypeFilter="Type">

I want to sort and filter grid by type name:

<telerik:GridTemplateColumn DataField="TypeId" HeaderText="Type" SortExpression="Type.Name" UniqueName="TypeId">
        <ItemTemplate>
            <asp:Label ID="lbl" runat="server" Text='<%# Eval("Type.Name") %>'></asp:Label>
        </ItemTemplate>
        <FilterTemplate>
            <telerik:RadComboBox ID="cmb" DataSourceID="dsType" DataTextField="Name"
                DataValueField="Id" Height="200px" SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("TypeId").CurrentFilterValue %>'
                runat="server" OnClientSelectedIndexChanged="TypeIdIndexChanged">
            </telerik:RadComboBox>
            <telerik:RadScriptBlock ID="rsb" runat="server">
                <script type="text/javascript">
                    function TypeIdIndexChanged(sender, args) {
                        var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
                        tableView.filter("TypeId", args.get_item().get_value(), "EqualTo");
                    }
                </script>
            </telerik:RadScriptBlock>
        </FilterTemplate>
    </telerik:GridTemplateColumn>

In my code filtering work fine, but I can't sort. I have "Invalid input string format." error.

When I changed "DataField" value to "Type.Name" sorting works fine, but filter always show empty grid.
Andrey
Telerik team
 answered on 22 Jul 2013
3 answers
78 views
Is there a way to have the RadAutoCompleteBox select the top most item when the user tabs out of the field?  
Bozhidar
Telerik team
 answered on 22 Jul 2013
1 answer
128 views
We are using the Radgrid and the problem is lines are sorted by the number in the textbox.

Somehow the text in the box gets left aligned and we need it to be right aligned even though in the code we have made right aligned. On mouse over the text starts getting right aligned but when page is reloaded it gets left aligned again.

We are using .net 4 and IE9.
Jayesh Goyani
Top achievements
Rank 2
 answered on 22 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?