Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
433 views
Hello,

I am trying to add a RadPanelBar to my web project (ASP .NET AJAX).
I want to do this programmatically (VB or C#).
Inside each RadPanel item I want to place a RadGrid.

I have two problems:

1) I want to display three items of RadPanel items. I want the first item to show as expanded and the others as collapsed.

2) I have a problem handling the event of clicking on an item and then expanding or collapsing the appropriate item.

vb code:

dim x as integer = 0
 
 
 Private Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
    panel_SideMenu.ExpandMode = PanelBarExpandMode.SingleExpandedItem
End Sub
 
 
 Private Sub setPanel(Of T)(ByVal list As List(Of T), ByRef ArrayNameFilds As Array, nameTitle As String)
 
        If Not IsPostBack Then
 
            Dim radGridTmp As New RadGrid
            radGridTmp.DataSource = list
            setColumnsOnGrid(radGridTmp, ArrayNameFilds)
            radGridTmp.ClientSettings.Selecting.AllowRowSelect = True
            radGridTmp.ClientSettings.EnablePostBackOnRowClick = False
            radGridTmp.ClientSettings.Scrolling.AllowScroll = True
 
            Dim radItemTmp As New RadPanelItem()
            radItemTmp.Text = nameTitle
            radItemTmp.Controls.Add(radGridTmp)
 
            Dim radpanel As New RadPanelItem
            If x = 0 Then
                radpanel.Expanded = True
            End If
            radpanel.Items.Add(radItemTmp)
 
            panel_SideMenu.Items.Add(radpanel)
 
            x += 1
        End If
   End Sub 


aspx:

<telerik:RadPanelBar ID="panel_SideMenu" Runat="server">
        </telerik:RadPanelBar>






Nencho
Telerik team
 answered on 13 Mar 2014
3 answers
85 views
AHi there

We have encountered a massive problem with the ConvertCharactersToEntities ContentFilter.

After disabling the filter for a number of our Editors, we found that the issue went away but this now means that we have to apply the same code-behind concept for a large number of pages.

Is there a way to switch off this particular ContentFilter at the configuration level? I have checked the ToolsFile but no luck.

Regards

A.
Nikolay
Telerik team
 answered on 13 Mar 2014
1 answer
101 views
Hello guys,

i'm having problem with gridtempletecolumn, when i add boundcolums the data shown properly but when i use templetecolum it does not show the data, can any one solve my problem.
Shinu
Top achievements
Rank 2
 answered on 13 Mar 2014
1 answer
207 views
here is my listview

<telerik:RadListView runat="server" ID="lvAllUsers" Width="30px">
                                    <ItemTemplate>
                                        <table>
                                            <tr>
                                                <td >
                                                    <asp:CheckBoxList ID="cbID" runat="server" CssClass="item" Font-Size="15px" RepeatDirection="Horizontal">
                                                        <asp:ListItem Text="    "  > </asp:ListItem>
                                                    </asp:CheckBoxList></td>
                                                <td style="padding-bottom:10px"><%# Eval("FirstName") %></td>
                                                <td style="padding-bottom:10px"><%# Eval("FamilyName") %></td>
                                            </tr>
                                        </table>
                                    </ItemTemplate>
 </telerik:RadListView>

