Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
160 views
I'm working on a desktop like interface using multiple radwindows on a single page. Right now I am trying to add functionality similar to the Windows 7 Show Desktop button that hides all open windows on click, and then restores all the windows on a second click. I have that funcionality working for the most part using minimizeAll() to hide everything and then a call to showAll(), to get the window titlebars back in place, and then a call to restoreAll() to get the windows back to their previous size. 

The problem I am running into is that when a window is closed it is not truly destroyed. Therefore when I go to show my windows again the closed window comes back. I know I can switch the DestroyOnClose flag to true for the windows, which does solve this issue, but it breaks my event handlers for the close event on all other windows. When a window is created a set a handler for many events, close being one of them, like so:
oWnd.add_close(function (sender, args) {
        windowHandler(sender, "close");
    });
This allows all windows to use my handler function which essentially takes the window information (title, url, x, y, width, height) and saves them for later use. That all works fine until I turn DestroyOnClose to true. Once that is done, only the first window closed executes the handler. Any window closed after that ignores the handler entirely as if the binding for that even was destroyed for all windows, not just the window being closed. 

Is there something I can do to solve either one of these issues so that both pieces of the functionality work?
Corey
Top achievements
Rank 1
 answered on 24 Jan 2013
2 answers
153 views
Hi 
What is the server side equivalent of client side OnDateSelected in DatePicker control.
I need to use the selected date in server side code. 

Thanks.
Priya
Top achievements
Rank 1
 answered on 24 Jan 2013
2 answers
127 views
Is there a way to declaratively format individual filters? For instance, to have some align left, some align center, and each have different widths. I'd like to avoid a FilterTemplate, and ideally I'd like to do it in the markup, but if I have to, I'll just do it in the back end. Sample:

<telerik:RadGrid ID="RadGrid" runat="server" AutoGenerateColumns="False" AllowSorting="True"
            AllowFilteringByColumn="True">
  <ClientSettings AllowColumnsReorder="True">
    <Scrolling UseStaticHeaders="True" AllowScroll="True" SaveScrollPosition="True"
            ScrollHeight="500px"/>
  </ClientSettings>
             
  <GroupingSettings CaseSensitive="False"/>
 
  <MasterTableView>
    <Columns>
      <telerik:GridBoundColumn UniqueName="Name" DataField="Name" HeaderText="Name"
                        AutoPostBackOnFilter="True" HeaderStyle-Width="35%"
                        ItemStyle-HorizontalAlign="Left"/>
      <telerik:GridBoundColumn UniqueName="Common" DataField="Common" HeaderText="Common"
                        AutoPostBackOnFilter="True"
                        HeaderStyle-HorizontalAlign="Center"/>
    </Columns>
  </MasterTableView>
</telerik:RadGrid>
J
Top achievements
Rank 1
 answered on 24 Jan 2013
1 answer
149 views
Hi,

When I export data to Excel from a RadGrid with an external RadFilter, I get all the data instead of the filtered data.

I use during export:

Protected Sub Export_Klanten_Click(sender As Object, e As EventArgs) Handles btn_Export_Klanten.Click
 
RadFilter2.FireApplyCommand()
 
dtgKlanten.ExportSettings.ExportOnlyData = true     
dtgKlanten.ExportSettings.IgnorePaging = true
dtgKlanten.MasterTableView.AllowFilteringByColumn = false
dtgKlanten.ExportSettings.OpenInNewWindow = true
dtgKlanten.ExportSettings.HideStructureColumns = true
dtgKlanten.MasterTableView.ExportToExcel()
End Sub
 
Protected Sub RadFilter2_ApplyExpressions(sender As Object, e As RadFilterApplyExpressionsEventArgs)
    Dim provider As New RadFilterSqlQueryProvider()
    provider.ProcessGroup(e.ExpressionRoot)
    dtgKlanten.MasterTableView.FilterExpression = provider.Result
    dtgKlanten.Rebind()
End Sub

I thought this would filter the datasource on exporting, but is does not.

Any suggestions?

Marc
Fit2Page
Top achievements
Rank 3
Bronze
Bronze
Iron
 answered on 24 Jan 2013
1 answer
138 views
I am a freelancer and in discussions with an end customer to develop a web application. The code that I develop will be used by the customer in their organization as a intranet website.

Based on my understanding of licensing (from your site):

1) I will need a developer license to develop the aplication (I intend using RadControl for .NET)
2) A GPL will suffice since the customer is using this for internal use and will not redistribute the software
3) A copyright / acknowledgement of Telerik copyright needs to be place in the About page of the customers intranet application

Please confirm if the above steps and assumptions are correct.

Thanks
Kishore
Apo
Telerik team
 answered on 24 Jan 2013
1 answer
96 views
I have a problem while I deploy our web site into another IIS. Locally from Visual Studio all works fine but when we deploy our site on IIS (7.5 on Windows Server 2008 R2), we have some problems. When I open the 2 web sites (locally from Visual Studio and the other from IIS on Windows Server) in the same IE (2 tabs) and I notice some different behavior in the user interface !?!?!

I cannot tell if it's the case for all problems we have but at least for one problem I notice the problem come from CSS. On a RadTabStrip, I set Orientation="VerticalLeft". So locally it's on the left because the "display" attributes value is "block" but in the server it's not because because both values "block" and "inline" are present and the "inline" is applied!

