Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
66 views
Anyone,
In this thread for RadWindow, the last comment mentions about a sample code in the CodeLibrary - 
http://www.telerik.com/forums/how-to-style-radwindow-that-can-be-moved-and-resized-but-not-maximized

I tried searching around, but don't know how to find it, can someone help me with the link?

Waiting...

thanks!
A
Top achievements
Rank 1
 answered on 26 Feb 2015
4 answers
106 views
How do I create an OrgChart that always has 2 levels? 1 parent and all it's next children.   I want the children to be in 4 columns with N number rows.

1
2 3 4 5
6 7 8 9

If you drilldown 2
2
1 2 3 4
5 6 7 9
10 11



Hristo Valyavicharski
Telerik team
 answered on 26 Feb 2015
1 answer
106 views
Greetings,

How do I get the chooser to change everything on the page?  Right now, I change the skin and the controls are restyled, but I have to refresh with F5 to get the background to change.  Is there some kind of cache setting I need to change?

Thank you!

Matt
Radoslav
Telerik team
 answered on 26 Feb 2015
5 answers
468 views
Hello, I'mt trying to disable all tooltips associated with the datepicker.
I succeeded to disable the cell days tooltip by setting:

radDatePicker.Calendar.ShowDayCellToolTips=false;

but when I hover the basic days in the week it still shows me the day name. (like in the picture attached)




Eyup
Telerik team
 answered on 26 Feb 2015
5 answers
77 views
Hi,

I have a RadFileExplorer in a page using a masterpage and using RadAjaxManagerProxy.

When I add a folder or delete on I get a javascript error : Value must not be null for Controls and Behaviors.

When I remove the RadAjaxManagerProxy, I do not get this error. 

What is the problem?  I need the RadAjaxManagerProxy.

Part of my code:

<asp:Content ID="Content2" ContentPlaceHolderID="cphContent" runat="server">
 
    <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
       <AjaxSettings>
           <telerik:AjaxSetting AjaxControlID="updContent">
               <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="updContent" LoadingPanelID="radAjaxLoadingPanel" />
                   <telerik:AjaxUpdatedControl ControlID="FileExplorer1" />
               </UpdatedControls>
           </telerik:AjaxSetting>
       </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
 
    <asp:Panel ID="updContent" runat="server" >
        <telerik:RadFileExplorer runat="server" ID="FileExplorer1" Width="520px" Height="500px" CssClass="rfeFocus" AllowPaging="true" PageSize="10" ExplorerMode="FileTree" VisibleControls="ContextMenus,Toolbar,TreeView">
            <Configuration EnableAsyncUpload="true" ></Configuration>          
        </telerik:RadFileExplorer>
    </asp:Panel>
</asp:Content>

Kind regards

Suzy


Vessy
Telerik team
 answered on 26 Feb 2015
6 answers
461 views
I've searched various places but haven't found any answer so I'll throw it out here.

We have an ascx control with a RadAsyncUpload and RadComboBox. The ComboBox posts back which causes the Upload to lose the files. I've tried using PostbackTrigger property but my issue is the button that should cause the Postback and saving the file is on the parent aspx page. 

Any clues on how to get this to work properly?
Nencho
Telerik team
 answered on 26 Feb 2015
11 answers
1.7K+ views
I am using dynamically loaded user controls into a MultiPageView control.  I have a button event in the dynamic user control to update a control in the user control.  I get an error "Microsoft JScript runtime error: Sys.InvalidOperationException: Could not find UpdatePanel with ID 'PV4_userControl_ReportViewer1_ReportViewer'.  If it is being updated dynamically then it must be inside another update panel.

I have not found demo code that matched my requirements.  I need the tab strip and RadMultiPage controls to be loaded at run time.  The only dynamic user controls I have found is loaded into the parent page via a panel control  The code is using the SQL server reporting services web report viewer control.  .

The user control button event does post back and the code executes.  The report viewer is in the user control markup.  I have tried using the radajaxmanagerproxy in the user control.  I still got the same error.  I have also tried the below code in the parent page.  I still get the same error.  Do you have any suggestions?

SSRSReportUserControl controlR = (SSRSReportUserControl)Page.LoadControl("~/SSRSREportUserControl.ascx");
controlR.ID = e.PageView.ID + "_userControl";

e.PageView.Controls.Add(controlR);
Button myButton = (Button)controlR.FindControl("Button1");
ReportViewer myRpt = (ReportViewer)controlR.FindControl("ReportViewer1");

RadAjaxManager1.AjaxSettings.AddAjaxSetting(MyButton, myRpt);
Maria Ilieva
Telerik team
 answered on 26 Feb 2015
