Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
53 views
Hello all,
I recently upgraded to the ASP.NET AJAX release for my radgrids. However, my pagers are all messed up now.

In the old version we used the mode NextPrevAndNumeric and the pager displayed as:
Change Page: < 1 2 3 4 5 6 7  > | Displaying page 1 of 7, items 1 to 25 of 174

Now it displays as:
First Page Previous Page
1 2 3 4 5 6 7 
Next Page Last Page
174 items on 7 pages

I guess i missed something in converting to the new version. Any ideas?

Thanks!
Patrick Simon
hd
Top achievements
Rank 1
 answered on 06 Oct 2009
1 answer
92 views
Hi,

i want to give my radGrid's TemplateItem control the following textbinding from my Linq2Sql object which has a user2id propertie foreign key:

Text='<%# DataBinder.Eval(Container.DataItem,"User2.lastname").ToString() %>'

but what can i do to handle the case that the user2id foreign key is null which makes the User2 object null?

is there a chance to handle it in the asp code?

Or do i have to catch the user2id instead of the User2 object and use it in codebehind with the ItemDataBound?

thx, Mario
Tsvetoslav
Telerik team
 answered on 06 Oct 2009
5 answers
131 views
Is there any way of showing an appointment over the top of another one e.g. 5 - 10 pm (blue) shown with 6 - 8 pm (red) drawn on top so that the red one can be seen to have a higher priority than the blue one.
Peter
Telerik team
 answered on 06 Oct 2009
1 answer
56 views
Hi,

Im using treeview control in MVC through client side binding and client side method which is assigned to OnClientNodePopulating event, is not calling.

following is the asp.net code


 <telerik:RadTreeView runat="server" ID="RadTreeView1" DataTextField="SearchKeyword"
        DataValueField="id" LoadingStatusPosition="AfterNodeText" OnClientNodePopulating="nodePopulating" >
        <DataBindings>
            <telerik:RadTreeNodeBinding Depth="0" ExpandMode="WebService" />
        </DataBindings>
    </telerik:RadTreeView>


client side code:

function onSuccess(result, node) {
    debugger;
    node.hideLoadingStatus();
    //the result in JSON format is available as a "d" field
    var data = result.d;

    //Traverse the array of objects and create combobox items
    for (var i = 0; i < data.length; i++) {
        var dataItem = data[i];

        var childNode = new Telerik.Web.UI.RadTreeNode();
        childNode.set_text(dataItem.Text);
        childNode.set_value(dataItem.id);
        childNode.set_expandMode(Telerik.Web.UI.TreeNodeExpandMode.WebService);
        node.get_nodes().add(childNode);
    }
    node.set_expandMode(Telerik.Web.UI.TreeNodeExpandMode.ClientSide);
    node.expand();
}

function nodePopulating(sender, args) {
    debugger;
    var node = args.get_node();
    node.showLoadingStatus(sender.get_loadingMessage(), sender.get_loadingStatusPosition());
    //get only the child nodes of the current node
    var filter = "&$filter=parentId eq " + node.get_value();

    //Call the ADO.NET Data Service
    $telerik.$.ajax({
        type: "GET", // HTTP method
        url: '<%= ResolveUrl("TreeViewAdoNetService.svc/Links?") %>' + filter, // ADO.NET DataService URL
        contentType: "application/json; charset=utf-8", //request the result to be in JSON
        dataType: "json",
        success: function(result) { //callback method to invoke when the request is complete
            onSuccess(result, node);
        }
    });
    args.set_cancel(true);
}

Atanas Korchev
Telerik team
 answered on 06 Oct 2009
1 answer
150 views
hi All.
I have the Nested Grid Like this as showen below.
Now.Can i know how to Expand the Grid (OrdersGrid). I expanded the Parent Grid(RadGrid1) in PreRender Event .But i can't able to Expand the childgrid(OrdersGrid).

Can Any one Help me please......