Can anybody tell me what's wrong?

I attached screen shots...

Nencho
Telerik team
 answered on 24 Jan 2013
1 answer
181 views
Hi Experts,

I have created rad grid with  multiple group header and added the check box in  first grouping header (BATCH_ID).So i want to do,
when i check the   check box in first grouping header then to be selected (highlighted) the grid items belong to second group header (ITEM_NAME)



Grouping  at Design Level
<GroupByExpressions>
<!-- First Grouping Header -->
                        <telerik:GridGroupByExpression>
                            <SelectFields>
                                <telerik:GridGroupByField FieldAlias="BATCH_ID" FieldName="BATCH_ID" HeaderValueSeparator=" : " />
                            </SelectFields>
                            <GroupByFields>
                                <telerik:GridGroupByField FieldName="BATCH_ID" SortOrder="Ascending" />
                            </GroupByFields>
                        </telerik:GridGroupByExpression>
<!-- Second Grouping Header -->
                        <telerik:GridGroupByExpression>
                            <SelectFields>
                                <telerik:GridGroupByField FieldAlias="Name" FieldName="EMP_DISPLAY_NAME" HeaderValueSeparator=" : " />
                            </SelectFields>
                            <GroupByFields>
                                <telerik:GridGroupByField FieldName="ITEM_NAME" SortOrder="Ascending" />
                            </GroupByFields>
                        </telerik:GridGroupByExpression
</GroupByExpressions>

         Create Header control at run time
Private Sub CreateHeaderControls(ByVal e As GridItemEventArgs)
        If TypeOf e.Item Is GridGroupHeaderItem Then
            Dim item As GridGroupHeaderItem = e.Item
            If IsNumeric(item.GroupIndex.ToString()) Then
                item.DataCell.Controls.Clear()
                Dim check As New CheckBox()
                check.AutoPostBack = True
                check.ID = "CheckAll"
                AddHandler check.CheckedChanged, AddressOf check_CheckedChanged
                item.DataCell.Controls.Add(check)
            End If
        End If
    End Sub


Thanks
Angel Petrov
Telerik team
 answered on 24 Jan 2013
7 answers
495 views
Hi, I really hate to have to keeping asking all these questions but I'm spinning my wheels on a treeview formatting issue.

How do you move the treenodes indent to the left closer to the black border (see attachment)? I've tried playing with the ul class and setting margin-left to 0px but with no effect.

I have the following css to hide the +/- expand icon, so it seems the space used by these images still remains.  I want  move everything left where they used to appear since I don't need them.

<style type="text/css">
    .RadTreeView_Default .rtPlus,
    .RadTreeView_Default .rtMinus
    {
        display: none!important;
    }
</style


Thanks again, Dave.
David
Top achievements
Rank 1
 answered on 24 Jan 2013
7 answers
143 views
Hello,

I have raddockzone with min-height=500. I wish to highlight the exact place within raddockzone where the raddock will be placed after moving from one raddock zone to another. Say, there are already 2 raddocks in the raddockzone and if I tried to push the third dock between these two already existing docks then middle place should be only highlighted with dotted border.

Is there any way to do that ?

Thanks,
Prayag
Slav
Telerik team
 answered on 24 Jan 2013
2 answers
188 views
Hi there

I am using the Advanced Data Binding on a grid and want to set the initial filter. It is showing the text, but its not limiting the results as expected. If I filter after a page load, it does work though. I have also tried filtering with the PreRender event, but that doesn't work.
Here is my ASPX
<telerik:RadGrid ID="uxBookOrderGrid" runat="server" AutoGenerateColumns="false" OnNeedDataSource="uxBookOrderGrid_NeedDataSource"
        AllowPaging="true" PageSize="10" Width="95%"
        AllowFilteringByColumn="true"
        EnableLinqExpressions="false" AllowSorting="true" >
    <MasterTableView DataKeyNames="BookOrderID">
        <Columns>
            <telerik:GridBoundColumn FilterControlWidth="90%" SortExpression="StatusDescription" HeaderText="Status" DataField="StatusDescription" UniqueName="StatusDescription" CurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="true" />
        </Columns>    
        <NoRecordsTemplate>
            No Book Orders waiting to be Approved.
        </NoRecordsTemplate>              
    </MasterTableView>
</telerik:RadGrid>
and here is the code behind
protected void uxBookOrderGrid_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
{
    /// <summary>
    /// Fill Grid with all Book Orders that needs to be Approved
    /// </summary>
 
    uxBookOrderGrid.DataSource = SATextBooksUJ.Data.BookOrder.GetBookOrderListForAcquisition(acquisitions.UserID);
 
    if (!IsPostBack)
    {
        uxBookOrderGrid.MasterTableView.FilterExpression = "([StatusDescription] LIKE=\'%Approved by Departmental Approver%\')";
        GridColumn statusColumn = uxBookOrderGrid.MasterTableView.GetColumnSafe("StatusDescription");
        statusColumn.CurrentFilterFunction = GridKnownFunction.Contains;
        statusColumn.CurrentFilterValue = "Approved by Departmental Approver";
    }
}
Any ideas?

Thank you
Jako
Top achievements
Rank 1
 answered on 24 Jan 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?