Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
324 views

Hello All,

I want the RadPanelBar to load by collapsing all the items, if the user need to see and they can expand, but collapse all is not happening at all.

In my case my datasource will be like this

Item1

     --Item1.1

     --Item1.2

 

while loading the page I want to see only the Item1 alone

Mark up code:

<telerik:RadPanelBar ID="rdPnlOrgDetail" RenderMode="Lightweight" OnDataBound="rdPnlOrgDetail_DataBound" runat="server" OnPreRender="rdPnlOrgDetail_PreRender" AllowCollapseAllItems="true" ExpandMode="SingleExpandedItem" OnClientLoad="collapseAll">
    
</telerik:RadPanelBar>

 

Dynamically adding the Items 

rdPnlOrgDetail.CollapseAllItems();
           
            var source= getSource();

            rdPnlOrgDetail.Items.Clear();
            RadPanelItem orgItems = new RadPanelItem();
            orgItems.Text = string.Format("{0} : {1}", orgChart.First().OrganisationScope.Scope, orgChart.First().Name.ToString());
            orgItems.Expanded = false;

            for (int i = 1; i < orgChart.Count; i++)
            {
                RadPanelItem orgItem = new RadPanelItem(string.Format("{0} : {1}", orgChart[i].OrganisationScope.Scope, orgChart[i].Name.ToString()));
                orgItem.Expanded = false;
                orgItems.Items.Add(orgItem);
                orgItems.Expanded = false;
            }
            orgItems.Expanded = false;
            rdPnlOrgDetail.Items.Add(orgItems);
            rdPnlOrgDetail.CollapseAllItems();

 

please do the needful.

 

With Thanks 

Amjath

Amjath
Top achievements
Rank 1
 answered on 10 Jun 2016
16 answers
579 views
Hi,

I am using RadRating Control in a RadGrid. i have paucity of space for the default sized stars RadRating generates. Is there anyway to reduce the size of the stars? i tried creating a custom skin but in vain. can anybody help me? Help much appreciated.

Thank you,

Murali Krishna.
Marin Bratanov
Telerik team
 answered on 10 Jun 2016
11 answers
698 views
Wouldn't it be nice, if Telerik provided some type of "Certification Track" ?

I was wondering how I could suggest the idea to Telerik, to provide "Official Certifications" for people to obtain. Would be another revenue stream for them and something I would like to study for and achieve. 

Thoughts?
Rumen
Telerik team
 answered on 09 Jun 2016
1 answer
165 views

Hello all:

I'm having an issue with RadComboBox not closing the drop down list when moving to a RadSearchBox.

I have a RadSearchBox in the master page and several RadComboBoxes all over the web application, but when I open the list of the RadComboBox and click on the RadSearchBox the RadComboBox list does not close.

the expected behavior is that when the user clicks outside any RadComboBox the list is closed, and this is true except when clicking on a RadSearchBox.

Regards,

Peter Milchev
Telerik team
 answered on 09 Jun 2016
4 answers
231 views

Hi,

I was following below example to select multiple files, facing following issues.

http://demos.telerik.com/aspnet-ajax/asyncupload/examples/validation/defaultcs.aspx?show-source=true

1. When click on "Select" button, and select a file (.pdf) the file getting opened and browse window get frozen.

2. How to show selected success/failure icon, file name, file size followed by "Remove" link and followed by message "This file exceeds the maximum allowed size of 500 KB."

 

 

Ivan Danchev
Telerik team
 answered on 09 Jun 2016
1 answer
234 views

I have the format set to be M/d/yyyy, and it works when selecting a date but if there is any postback on the page it changes for format to use the dashes like M-dd-yyyy.  Any ideas how to fix this?

 

 