<telerik:RadGrid ShowGroupPanel="True" ID="RadGrid1" 
            AllowSorting="True" AutoGenerateColumns ="false"  
            runat="server" GridLines="None" AllowPaging="True" Width="976px" Skin="Hay" > 
             <ClientSettings> 
      <Selecting AllowRowSelect="True" /> 
      <ClientEvents /> 
      </ClientSettings> 
             <MasterTableView DataKeyNames ="companyname" > 
             <NestedViewTemplate > 
             <asp:Panel ID ="Panel1" runat ="server" Height="136px" > 
                  <telerik:RadTabStrip runat="server" ID="TabStip1" Skin="Hay" MultiPageID="Multipage1" SelectedIndex="0" Width="464px"
   <Tabs > 
    
                                 <telerik:RadTab runat="server" Text="Unpaid Invoices" PageViewID="PageView2"
                                </telerik:RadTab> 
                                <telerik:RadTab runat="server" Text="Fully Paid Invoices" PageViewID="PageView3"
                                </telerik:RadTab> 
                                <telerik:RadTab runat="server" Text="Part-Payments" PageViewID="PageView4"
                                </telerik:RadTab> 
   </Tabs>    
                             
                             
     </telerik:RadTabStrip> 
     <telerik:RadMultiPage runat="server" ID="radmultipage1" SelectedIndex="0" RenderSelectedPageOnly="false"
         <telerik:RadPageView runat="server" ID="RadPageView1"
                            <telerik:RadGrid ID="OrdersGrid" runat="server" Skin="Hay" Width="800px" AutoGenerateColumns="False" GridLines="None" OnPreRender="OrdersGrid_PreRender"
                                <ClientSettings > 
                                <Selecting AllowRowSelect ="True" /> 
                                <ClientEvents  /> 
                                </ClientSettings> 
                                <MasterTableView DataKeyNames ="" > 
                                <NestedViewTemplate > 
                                <asp:Panel ID ="Panel2" runat ="server" > 
                                <telerik:RadTabStrip runat ="server" ID ="tabstrib1" MultiPageID ="Multipage2" SelectedIndex ="0" Width ="464px" Skin="Hay"
                                <Tabs > 
                                <telerik:RadTab runat ="server" Text ="Details" PageViewID ="newpageview2" Selected="True"></telerik:RadTab> 
                                <telerik:RadTab runat ="server" Text="Attachments" PageViewID ="newpageview3"></telerik:RadTab> 
                                <telerik:RadTab runat ="server" Text ="Comments" PageViewID ="newpageview3"></telerik:RadTab> 
                                </Tabs> 
                                </telerik:RadTabStrip> 
                                </asp:Panel> 
                                </NestedViewTemplate> 
                                    <Columns> 
                                        <telerik:GridBoundColumn DataField="loan_reference_number" HeaderText="Loan Reference NUmber" 
                                            UniqueName="column3"
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn DataField="invoice_number" HeaderText="Invoice Number" UniqueName="column4"
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn DataField=" PSF_sanctionamount" HeaderText="PSF Sanction Amount" 
                                            UniqueName="column6"
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn DataField="date_of_credit" HeaderText="Due Date" UniqueName="column1"
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn DataField="actual_debit_date" HeaderText="Grace Period" 
                                            UniqueName="column"
                                        </telerik:GridBoundColumn> 
                                    </Columns> 
                                    <ExpandCollapseColumn Visible="True"
                                    </ExpandCollapseColumn> 
                                </MasterTableView> 
                             
                            </telerik:RadGrid> 
                        </telerik:RadPageView> 
                         
     </telerik:RadMultiPage> 
             </asp:Panel> 
             </NestedViewTemplate> 
                 <Columns> 
                     <telerik:GridBoundColumn DataField="companyname" HeaderText="Company name" UniqueName="column1" Visible ="False"  > 
                     </telerik:GridBoundColumn> 
                     <telerik:GridBoundColumn DataField="currency" HeaderText="Currency" UniqueName="column3"
                     </telerik:GridBoundColumn> 
                     <telerik:GridBoundColumn DataField="overdraftlimit" HeaderText="Over Draft Limit" 
                         UniqueName="column"
                     </telerik:GridBoundColumn> 
                         <telerik:GridBoundColumn DataField="Credit Utilized" HeaderText="Credit Utilized" 
                         UniqueName="column10"
                     </telerik:GridBoundColumn> 
                      <telerik:GridBoundColumn DataField="Available Credit" HeaderText="Available Credit" 
                         UniqueName="column8"
                     </telerik:GridBoundColumn> 
                 </Columns> 
                 <GroupByExpressions > 
                 <telerik:GridGroupByExpression > 
                 <GroupByFields > 
                 <telerik:GridGroupByField FieldName ="companyname" FieldAlias="companyname" FormatString="" HeaderText="" /> 
                 </GroupByFields> 
                 <SelectFields > 
                 <telerik:GridGroupByField FieldName ="companyname" FieldAlias="companyname" FormatString="" HeaderText="" /> 
                 </SelectFields> 
                 </telerik:GridGroupByExpression> 
                 </GroupByExpressions> 
                 <ExpandCollapseColumn Visible="True"
                 </ExpandCollapseColumn> 
             </MasterTableView> 
                               
             
            </telerik:RadGrid> 

