Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
199 views
When I insert a table with the table wizard in the RadEditor, I see no dotted lines which indicates where the columns and rows are, like in your examples. The table is inserted, I can see that in the HTML mode, put I like to see the dotted lines. Can you help me?
Kind regards, Barbara
Rumen
Telerik team
 answered on 14 Jul 2008
1 answer
495 views
Hi,

I have a RadGrid setup which displays info from a table. In one specific column I need to get additional information using a static function and display it next to the cell value. I tried using the <%# %> but it just complained that it doesn't allow it. Is there a way to call a static function  in the namespace, add the databound parameter as an input parameter and get the result?  Here is the code I tried:

<telerik:GridBoundColumn DataField="uwr_id" DataType="System.Int64"  
            HeaderText="Request ID"  
            ReadOnly="True"  
            SortExpression="uwr_id"  
            UniqueName="uwr_id" 
            DataFormatString="<%# Base.DBManager.getRelatedTasks(DataBinder.Eval(Container.DataItem,"uwr_id")) %>" > 
        </telerik:GridBoundColumn> 

The DBManager getRelated tasks is as follows:
public static string getRelatedTasks(object obj) 
        { 
            long uwr_id = (long)obj; 
            string res = "SIMPLE RES "; //no processing, just for testing 
       
            return res; 
        } 

This is the error I get:
Server Error in '/' Application. 
Parser Error 
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. 
 
Parser Error Message: Literal content ('<telerik:GridBoundColumn DataField="uwr_id" DataType="System.Int64" 
           HeaderText="Request ID" ReadOnly="True" SortExpression="uwr_id" UniqueName="uwr_id" 
           DataFormatString="') is not allowed within a 'Telerik.Web.UI.GridColumnCollection'. 
 
Source Error: 
 
Line 23: </ExpandCollapseColumn> 
Line 24:     <Columns> 
Line 25:         <telerik:GridBoundColumn DataField="uwr_id" DataType="System.Int64"  
Line 26:             HeaderText="Request ID" ReadOnly="True" SortExpression="uwr_id" UniqueName="uwr_id" 
Line 27:             DataFormatString="<%# Base.DBManager.getRelatedTasks(DataBinder.Eval(Container.DataItem,"uwr_id")) %>" > 
 
 
Source File: /admin/AdmWebsiteRequests.aspx    Line: 25 
 
Version Information: Microsoft .NET Framework Version:2.0.50727.1434; ASP.NET Version:2.0.50727.1434 



Any suggestions?

Miklos
Vlad
Telerik team
 answered on 14 Jul 2008
1 answer
135 views
Hi

Is is possible to get a 'new' data source from the, or re-order the existing, RadGrid.MasterView.Items collection?

What I have is a grid that 1 populate from a DataTable. I want the user to be able to reorder the rows (via the data already in the grid and available in post back from ViewState). I don't want to have to go to the database again (effectively what you do in your online example) and requery for the DataTable and have some mechanism for remembering the row order.

Thanks
Russell Mason
Vlad
Telerik team
 answered on 14 Jul 2008
4 answers
142 views

Even with the Example below it does not show a REAL world way of binding the form data from codebehind with DataTables. 

This example does not tell me how to get the data
Example

I really need your assistance on this please show me what event is fired when clicking on the "Edit" link. 

Once the link is clicked, how does it query the data to fill the from?

Vlad
Telerik team
 answered on 14 Jul 2008
6 answers
138 views

Hi!

I love u guys, i try and try...and learn and learn
but the more i learn, i discover that i dont know nothing...
HEheheh

First let me explain what am trying to do:

I have an RadGridView that have 6 columns
(Name,un,coef,cons,cust,Total).

and

I have an RadNumericTextBox out the grid.
 
I need that the column 'cons' have an label.text = (the out RadNumericTextBox value) * (the value of the specific
column 'coef')

and

I need that the column 'cust'(that have an RadNumericTextBox ) when changed the specif column 'Total' will be set to
'cons * cust'

and

When the Column 'Total' Blur, the column 'Cust' will be set to 'Total / Cons'

and in the footer i have an another RadNumericTextBox that have the sum of the column 'Total'

The image will explain better what i'm trying to do:


[URL=http://img507.imageshack.us/my.php?image=learnxp1.png][IMG]http://img507.imageshack.us/img507/415/learnxp1.th.png[/IMG][/URL]

http://img507.imageshack.us/my.php?image=learnxp1.png

now for the questions :P:

1)How to make to the column 'cons' modify in the client when the out RadNumericTextBox changed?
2)How to get the value of the column 'Cons' when the RadNumericTextBox of the column 'Cust' changed?

