Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
74 views
hi all
I want design RadDock like SolutionExplorer window of VisualStudio .net
which move left & right not up&down and can fixed it position

please tell me how can I do that
samaneh
Top achievements
Rank 1
 answered on 30 May 2011
1 answer
83 views

Hi Telerik experts,

Was wondering if I could get some help on this issue.

Have a Control Panel page with multiple 'filter' buttons.
What we want to do is put multiple Grids onto this single page
and hide/show them based on what 'filter' button is clicked.
(For reasons having to do with another issue I was having,
it's actually the Grid inside the Control that is being
shown/hidden.)

We do this by puttingmultiple User Controls (.ascx) on the page, each of which contains a Grid
and a RadCodeBlock with javascript to do client-side binding.

The issue is as follows:

You start the app, go to Control Panel page.
It defaults to 'Button1', shows the Grid1, and it works fine. The User Control loads, the Grid inside
the control is Data Bound.

The problem is when you click 'Button 2' and it tries to load a different control.
The Grid fails to databind. Checking the output I can see that the client side binding javascript
for the new control is there/compiled.

weird thing is, it only fails to bind the 'second time'.
After that, if you click 'Button 2' again (or any other button first then click 'Button 2'),
the Grid binds and displays correctly.

 

Each User Control looks something like this:

<telerik:RadCodeBlock ID="RadCodeBlock2" runat="server">
    <script type="text/javascript">

        var headerView = null;
        var commandName = "";
        var entityTypeID = 3;
        var entityID = 154;

        var detailsView = null;

        function m_rgPickupRequests_controlLoad(sender, args) {
            /*
            headerView = $find("<%= m_rgPickupRequests.ClientID %>").get_masterTableView();
            commandName = "Load";
            updateHeaderVirtualItemCount(0);
            var s = headerView.get_sortExpressions().toString();
            var filterState = $get("<%= m_hdnStateButtonType.ClientID %>").value;
            totalcontrol.Service.RequestsService.GetPickupRequestGridContents(
                entityTypeID,
                entityID,
                filterState,
                headerView.get_currentPageIndex() * headerView.get_pageSize(),
                headerView.get_pageSize(),
                headerView.get_sortExpressions().toString(),
                headerView.get_filterExpressions().toString(),
                updateHeaderGrid);
                */
        }

        function m_rgPickupRequests_Command(sender, args) {
            args.set_cancel(true);
            commandName = args.get_commandName();
            var filterState = $get("<%= m_hdnStateButtonType.ClientID %>").value;
            totalcontrol.Service.RequestsService.GetPickupRequestGridContents(
                entityTypeID,
                entityID,
                filterState,
                headerView.get_currentPageIndex() * headerView.get_pageSize(),
                headerView.get_pageSize(),
                headerView.get_sortExpressions().toString(),
                headerView.get_filterExpressions().toString(),
                updateHeaderGrid);
        }

        function m_rgPickupRequests_RowDataBound(sender, args) {
            var description = args.get_dataItem()["Description"];
            var cell = args.get_item().get_cell("Description");
            cell.style.cursor = 'pointer';
            setToolTip(cell, description);
        }

        function setToolTip(element, description) {
            var radToolTipManager = $find('<%= Parent.FindControl("m_rttToolTipManager").ClientID %>');
            if (!radToolTipManager) {
                return;
            }

            var tooltip = radToolTipManager.getToolTipByElement(element);
            if (!tooltip) {
                tooltip = radToolTipManager.createToolTip(element);
            }
        }

        function updateHeaderGrid(result) {
            headerView.set_dataSource(result);
            headerView.dataBind();
            var filterState = $get("<%= m_hdnStateButtonType.ClientID %>").value;
            if (commandName == "Filter" || commandName == "Load") {
                totalcontrol.Service.RequestsService.GetRequestGridContentsCount(
                    entityTypeID,
                    entityID,
                    filterState,
                    headerView.get_filterExpressions().toString(),
                    updateHeaderVirtualItemCount);
            }
        }

        function updateHeaderVirtualItemCount(result) {
            headerView.set_virtualItemCount(result);
        }

    </script>
</telerik:RadCodeBlock>