15 answers
113 views
Hi,
  I have Firewall on my system and when we are trying to deploy the code on our internal deployment server i am getting some Web call Hit issue.
For example  in one of our page we have implemented RadComboBox as the page gets rendered  after deployment it is hitting some internet site may be some web call is hitting.Or may be the control is caliing some web call because of that it is causing hi to other internet site. Can you please suggest how we can disable that web call.


Thanks,
Neha
Mahesh
Top achievements
Rank 1
 answered on 26 Feb 2015
1 answer
138 views
Hi,

I have a requirement where I would like the following.

Hierarchal RadGrid which has a nested view showing an
information card – for example and then beneath this 2 or more repeaters which
are bound to different datasources.

Let’s say the parent datasource is people, you click on a
person which expands to show an information card on this but then there are two
bound repeaters.  One is bound to hobbies
(where there can be many) and the other is bound to favourite foods (again
multiple values). 

I can only seem to get the hierarchy working with a top
level datasource and one other for the detail. 


I have used gridtableview but the issue I have with this is
firstly the styling is not as flexible as a repeater but also when I expand
another person all of the dtail table to reflect that row.  They don’t seem to be bound to the row they
are contained within.

 

Has anybody dealt with anything similar and could point me
in the right direction please?

 

Viktor Tachev
Telerik team
 answered on 26 Feb 2015
6 answers
92 views
Hi,

I have a grid with detail table which has a button that can show/hide filter item. 
I also set ShowHeadersWhenNoRecords="false" declaratively in detail table by default.
However, when a user puts in filter criteria that's not in the detail table, the whole table disappears.
I tried various ways to set ShowHeadersWhenNoRecords="true" in the code-behind but it only works if I don't have validation above that line of code.
Could you tell me how to make the detail table not disappearing when there's no record during filtering?

Thanks,

Helen

Here's my ascx page:

<telerik:RadGrid ID="RadLeadsBySalesGrid" runat="server" AllowPaging="True" OnNeedDataSource="RadLeadsBySalesGrid_NeedDataSource" OnDataBinding="RadLeadsBySalesGrid_DataBinding" OnItemDataBound="RadLeadsBySalesGrid_ItemDataBound"
        OnDetailTableDataBind="RadLeadsBySalesGrid_DetailTableDataBind" AutoGenerateColumns="False" OnItemCommand="RadLeadsBySalesGrid_ItemCommand" ShowFooter="true"
        Width="1900" Height="830" Skin="Telerik" EnableEmbeddedSkins="false" PageSize="100" BorderStyle="None" >
        <GroupingSettings CaseSensitive="false" />
        <ClientSettings EnablePostBackOnRowClick="true" Selecting-AllowRowSelect="true" EnableRowHoverStyle="true" AllowColumnsReorder="true" ReorderColumnsOnClient="true" ColumnsReorderMethod="Reorder" >
            <%--<Scrolling AllowScroll="true" />--%>
            <ClientEvents OnRowClick="closePane" />
            <Resizing ClipCellContentOnResize="true" AllowColumnResize="true" EnableRealTimeResize="true" ResizeGridOnColumnResize="true" />             
        </ClientSettings>
    <MasterTableView DataKeyNames="office_id, sales_id" HierarchyDefaultExpanded="true" Width="99%" TableLayout="Auto"  >
        <DetailTables>            
            <telerik:GridTableView Name="LeadsTableView" runat="server" DataKeyNames="sales_id" AllowSorting="true" ShowFooter="true" Width="100%"
                        AllowFilteringByColumn="true" IsFilterItemExpanded="false" EnableHeaderContextMenu="true" PagerStyle-Mode="NextPrevNumericAndAdvanced" ShowHeadersWhenNoRecords="false"  >
                    <ParentTableRelation>
                        <telerik:GridRelationFields DetailKeyField="sales_id" MasterKeyField="sales_id" />
                    </ParentTableRelation>
                 
                    <Columns>
                        <telerik:GridBoundColumn  DataField="lead_id" ReadOnly="True" Display="false" HeaderText="lead_id" SortExpression="lead_id"  UniqueName="lead_id" DataType="System.Int32" FilterControlAltText="Filter lead_id column"
                            HeaderStyle-Font-Size="Smaller"  />
                        <telerik:GridBoundColumn DataField="sales_id" ReadOnly="True" Display="false" FilterControlAltText="Filter sales_id column" HeaderText="SalesId" SortExpression="sales_id" UniqueName="sales_id"
                            HeaderStyle-Font-Size="12px" HeaderStyle-ForeColor="Black" HeaderStyle-Font-Bold="true" ItemStyle-Font-Size="Smaller" ItemStyle-Font-Bold="true" ItemStyle-Width="20%" />
 
                        <telerik:GridBoundColumn DataField="last_action_dt" FilterControlAltText="Filter last_action_dt column" HeaderText="Last Action Dt" SortExpression="last_action_dt" UniqueName="last_action_dt"
                            HeaderStyle-Font-Size="12px" HeaderStyle-ForeColor="Black" HeaderStyle-Font-Bold="true" ItemStyle-Font-Size="Smaller" ItemStyle-Font-Bold="false"  FilterControlWidth="70%" />
                    </Columns>                     
 
            </telerik:GridTableView>
        </DetailTables>
        <Columns>
                <telerik:GridBoundColumn DataField="office_id" Display="false" ReadOnly="true" Visible="false" HeaderText="Office ID" SortExpression="office_id" UniqueName="office_id" FilterControlAltText="Filter office_id column" />
                <telerik:GridBoundColumn DataField="sales_id" Display="false" ReadOnly="true" Visible="false" HeaderText="Sales ID" SortExpression="sales_id" UniqueName="sales_id" FilterControlAltText="Filter sales_id column" />                   
                <telerik:GridTemplateColumn UniqueName="sales_name" DataField="sales_name"
                    ItemStyle-Font-Bold="true" ItemStyle-Font-Size="Smaller"  SortExpression="sales_name" FilterControlAltText="Filter sales_name column" >
                    <HeaderTemplate>
                        <asp:ImageButton runat="server" ID="ExpandPaneButton" ToolTip="Click to expand/collpase the results window" Width="32px" Height="32px"  CommandName="ExpandResultPane" ImageUrl="~/images/expandHorizontal.png" OnClientClick="expandCollapseResultPane();return false;" />
                        <asp:ImageButton runat="server" ID="RefreshButton" ToolTip="Click to refresh list" Width="32px" Height="32px"  CommandName="Refresh" ImageUrl="~/images/refresh24.jpg" />
 
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:Label ID="SalesNameLabel" runat="server" ForeColor="Blue" Text='<%# DataBinder.Eval(Container.DataItem, "sales_name") %>' />
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
        </Columns>
    </MasterTableView>    