Thanks,

Vlad
Telerik team
 answered on 14 Jul 2008
3 answers
180 views
Shaun Peet
Top achievements
Rank 2
 answered on 14 Jul 2008
1 answer
273 views
Is there anyway to scan image and directly upload it with telerik?
Kevin Babcock
Top achievements
Rank 1
 answered on 13 Jul 2008
2 answers
114 views
Hi there, can someone please help me with a problem I can't work out how to get round. I am slowly getting to speed with the radgrid, and am using some grouping now. I want to nto allow the grouping to be expanded and collapsed, and only display the FieldValue in the GroupHeader, and no text and colon.

I tried 

ExpandCollapseColumn-Display

="false"

in my MasterTable but this does not seem to help. I have included my code and a screenshot.


<telerik:RadGrid ID="RadGridDevelopmentNeeds" runat="server" EnableEmbeddedSkins="False" AutoGenerateColumns="false" DataSourceID="srcDevelopmentNeeds" EnableViewState="true" OnItemCommand="RadGridDevelopmentNeeds_ItemCommand">  
                        <MasterTableView GroupHeaderItemStyle-BackColor="Pink" ExpandCollapseColumn-Display="false" > 
                            <GroupByExpressions> 
                                <telerik:GridGroupByExpression> 
                                    <GroupByFields> 
                                        <telerik:GridGroupByField FieldName="Status" SortOrder="Ascending"/>  
                                    </GroupByFields> 
                                    <SelectFields> 
                                        <telerik:GridGroupByField FieldName="Status" HeaderText=" "/>  
                                    </SelectFields> 
                                </telerik:GridGroupByExpression> 
                            </GroupByExpressions> 
                            <Columns> 
                                  
                                <telerik:GridTemplateColumn UniqueName="Rank">  
                                    <ItemStyle VerticalAlign="Top" HorizontalAlign="Left" Font-Bold="true"/>  
                                    <ItemTemplate><%# Eval("Rank")%>.</ItemTemplate> 
                                </telerik:GridTemplateColumn> 
                                <telerik:GridTemplateColumn UniqueName="DNName">  
                                    <ItemStyle CssClass="dnindex"/>  
                                    <ItemTemplate> 
                                        <asp:LinkButton ID="lbSelectDevelopmentNeed" runat="server" CommandName="LoadDevelopmentNeed" CommandArgument='<%#Eval("GUID") %>' CssClass="dnindex"><%#Eval("Name")%></asp:LinkButton> 
                                    </ItemTemplate> 
                                </telerik:GridTemplateColumn> 
                            </Columns> 
                        </MasterTableView> 
                    </telerik:RadGrid> 

I cant attach a picture here but here is a link to one.
http://www.bluerocket.co.nz/temp/gridgroupproblem.gif
Temp
Top achievements
Rank 1
 answered on 13 Jul 2008
2 answers
187 views
Hi Guys,

I'm having some performance issues with a very complex page.  It has about 20 tabs and each page view is very complex.  Now I have been using the AutoPostBack/RenderSelectedPageViewOnly settings for a while but I still have some servious performance issues just because of a lot of uneccessary database calls and dynamic control creations in Init and Load. 

So I was thinking: Why not use the query string to determine the current selected tab? And then override the PageView component and not InitRecursive when its index is not the one currently being shown.

This has several advantages.
- Client side redirect to the next tab (instead of having a redundant post back when simply changing tabs)
- No controls get added to the control tree when they are not in the visible tab (Perforrmance!!)
- No large rewrite required to separate each page view into its own page

Several Drawbacks
- Its a kind of dirty hack
- Will make it harder to change to client side tab navigation in the future
- No ajax navigation between tabs as each tab navigation is a whole new page request

So.  Do you telerik guys think this is a good idea? Possible?  How do you think I should approach this? Override InitRecursive in a custom PageView control?

Thanks

Guido Tapia
Guido Tapia
Top achievements
Rank 1
 answered on 13 Jul 2008
1 answer
101 views
Hello,

I have created a web page that used the uploader control.  I have tested it successfully on my development box.  When I transfer it to the production web site the control does not get rendered. I have checked this forum and could not find any way to solve this issue.

Scott
Scott
Top achievements
Rank 1
 answered on 13 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?