<asp:ScriptManagerProxy ID="ScriptManager2" runat="server">
    <Services>
        <asp:ServiceReference Path="~/Services/RequestService.svc" />
    </Services>
</asp:ScriptManagerProxy>

<asp:HiddenField ID="m_hdnStateButtonType" runat="server" />

<telerik:RadGrid ID="m_rgPickupRequests" runat="server" AllowFilteringByColumn="true">
    <MasterTableView>
        <Columns>
   <....GridBoundsColumns....>
        </Columns>

    </MasterTableView>
<ClientSettings>
            <ClientEvents OnCommand="m_rgPickupRequests_Command"
            OnGridCreated="m_rgPickupRequests_controlLoad"
            OnRowDataBound="m_rgPickupRequests_RowDataBound"
            />
</ClientSettings>
</telerik:RadGrid>


 

Control Panel is something like so:

    <asp:Panel ID="m_pnlFilters" runat="server" CssClass="clear">           
        <fieldset>
            <table style="display:inline">
                <tr>
                    <th>
                        Filter by Site/Department
                    </th>
                </tr>
                <tr>
                    <td>
                        <telerik:RadTreeView ID="m_rtvEntities" runat="server" CheckBoxes="true"
                            CheckChildNodes="true"
                            TriStateCheckBoxes="true"
                            Width="23em"
                            Height="8em"
                            BorderStyle="Solid"
                            BorderColor="Gray"
                            BorderWidth="1px">
                        </telerik:RadTreeView>
                    </td>
                </tr>
            </table>
            <table style="display:inline; margin-left: 2em">
                <tr>
                    <th>
                        Filter by User
                    </th>
                </tr>
                <tr>
                    <td>
                        <telerik:RadButton ID="m_btnAllItems" runat="server"
                            Text="All Items" ToggleType="Radio" GroupName="MyItemsFilters" Width="8em" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <telerik:RadButton ID="m_btnMyItems" runat="server"
                            Text="My Items Only" ToggleType="Radio" GroupName="MyItemsFilters" Width="8em" />
                    </td>
                </tr>
            </table>
            <table style="display:inline; margin-left: 2em">
                <tr>
                    <th colspan="3">
                        Filter by Status
                    </th>
                </tr>
                <tr>
                    <td>
                        <telerik:RadButton ID="button1" runat="server"
                            Text="Items In Use" ToggleType="Radio" GroupName="StateButtonFilters" Width="12em"
                            CommandName="Filter" CommandArgument="ItemsInUse" OnCommand="FilterStateButton_Command" />
                    </td>
                    <td>
                        <telerik:RadButton ID="button2" runat="server"
                            Text="Pending Pickup" ToggleType="Radio" GroupName="StateButtonFilters" Width="12em"
                            CommandName="Filter" CommandArgument="PendingPickup" OnCommand="FilterStateButton_Command"/>
                    </td>
                </tr>
  <table>  
        </fieldset>
    </asp:Panel>

    <asp:Panel ID="m_pnlGridContainer" runat="server">
        <TC1:RequestGrid ID="m_ctlRequestGrid" runat="server" />
        <TC1:PickupGrid ID="m_ctlPickupRequestGrid" runat="server" />
        <TC1:QuoteGrid ID="m_ctlQuoteGrid" runat="server" />
    </asp:Panel>

Any help would be appreciated. Thanks!

Richard 

 

Iana Tsolova
Telerik team
 answered on 30 May 2011
1 answer
190 views
Hi

Is there any way to cancel a user selecting another row in a radgrid with server-side validation? I want to allow the user to select a row in the grid, but only if some other textboxes are valid.
eg:
Markup:
<asp:TextBox ID="txtDummy" runat="server" />

<
telerik:RadGrid ID="rgProjects" runat="server"
      OnNeedDataSource="rgProjects_NeedDataSource"
      OnSelectedIndexChanged="rgProjects_SelectedIndexChanged">
   <ClientSettings Selecting-AllowRowSelect="true" EnablePostBackOnRowClick="true">
      <Scrolling AllowScroll="true" SaveScrollPosition="true" />
   </ClientSettings>