Thank you.
Suresh K
Schlurk
Top achievements
Rank 2
 answered on 06 Oct 2009
1 answer
176 views
Disclaimer: New to Telerik

I would like some help on creating an empty RadGrid into which i would like have the end-user input data. The columns in the grid would have a combobox so that they can select the appropriate data for each column.

Any help would be appreciated.
Pwilson
Schlurk
Top achievements
Rank 2
 answered on 06 Oct 2009
1 answer
126 views
Hello,

Hoping you can help me with this. 

I have a radGrid with the ability to insert and edit rows as per the standard functionality.  When the user invokes the insert or edit mode there is a requirement to pre-populate some of the textboxes in the EditForm from existing javascript objects.   Is it possible to obtain a client side reference to EditForm controls and is there a client side event which fires when these controls become available (i.e. after the postback which initiates the edit or insert mode).

The purpose for this is to initate row inserts by clicking on a map and to automatically populate the map coordinates.   In edit mode the coordinate fields need to be updated by interaction with the map outside of the radGrid.

I have scoured the documentation and examples but cannot find a way to do this so any assistance will be much appreciated.

Regards,

Ernie
Georgi Krustev
Telerik team
 answered on 06 Oct 2009
1 answer
211 views
Dear Sir ,

               I have a Radgrid with few Template columns like Rad combo box and Numeric Rad Text boxes . I want to reset some variables and the grid when the user clicks any other control outside the Grid . In other words I want a client event like focus and blur for the RADgrid  So that I can do the clean up work if the user clicks away to another control in the form .

                I don't want focus and blur for  Radnumeric text box which is in template control of the grid . I want some event for the whole grid focus and blur . Pls help me .

 
Georgi Krustev
Telerik team
 answered on 06 Oct 2009
6 answers
192 views
Hello,

First of all pardon me, I have done little work with Grids prior to this. But I have two questions. First, when I click edit, how do I make it so that one of the fields is a drop down to change the value for the update, rather than a text field. I have a dataset and I using dataset.fill and then binding it to the grid to get the grid displayed with the correct data. 

Second of all, when I click update on the webpage does it automatically post back and do the update with the code I provide in the update command event or do I need to do anything else? 

Thank you!

Nate
Sebastian
Telerik team
 answered on 06 Oct 2009
1 answer
64 views
Hi,

any one know how to naigate to different views in clientside?

thanks
Peter
Telerik team
 answered on 06 Oct 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?