</telerik:RadGrid>

My code-behind:

protected void RadLeadsBySalesGrid_ItemDataBound(object sender, GridItemEventArgs e)
{
 
    if (e.Item is GridFilteringItem && e.Item.OwnerTableView.Name == "LeadsTableView")
    {
        GridFilteringItem item = e.Item as GridFilteringItem;
        if (item.Expanded) // code works when I don't have if statement
        {
            RadLeadsBySalesGrid.MasterTableView.DetailTables[0].ShowHeadersWhenNoRecords = true;
        }
        else
        {
            RadLeadsBySalesGrid.MasterTableView.DetailTables[0].ShowHeadersWhenNoRecords = false;
        }
    }
}
 
protected void RadLeadsBySalesGrid_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
{
    SALTDALTableAdapters.OfficeTableAdapter officeTA = new SALTDALTableAdapters.OfficeTableAdapter();
    SALTDAL.OfficeDataTable officeDT = new SALTDAL.OfficeDataTable();
    if (SalesJobCode == "DSM")
        officeDT = saltBLL.GetDataByOfficeAndSalesId(OfficeId, SalesIdSelected.Replace('|',','));
    else
        officeDT = officeTA.GetDataBySalesId(SalesId);
 
    int count = officeDT.Count;
 
    RadLeadsBySalesGrid.DataSource = officeDT;
 
}  
 
protected void RadLeadsBySalesGrid_DetailTableDataBind(object sender, GridDetailTableDataBindEventArgs e)
{
 
    GridDataItem dataItem = (GridDataItem)e.DetailTableView.ParentItem;
    string SalesIdSelected = dataItem.GetDataKeyValue("sales_id").ToString().Trim();
 
    if (e.DetailTableView.Name == "LeadsTableView")
    {
        _dt = (SALTSearchCriteriaDAL.SALTLeadDataTable)Session["SaltLeadsDT"];
        int oricount = _dt.Rows.Count;
        e.DetailTableView.DataSource = _dt;
 
        DataRow[] filterRows;
        filterRows = _dt.Select("sales_id=" + SalesIdSelected);
 
        SALTSearchCriteriaDAL.SALTLeadDataTable newDT = _dt.Clone() as SALTSearchCriteriaDAL.SALTLeadDataTable;
        foreach (DataRow row in filterRows)
        {
            try
            {
                newDT.ImportRow(row);
            }
            catch (Exception ex)
            {
                string errMsg = ex.Message;
                ShowErrorMessage(errMsg);
            }
        }
 
        e.DetailTableView.DataSource = newDT;
        _total = newDT.Rows.Count;
    }       
}  


Eyup
Telerik team
 answered on 26 Feb 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?