Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
133 views
Hi all,

i am trying to create a simple resizing grid with no luck. Based on http://demos.telerik.com/aspnet-ajax/grid/examples/client/resizing/defaultcs.aspx directions i did:
ClientSettings -> Resizing -> AllowRowResize = true
ClientSettings -> Resizing -> AllowColumnResize = true
ClientSettings -> Resizing -> EnableRealTimeResize = true 

Is there anything else i should do?

Sample Code:

<form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager" runat="server">
    </telerik:RadScriptManager>
    <table style="width: 750px">
    <tr>
        <td>
            <telerik:RadGrid ID="RadGrid1" DataSourceID="SqlDataSource1" runat="server" AllowPaging="True"
                GridLines="None" PageSize="10" Skin="Outlook">
                <MasterTableView TableLayout="Fixed">
<RowIndicatorColumn Visible="True"></RowIndicatorColumn>
                </MasterTableView>
                <ClientSettings AllowColumnsReorder="true" ReorderColumnsOnClient="true">
                    <Resizing AllowRowResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="True"
                        AllowColumnResize="True"></Resizing>
                    <ClientEvents OnGridCreated="" />
                </ClientSettings>
                <HeaderStyle Width="100px" />
                <PagerStyle Mode="NextPrevAndNumeric" />
            </telerik:RadGrid>
        </td>
    </tr>
    </table>
    <asp:SqlDataSource ID="SqlDataSource1" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
        ProviderName="System.Data.SqlClient" SelectCommand="SELECT TOP 25 CustomerID, CompanyName, ContactName, ContactTitle, Address, PostalCode FROM Customers"
        runat="server"></asp:SqlDataSource>
    </form>

Thanks in advance




Ilias
Top achievements
Rank 1
 answered on 02 Jul 2009
0 answers
98 views
Hi,

I am using RadTreeView and RadAjaxManager on my page. Below is the code for ajaxifying the code
<telerik:AjaxSetting AjaxControlID="btnAdd">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="tvwSource" LoadingPanelID="RadAjaxLoadingPanelDisplay"/>
                <telerik:AjaxUpdatedControl ControlID="tvwTarget" LoadingPanelID="RadAjaxLoadingPanelDisplay"/>
            </UpdatedControls>
</telerik:AjaxSetting>

When I click on "Add" button for the first time on the page, there is a post back happening and then for the rest of the attempts I can see the Ajax callback and also the Loading Panel Id.

Am I missing anything?

Regards,
Najmuddin



Najmuddin Tasnim
Top achievements
Rank 1
 asked on 02 Jul 2009
0 answers
68 views
Hi,
   I am using RadCombo and its EnableLoadOnDemand is true. But when I scroll combo to look for items then the Loading Message is showing twotimes. Please tell me if I can avoid this.

Thanks,
Pinkey
Pinkey
Top achievements
Rank 1
 asked on 02 Jul 2009
1 answer
74 views
The demo page shows how to relate two RadGrids such that clicking a single row in the first grid restricts the records shown in the second grid.  However, is there a way to relate the two RadGrids such that all of the rows in the first grid restricts or filters all the records in the second grid?

Here is an example: The first grid contains a set of Customers and the second grid contains a set of Orders.  If a single row in the Customers grid is selected, then the second grid contains all the Orders which belong to the selected Customer.  (In fact, by selecting the appropriate code, the second grid could easily show all the Orders which do not belong to that Customer.)   The goal is to show all the Orders which belong to any of the Customers shown in the Customer grid.  This would permit a user to apply a filter to the Customer grid, such as customers which belong to a state, city, or area code, and the second grid would be restricted to Orders by those Customers which meet the filter criteria.

One suggestion was to relate the grids within a Master/Detail relation but that still associates the records specifically to each Customer.  By being able to Filter Related Grids, the user can then analyze Customers and Orders as sets of data instead of Orders related to a specific Customers.
Yavor
Telerik team
 answered on 02 Jul 2009
2 answers
125 views
Hello,

I found this bug when using the rad window in firefox (FF v3.0.11). I have a demo project but I don't see how to attach it to this posting.

To re-create the bug

1. Create a page with a button to be used as the openerelementId. Make sure the button is below the fold of the page meaning the user has to scroll down a page length to get to the button. Add this

<

 

telerik:RadWindow ID="rw" runat="server" Width="610" Height="400" Skin="WebBlue"

 

 

OpenerElementID="<%# btnPop.ClientID %>" VisibleStatusbar="false" NavigateUrl="thePopup.aspx"

 

 

VisibleTitlebar="false" Modal="True" ReloadOnShow="true" ShowContentDuringLoad="true"/>

 


2. Create a popup page (thePopup.aspx) with a button and assign that button to the forms defaultbutton as in 

defaultbutton

 

="someBtn"

3. Laungh the default page in firefox, click the button and you'll see your pop up , pop open and within a few second the popup shold jump to the bottom of launching screen.

Fun huh?

