Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
124 views

<telerik:RadGrid  ID="RadGrid1" runat="server" 
        AllowPaging="True" GridLines="None"   
        AllowSorting="True" Skin="Office2007" AllowAutomaticUpdates="True" AutoGenerateColumns="False" 
        OnUpdateCommand="RadGrid1_UpdateCommand" OnNeedDataSource="RadGrid1_NeedDataSource" 
        OnItemCommand="RadGrid1_ItemCommand" OnItemCreated="RadGrid1_ItemCreated" OnPreRender="RadGrid1_PreRender">  
          
        <PagerStyle Mode="NumericPages" /> 
        <MasterTableView AllowMultiColumnSorting="True" DataKeyNames="BillingItemID" > 
                  
            <NestedViewTemplate> 
                <asp:Panel runat="server" ID="InnerContainer" Visible="false">  
 
                    <telerik:RadMultiPage runat="server" ID="Multipage1" SelectedIndex="0" RenderSelectedPageOnly="false">  
                        <telerik:RadPageView runat="server" ID="PageView1">  
                            <asp:Label ID="BillingItemAssociationID" Text='<%# Eval("BillingItemAssociationID") %>' Visible="false" runat="server" /> 
                              
                            <telerik:RadGrid ID="ChildGrid" runat="server" OnNeedDataSource="ChildGrid_NeedDataSource" OnUpdateCommand="RadGrid1_UpdateCommand" OnItemCreated="RadGrid1_ItemCreated" AllowAutomaticUpdates="true" ShowFooter="true" AllowSorting="true">  
                              
                                <MasterTableView ShowHeader="true" AutoGenerateColumns="False" AllowPaging="true" DataKeyNames="BillingItemID" PageSize="10" HierarchyLoadMode="ServerOnDemand">  
                                          
                                    <Columns> 
protected void RadGrid2_NeedDataSource(object source, GridNeedDataSourceEventArgs e)  
        {  
            ((RadGrid)source).DataSource = BillingItemsChildData(id);  
        } 

I've set the OnNeedDataSource attribute in the nested grid but it's getting called at the right times! The only way I can get this to work is to use a SqlDatasource in the .aspx file and that's just not an option for me. Also You see i'm sending the id (datakey) to the

BillingItemsChildData method but i'm not able to get the datakey from the parent inside this event. I've been testing by manually setting it.

I've been stuck on this for a while now. People on here have suggested that I use the detailsgridbind event but it's not a details grid, it's a nested radgrid.

I've tried setting the NeedDataSource event programmaticaly in just about every event in the page lifecycle and nothing works, only the .aspx SqlDataSource.

Thanks in advance.

Rocky
Top achievements
Rank 1
 answered on 11 Sep 2009
2 answers
248 views
Hello, I'm new to RadControls for ASP.NET AJAX so please forgive me if this is a simple question.

I am using the calendar in Multi-Month view and I have figured out how to get the calendar to dispaly in the fomat that I require.
I now need to bind the calendar to a SQL Server data source so that I can highlight certain dates that have events happening on them.

Can someone tell me how to do this or point me in the direction of a tutorial?

Many thanks in advance.
Nigel Gentry
Top achievements
Rank 1
 answered on 11 Sep 2009
1 answer
93 views
I have tried a few ways to name the masterpage (PreInit, Init) but it either does not change the masterpage id or the controls don't work properly. I am using the telerik RadINputManager to validate information on a form. If I change the masterpage ID it does not disable the user from submitting the form when there are errors. How can I get around this?
Tsvetoslav
Telerik team
 answered on 11 Sep 2009
7 answers
254 views
dear all,

i am using the raddatepicker in my webapplication. i have added a javascript to my application that is executed when ClientEvents-OnDateSelected is fired. this event doenst repond to keybord inputs. is there an option to make the control respond to keybord inputs client side?

greets,

danny
Veselin Vasilev
Telerik team
 answered on 11 Sep 2009