</telerik:RadGrid>
Code behind:
protected void rgProjects_SelectedIndexChanged(object sender, EventArgs e)
{
   Boolean result = CheckProjectChanges(txtDummy.Text);
   if (result == true)
      //continue with stuff - easy
   else
      //cancel row select! how??
}
Princy
Top achievements
Rank 2
 answered on 30 May 2011
5 answers
101 views
Hi.

I have a grid with some data (registers) with a GridClientSelectColumn.

When I have selected the desired registers I have I use the following function to access to the selected data:

function GetSelectedItems() {
    elems = $find("<%= leftGrid.MasterTableView.ClientID %>").get_selectedItemss();
}

At this point, I want to make an AJAX call for move the selected registers to another place (like another grid) or make some INSERTs into a concrete table at a database.

How can I get the selected rows to pass them to the server-side?

Best regards
Pavlina
Telerik team
 answered on 30 May 2011
1 answer
77 views
Hi,

I have a grid with many columns and the header is custom header..As Telerik does not support FrozenColumn with Custom headers so i am going for the next option that is ExpandCollapseColumns where user can click on the column he want to view and it expands and collpases accordingly..But i dont see any good expample.

Can you please help me with this as early as possible.

I just want a grid where colmns can be clicked for expanding and collapsing like the rows do.
Iana Tsolova
Telerik team
 answered on 30 May 2011
1 answer
92 views
Hello,

I've got a web form that opens a rad window. When the user closes the rad window the web form controls gets updated. This update takes a while so I'd like to have a loading panel display on the web form so that the user knows that something is happening.

Can you help with this?

-Dan
Svetlina Anati
Telerik team
 answered on 30 May 2011
3 answers
149 views
Hello guys.

Is there a way to use a different source for each column is a list view?

For example, I have a listview with 5 columns, I'll receive 5 tables from the database (dataset). I would like to set each column to get data from each database table.

Does anyone know how I do this?

Column 1     Column 2     Column 3     Column 4    Column 5
userA, idA    userB, idB    userC, idC   userD, idD  userE, idE
userF, idF    userG, idG   userH, idH    userI, idI
userJ, idJ                          userK, idK    userL, idL
userM, idM                        userN, idN
userO, idO                        userP, idP
userQ, idQ
userR, idR                        
userS, idS
userT, idT                        
                   
                                                            
Radoslav
Telerik team
 answered on 30 May 2011
2 answers
135 views
Good morning,

I wonder If somebody could help me with my issue.

What I need to achieve is change RadWindow border's opacity (not background) as it's in this example:
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/listviewsliderwindowrotator/defaultcs.aspx?product=listview

The problem is when I choose some standard skin, e.g. skin="Hay", then the RadWindow border is without opacity.

For futher info please check images in the attachment.

Please help me to solve this issue.

Best regards

Vasssek
Vasssek
Top achievements
Rank 1
 answered on 30 May 2011
2 answers
72 views
OK here is the scenario. I have a website with a master page set up, and within one of the pages I am usin the grid control, which is set up to run off from partial postbacks. Everything works fine other then the control breaks out of the div that is set up to be a wrapper for the contentplaceholder, that is filled by the page with the grid. So to give you an idea here is a general idea of what i have below:

CSS:
#mainContentWrapper
{
     width:100%; 
    //No height is set intentionally to allow for dynamic div growth
}

Master Page:

<div id="mainContentWrapper">
    <contentplaceholder></contentplaceholder1>
</div>

Data Page:
<contentplaceholder>
    <telerik:radgrid></telerik:ragrid>
</contentplaceholder>

The problem is as soon as you do anything like change record display size from the client, it breaks out of the mainContentWrapper div instead of the forcing the div to expand like it should. This would work with any other functionality that isnt using the telerik controls so my assumption is that are some point in rendering the grid control is changed to be absolute and thus is placed above the div and will not adjust its size?
Radoslav
Telerik team
 answered on 30 May 2011
7 answers
166 views
Hello,

I have raddock inwhich usercontrols are loaded dynamically. On clicking the link button in the usercontrol data refreshes.

I want to animate (replace icon with some gif file till the time page is refreshing) the raddock itemcontent image while page is refreshing. Plz see attached image.

Can you plz suggest me that how can achieve this ?
Pero
Telerik team
 answered on 30 May 2011
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
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
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?