<telerik:RadDatePicker ID="radGridDate1" Runat="server" SelectedDate='<%# DateTime.Parse( Eval("Date", "{0:M/dd/yyyy}")) %>' Width="100px" Skin="Bootstrap" >
                                                 <Calendar EnableWeekends="True"  ShowRowHeaders="false" Skin="Bootstrap" > </Calendar>
                                                 <DateInput DateFormat="M/d/yyyy" DisplayDateFormat="M/d/yyyy" LabelWidth="40%">
                                                     <EmptyMessageStyle Resize="None" />
                                                     <ReadOnlyStyle Resize="None" />
                                                     <FocusedStyle Resize="None" />
                                                     <DisabledStyle Resize="None" />
                                                     <InvalidStyle Resize="None" />
                                                     <HoveredStyle Resize="None" />
                                                     <EnabledStyle Resize="None" />
                                                 </DateInput>
                                                 <DatePopupButton HoverImageUrl="" ImageUrl="" />
                                            </telerik:RadDatePicker>

Thanks
Vasil
Telerik team
 answered on 09 Jun 2016
1 answer
519 views

Trying to use an ODataDataSource with a RadSearchBox.  When I try to use it, I get the following error:

The query specified in the URI is not valid. The value for OData query '$orderby' cannot be empty.

Is there a way to set an orderby that I can pass?  I don't see an option (or maybe I'm going nuts - could be) and it appears as though the ODataDataSource is just passing a blank $orderby= in the query string. 

Thanks,

Richard

Bozhidar
Telerik team
 answered on 09 Jun 2016
1 answer
158 views

I bound the radListview control by client side. I want access control (make it visible true/false) in the OnTemplateDataBoundevent of the RadLitsView.

The event is firing but I don't know how to access the controls in the ListView.

Also I want to set the command Names and fire Item Command event and in the command event want make the RadLitsView rows visible true/false.

Please help me to achieve the above functionality.

Eyup
Telerik team
 answered on 09 Jun 2016
3 answers
135 views

Hi!

   I have a checkbox column within my TreeList, when Click [Add], I could get almost all of the fields within the <telerik:RadTreeList> except the checkbox field.

I have tried, if I changed the InUse Column to  <telerik:TreeListBoundColumn>, it will be included in the ExtractValues Hashtable.  But, when I changed it back to checkbox field(code as below), then it is not included in the hashtable.  How could I get the value of the checkbox?

Thanks in advance!

SH

 

    <telerik:TreeListTemplateColumn DataField="InUse" UniqueName="InUse" HeaderText="Enabled" EditFormHeaderTextFormat="Enabled: ">
                                        <HeaderStyle Width="30px"></HeaderStyle>
                                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkInUse" runat="server" Checked='<%# Eval("InUse").ToString()=="Y"?true:false %>' Enabled="false" />
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:CheckBox ID="chkInUse" runat="server" Checked='<%# Eval("InUse").ToString()=="Y"?true:false %>' />
                                        </EditItemTemplate>
                                        <InsertItemTemplate>

                                            <asp:CheckBox ID="chkInUse" runat="server" />
                                        </InsertItemTemplate>
                                    </telerik:TreeListTemplateColumn>

.aspx.cs

protected void radTreeList_InsertCommand(object sender, TreeListCommandEventArgs e)

{
                Hashtable hashPCRelation = new Hashtable();
                TreeListEditableItem editItem = e.Item as TreeListEditableItem;
                TreeListEditFormItem oEditFormItem = editItem as TreeListEditFormItem;
                editItem.ExtractValues(hashPCRelation);

                ...

}

sharon
Top achievements
Rank 1
 answered on 09 Jun 2016
28 answers
908 views
I am having two problems with the popup right now.  My first issue is when
I set EditMode="Popup" and try to edit a row the grid columns expand slightly like
EditMode="InPlace" and textboxes were showing, however, there is nothing.
I cancel the edit and the grid column widths shrink back down slightly and
everything is back to normal.  When I go to add a row, the popup pops up
and all fields are waiting to be entered.  I can't figure out why one pops up
and the other doesn't.  My second issue is when I set
PopupSettings-Modal="True", the whole screen greys out including the popup.
Any ideas?

My RadGrid Details:
Located in <Div> that centers grid on page.
Custom CommandItemDisplay that houses the "Edit Selected" / "Add" / etc.
Grouping enabled.

Let me know if any further details are needed.  Thanks in advace for all replys.

Joshua
Maria Ilieva
Telerik team
 answered on 08 Jun 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?