4 answers
260 views
Hi everyone,
I am hoping for some help on something I am sure isn't a major.

I am taking advantage of the CaptionFormatString on a edit/insert form I am using. It works as it should when editing and when adding a form no text is displayed. When I insert a record (I keep the form open) the Caption is then displayed as Edit Item : {0}

Can I change this to be blank or a more friendly type of message?

Thank you

Shane
Ron
Top achievements
Rank 1
 answered on 11 Sep 2009
4 answers
147 views
Hi, I am using this example in my project.
http://demos.telerik.com/aspnet-ajax/grid/examples/groupby/groupfooter/defaultcs.aspx

I wan to remove the collapse button/icon. Using code below, but it doent help.
<ExpandCollapseColumn Visible="false">
        </ExpandCollapseColumn>

I want also remove top row  (Unit  price), such that only columnheader is visible.

One example below indicate how I want to display the data:

Product name      Price
Category1
1                           10
2                            20
Sum                       30

Category2
1                           10
2                            20
3                           25
Sum                       55

Category3
1                           10
2                            20
4                           10
Sum                       40
---------------------------
Total sum             125

Pls help me soon.

Thanks
Thaya
    
Thaya
Top achievements
Rank 1
 answered on 11 Sep 2009
5 answers
195 views
I have a need to customize the PagerTemplate of my grid.  However, when I add my custom controls to the pager template, I lose the paging slider.  How can I add custom controls, but still retain the slider and its functionality.  I'm basically trying to accomplish this mockup:


http://s977.photobucket.com/albums/ae256/fightclub777/?action=view&current=grid.jpg
Mira
Telerik team
 answered on 11 Sep 2009
1 answer
139 views
I have added the following fonts in the ToolsFile.xml

1. Xerox Sans
2. Arial
3. Verdana

In the "Design" view, i have entered text : "sample text" and applied "Arial" font.
When i switch the view to "HTML", i see the html text as "sample text".

Now, in the design view, if i select the text and apply "Verdana" font, the HTML is shown as
"<span style="font-family: verdana;">sample text</span>"

I have two questions here :

1) When i have applied "Arial" font, why the html is not shown as "<span style="font-family: arial;">sample text</span>"?

2) Does telerik rad editor supports "Xerox Sans" font?
    If i see the fonts dropdown, both "Arial" & "Xerox Sans" entries appear to be displayed in same font style i.e of "Arial".

Any inputs would be of great help.

Thanks in advance
Surya.


Martin
Telerik team
 answered on 11 Sep 2009
0 answers
120 views
Hi,
I would like to get such a functionality:
- click a button on the form
- this button sends an Ajax request providing a new grid's height
This grid uses static headers and allows scrolling. If I set just (in the codebehind):
MyGrid.Height = new Unit(newHeight, UnitType.Pixel);
the total height of this grid is changed but the scrolling area remains unchanged. I must change both Height and 

ClientSettings.Scrolling.ScrollHeight properties.
These properties must be set to different values and it is not clear how to compute the proper difference. But when the form is initially loaded, scrolling area height (that is not set at all in aspx) is some way automatically adjusted to fit the total grid height - whatever header's height is set.

What should I do to get the scrolling area automatically adjusted after Ajax request too?

Best regards
Tomasz

tmlipinski
Top achievements
Rank 1
 asked on 11 Sep 2009
1 answer
261 views
hi

i have a standard grid with a series of columns in it i.e GridDropDownColumn, GridBoundColumn etc.

i want to know if there is a way of making the column a required field and validate it as such.

i am creating the columns programatically.

i know you can do it with a template column , but i dont want to have to create template columns for all the fields that require validation , there must be a simpler way to make a column a required field.

just to clarify this is for the insert/edit modes of the grid i need to validate the fields for.

thanks for your input on this.

Peter.
Shinu
Top achievements
Rank 2
 answered on 11 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?