That drove me crazy for a few days and I think by exposing it, I should be rewarded with a free copy of the Telerik UI Libray :)

I found a workaround but its an odd problem and I'd like an explanation if possible.

Thank you.

 

The ReBigulator
Top achievements
Rank 1
 answered on 02 Jul 2009
3 answers
224 views
Hello

I am using User Control as Edit Form for RadGrid , there is a combo box inside that user control, how can I set the default value for that combo, in this example  there are only text boxes there and it is easy to set defaule values for them, but how about combo box?
Simon
Telerik team
 answered on 02 Jul 2009
2 answers
131 views
I have a grid that defaults to edit mode.

When I sort any column, it closes out of edit mode.  How can I maintain the grid in edit mode after sorting?

Here is the NeedDataSource for the grid:

protected void rgridDemandEntry_NeedDataSource(object sender, EventArgs e) 
    { 
        if (_demand.DemandID > 0 && _gridMode == "Edit"
        { 
            _demandDT = GetDemandByDemandID(_demand.DemandID).Tables[0];  // Load the grid with the data for the demand ID 
        } 
        else 
        { 
            _demandDT = GetDemandDrgTable(0).Tables[0];  // Start a new grid with blank counts and the latest version entry 
        } 
        rgridDemandEntry.DataSource = _demandDT; // Load the datatable into rgridDemandEntry 
        for (int i = 0; i < _demandDT.Rows.Count; i++) 
        { 
            rgridDemandEntry.EditIndexes.Add(i); 
        } 
    } 


And here is the grid:
<telerik:RadGrid runat="server"  
        ID="rgridDemandEntry"  
        OnNeedDataSource="rgridDemandEntry_NeedDataSource" 
        OnItemDataBound="rgridDemandEntry_ItemDataBound" 
        OnItemCommand="rgridDemandEntry_ItemCommand" 
        Skin="Office2007"  
        AutoGenerateColumns="false" 
        AllowMultiRowEdit="true" 
        AllowPaging="false" 
        AllowSorting="true"
        <MasterTableView EditMode="InPlace" DataKeyNames="drgNum" CommandItemDisplay="TopAndBottom"
            <Columns> 
                <telerik:GridBoundColumn HeaderText="DRG #" DataField="drgNum" ReadOnly="true" /> 
                <telerik:GridBoundColumn HeaderText="MDC" DataField="mdc" ReadOnly="true" /> 
                <telerik:GridBoundColumn HeaderText="DRG Description" DataField="drgDescription" ReadOnly="true" /> 
                <telerik:GridBoundColumn HeaderText="% Req. Rehab" DataField="pctReqRehab" ReadOnly="true" /> 
                <telerik:GridBoundColumn HeaderText="Medicare DC" DataField="dischargeCountMedicare"/> 
                <telerik:GridBoundColumn HeaderText="Total DC" DataField="dischargeCount" /> 
                <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" Visible="false" /> 
            </Columns> 
            <CommandItemTemplate> 
                <asp:Button runat="server" ID="btnUpdate" Text="Save" CommandName="UpdateAll" ValidationGroup="VGDemandDRG" />&nbsp;&nbsp;&nbsp;&nbsp;<asp:LinkButton ID="btnCancelCurrent" runat="server" Text="Cancel" OnClick="btnCancelCurrent_Click" ForeColor="Blue" Font-Underline="true" /> 
            </CommandItemTemplate> 
        </MasterTableView> 
    </telerik:RadGrid> 

Carl
Top achievements
Rank 1
 answered on 02 Jul 2009
1 answer
459 views
Hi.

 How much page size i can be give at maximum. Because suppose i am given too much page size like 2000 maximum, whether It will be work out or thrown an exception error. Because i am getting error if am crossing maximum limit for page size.

So could u any body help me

Regards,
AS
Dimo
Telerik team
 answered on 02 Jul 2009
1 answer
105 views
Hi

I am getting the following unknown pageRequestManagerServerException. The error is mentioned below, it is occuring when i am choosing any filtetering combobox or any filtering control. Event i accnot be done paging too. Plz help me in this scenario

"sys.webforms.pageRequestManagerServerException:an unknown error occured while processing the request on the server.The
 status code returned from the server was: 12030"



Thanx,
Appu

Princy
Top achievements
Rank 2
 answered on 02 Jul 2009
5 answers
133 views
Hi
 I hav one problem for my Radgrid paging..

        while calling the below code the paging or page index changed does not working. As a result i cannot move to next page from my first page displayed as well.

My code snipper is below:
 protected void RadGrid1_PreRender(object sender, EventArgs e)
    {
      RefreshCombos();
      
    }

    //To refresh the resultset
    private void RefreshCombos()
    {
        objDA= new ClassDA();
        DataTable dt= objDA.GetDetails();

        RadGrid1.DataSource =dt;
        RadGrid1.MasterTableView.Rebind();
        
    }

I am used the code what ever it is given by the Telerik help page for filtering controls. But it is not working fine while page moving

Thanks
Appu
Daniel
Telerik team
 answered on 02 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?