how can I get checkboxlists item text at code behind ? or how can I get FirstName and FamilyName and code behind after I binded my data at pageload? I can't use
     foreach (Telerik.Web.UI.RadListViewItem item in lvAllUsers.Items)
            {
                var cb = item.FindControl(index);
            }
 because index is equals an id normally. But in item template id is not always cbID. When item template iteratives id is changing. I need get FirstName and FamilyName or checkboxlists item at codebehind (c# only not js). How can I do that?





Eyup
Telerik team
 answered on 13 Mar 2014
3 answers
104 views
Hi, firstly great components. In the grid view component for SharePoint if you bind to a list and one of the columns allows multiple values then you get the following;

;#Test;#Demonstration;# 

Where as it should be Test, Demonstration

Can you advise how we can change this?

Thanks
P
Marin
Telerik team
 answered on 13 Mar 2014
5 answers
133 views
Hi,

I have radgrid & radtoolbar on my page & I am setting ajax setting through ajaxmanager.
In the toolbar, I have Export to Excel Icon & grid filter icon, on click of excel icon I am opening radwindow.
Radwindow has two buttons ok & cancel, on click of ok button I am setting ajax false & done server side code for exporting excel file.
When I clicked cancel button after exporting excel radwindow get closed.
After that on click of filter icon of radtoolbar, I am setting grid.AllowFilteringByColumn=true & rebinding grid.
But then small flick get displayed as it is performing normal postback.
When I comment grid.AllowFilteringByColumn=true line then it works fine.
This issue is generating in ie8 only.

Please Help




Eyup
Telerik team
 answered on 13 Mar 2014
6 answers
170 views
  I have a RadPivotGrid inside a popup RadWindow. The problem s the horizontal scroll doesn't show up in the grid. Here is my code :
 
<telerik:RadWindow ID="modalPopup"runat="server"Modal="true"VisibleOnPageLoad="false"EnableViewState="false"Width="1105px"Height="600px">
      <ContentTemplate>
          <div id="FullScreenGridLayer"style="float: none; clear: both;">
            
        <telerik:RadPivotGrid ID="RadPivotFullScreenGrid"
            runat="server"AllowPaging="true"Skin="Windows7"
            AggregatesPosition="Columns"  OnPreRender="PivotFullScreenGrid_PreRender>
            <PagerStyleChangePageSizeButtonToolTip="Change Page Size"  PageSizeControlType="RadComboBox">
            </PagerStyle>
            <Fields>
                <telerik:PivotGridColumnFieldDataField="SaleDate"GroupInterval="Year"IsHidden="false"
                    UniqueName="DateByYear"Caption="Year"ShowGroupsWhenNoData="true">
                </telerik:PivotGridColumnField>
                <telerik:PivotGridColumnFieldDataField="SaleDate"GroupInterval="Month"ShowGroupsWhenNoData="true"
                    UniqueName="DateByMonth"Caption="Month">
                </telerik:PivotGridColumnField>
                <telerik:PivotGridRowFieldDataField="PCName"Caption="PC Center"UniqueName="PCName">
                </telerik:PivotGridRowField>
                <telerik:PivotGridRowFieldDataField="ManagerName"Caption="A/C Manager"UniqueName="ManagerName">
                </telerik:PivotGridRowField>
                <telerik:PivotGridRowFieldDataField="RepName"Caption="Agent"UniqueName="RepName"CellStyle-BorderStyle="Dashed">
                </telerik:PivotGridRowField>
                <telerik:PivotGridAggregateFieldDataField="Units"GrandTotalAggregateFormatString=""
                    UniqueName="Units"CellStyle-BorderStyle="Dashed">
                </telerik:PivotGridAggregateField>
            </Fields>
        </telerik:RadPivotGrid>
 
            </div>
      </ContentTemplate>
</telerik:RadWindow>

Please let me know if sth is wrong here. 

Thanks
Pavlina
Telerik team
 answered on 12 Mar 2014
1 answer
573 views
The RadDatePicker includes a image/icon of a calender to the right side of it. My question is would it be possible to hide this image. I just want to display the text box that shows a calender when it is clicked. Can I hide it or set it to visible false?

<telerik:RadDatePicker ID="startDatePicker" runat="server" WrapperTableCaption="" ShowPopupOnFocus="True"></telerik:RadDatePicker>
Brett
Top achievements
Rank 1
 answered on 12 Mar 2014
12 answers
238 views
Hello,

I would like to Know the function to set height on client side.

pageView.set_height("100%")  => doesn't work.


function addNewTab() {
                 
                var tabstrip = $find('<%=RadTabStrip1.ClientID%>');
                tabstrip.trackChanges();
                var tab = new Telerik.Web.UI.RadTab();
                tab.set_text("Root Tab 4");
                tabstrip.get_tabs().add(tab);
                tabstrip.commitChanges();
 
                var multiPage = $find("<%= RadMultiPage1.ClientID %>");
                multiPage.trackChanges();
                var pageView = new Telerik.Web.UI.RadPageView();
                pageView.set_id("Page14");
                pageView.set_contentUrl("<%=this.Page.ResolveUrl("~/page.aspx")%>");
                pageView.set_selected(true);
               
                pageView.set_Height("100%");  // here i want to set height
 
                multiPage.get_pageViews().add(pageView);
                multiPage.commitChanges();
}

Olivier
Top achievements
Rank 2
 answered on 12 Mar 2014
1 answer
67 views
Maybe I've missed it but I want to show results as in a bar chart format where my chart series  are portioned (low, high).
As in company "A" results are 35 to 50 %  and Company "B" results are "15 to 30%.  The bar chart format is how I want it to look - horizontal bars but with values that do not begin at 0.
I'm attaching an image of the results that I am getting 
What I get are to results bars for each company (low and High) 
What I want is Individuals(Not High Net Worth) from 51 to 75 as a single bar
and High Net Worth Individuals with a single bar from 11 to 25 (again, a single bar)

Thanks
Danail Vasilev
Telerik team
 answered on 12 Mar 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?