Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
96 views
Hi!

I have a problem on group by expression.

My expression is:

Dim expression As GridGroupByExpression = New GridGroupByExpression
            Dim gridGroupByField As GridGroupByField = New GridGroupByField

            'Add select fields (before the "Group By" clause)
            gridGroupByField = New GridGroupByField
            gridGroupByField.FieldName = "Modelo"
            gridGroupByField.HeaderText = "Modelo"
            gridGroupByField.HeaderValueSeparator = ": "
            gridGroupByField.FormatString = "<strong>{0}</strong>"
            expression.SelectFields.Add(gridGroupByField)

            gridGroupByField = New GridGroupByField
            gridGroupByField.FieldName = "TotalEnc"
            gridGroupByField.HeaderText = " Quantidade"
            gridGroupByField.HeaderValueSeparator = ": "
            gridGroupByField.FormatString = "<strong>{0}</strong>"
            gridGroupByField.Aggregate = GridAggregateFunction.Sum
            expression.SelectFields.Add(gridGroupByField)

            gridGroupByField = New GridGroupByField
            gridGroupByField.FieldName = "ValorEnc"
            gridGroupByField.HeaderText = " Total"
            gridGroupByField.HeaderValueSeparator = ": "
            gridGroupByField.FormatString = "<strong>{0:C}</strong>"
            gridGroupByField.Aggregate = GridAggregateFunction.Sum
            expression.SelectFields.Add(gridGroupByField)

            'Add a field for group-by (after the "Group By" clause)
            gridGroupByField = New GridGroupByField
            gridGroupByField.FieldName = "Modelo"
            gridGroupByField.FieldAlias = "ola"
            expression.GroupByFields.Add(gridGroupByField)

And in the result it shows:

Modelo: 5373Modelo Quantidade: 0Modelo Total: 0,00 €

How can i change the word Modelo by ; ???

Thanks!
Princy
Top achievements
Rank 2
 answered on 14 Nov 2008
5 answers
282 views

In my grid the headers are lining up with the columns below them.  What is even more interesting is when I set....

 GridLines="Both"  

If I grab ANY column and move it ever so slightly the columns and headers line up.

Here are my settings. Keep in mind I need to have Grouping, Multiple Sort, Column Resizing, and Scrolling set to TRUE!!

<telerik:RadGrid ID="RadGrid1"   
                 AllowMultiRowSelection="true"   
                 AllowSorting="true"   
                 AllowPaging="false"   
                 AutoGenerateColumns="False"   
                 AlternatingItemStyle-HorizontalAlign="Center"                     
                 ItemStyle-HorizontalAlign="Center" 
                 BackColor="#ffffff" 
                 EnableEmbeddedSkins="false"   
                 GridLines="Both"   
                 GroupingEnabled="true"                                                                    
                 Height="370px"   
                 OnSortCommand="RadGrid1_SortCommand" 
                 OnNeedDataSource="RadGrid1_NeedDataSource"   
                 OnItemDataBound="RadGrid1_ItemDataBound"   
                 OnItemCommand="RadGrid1_ItemCommand" 
                 ShowHeader="true"   
                 ShowGroupPanel="true"     
                 ShowStatusBar="true"                                                                  
                 Skin="MySkin"   
                 Width="99%"   
                 runat="server"> 

<MasterTableView DataKeyNames="ID" AllowMultiColumnSorting="True" Width="100%">                                
   <Columns> 
     <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" HeaderStyle-Width="50" /> 
     <telerik:GridBoundColumn SortExpression="ROWNUM" HeaderText="Priority" HeaderButtonType="TextButton" HeaderStyle-Width="50" ItemStyle-Width="50" DataField="ROWNUM" /> 
     <telerik:GridBoundColumn SortExpression="COMPANY_NAME" HeaderText="Company Name" HeaderButtonType="TextButton"  HeaderStyle-Width="150" ItemStyle-Width="150" ItemStyle-HorizontalAlign="Left" DataField="COMPANY_NAME"  />    
 </Columns>            
</MasterTableView>    
                          


<ClientSettings AllowColumnsReorder="true" AllowDragToGroup="True" ReorderColumnsOnClient="true" AllowRowHide="true">  
   <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True"></Scrolling> 
   <Resizing  AllowColumnResize="True" AllowRowResize="False" EnableRealTimeResize="True" ResizeGridOnColumnResize="True"></Resizing> 
   <Selecting AllowRowSelect="True"></Selecting>                               
</ClientSettings> 

Any help you can give me would be great!

Notice the Skin I made is the exact same as your Hay with just a different header background image everything else is the same in the css.
Dimo
Telerik team
 answered on 14 Nov 2008
1 answer
81 views
Hi there,

Can anyone tell me if there is a corresponding property in the RadHtmlField control to enable enhanced editing.  We have an RadHtmlField editor on our SharePoint web part page to allow users to edit the page introduction.  When users try to insert a table using the editor, the borders of the table are not displayed.  According to the documentation, to enable a dashed border style for all tables in the design view of the editor you need to set EnableEnhancedEdit to true, however, this property is defined by the RadEditor class and the RadHtmlField inherits from Microsoft.SharePoint.WebControl.BaseFieldControl.  Any thoughts?

Thanks.

Paul
Stanimir
Telerik team
 answered on 14 Nov 2008
1 answer
92 views
Hello,

We noticed some minor issues which are no severe problem, but we at least want to communicate.

- Arrow keys cannot be used to select images in the image manager.

- We have some controls under the RadEditor. If we use the arrow keys oder mark text there, the inputs are also captured by the RadEditor.

- If a complete line is marked as a link, any text written behind the link is also part of the link.

Regards,
Markus
Stanimir
Telerik team
 answered on 14 Nov 2008
1 answer
110 views
Hello,

Our costumer wants to embed flash content in wiki pages. The code for the flash object was always removed, so I searched this forum and found several threads stating that it is not possible to embed flash content as the code is filtered by the server. In these threads it was also mentioned that this is standard behavior which also occurs using the standard moss editor. But our costumer tested it with the standard editor and it worked fine. So i guess it was fixed (Sp1?) and now I'm asking myself if it's also possible with the newest Rad Editor version.

Regards,
Markus
Stanimir
Telerik team
 answered on 14 Nov 2008
1 answer
95 views
Hi

Is it possible to prevent a sliding zone from collapsing unless the user clicks the collapse 'x'? I want to do something similar to ClickToOpen, so that when the user clicks the tab the pane slides out and stays out. They must then explicitly click the 'x' collapse button to close it. I do not want to automatically dock the pane (i.e. I still want the pane to overlay the underlying content).

I can prevent the collapse entirely by using OnClientBeforeCollapse and set_cancel(true), but I cant work out how I know whether the user clicked the 'x' or its a timed collapse.

Thanks
Russell Mason
Svetlina Anati
Telerik team
 answered on 14 Nov 2008
2 answers
136 views
Hi,

I've added my RadComboBox into a telerik:gridtemplatecolumn. When I go into edit mode my combobox is too big and width and height ways. I reduced the Height and Width property but it didn't effect the actual box only the scrolling of my item in my combobox. How can i reduce it's actual size without effecting the item scrolling?
Darren
Top achievements
Rank 2
 answered on 14 Nov 2008
1 answer
126 views
Is it possible to right align the numerical textbox when used in conjunction with RadInputManager?

Or is RadNumericTextBox the only way?
Missing User
 answered on 14 Nov 2008
1 answer
129 views
Ok, so I am running my site on IIS 7 which I know does not have the option for "Memory Optimization", but... why can I not garbage collect the memory after the upload?  The memory is NOT "live", but it is being comsumed still by the worker process, and does not seem to garbage collect for a very long time. With large uploads this becomes extremly problematic!

I have tried.

GC

 

.Collect(); <-- Does Nothing!

Please Help!

 

Atanas Korchev
Telerik team
 answered on 14 Nov 2008
1 answer
218 views
Hi there,

I'm having performance problems with some client-side code that programmatically selects rows in my grid. The grid has 20 columns of varying type - template columns and bound columns. There's also a checkbox column as my grid is multi-select enabled.

Above my grid I've put a series of span elements with an onclick handler that allow the user to quickly select rows in the grid with a single click:

Select all  |  Deselect all  |  Select payables  |  Select receivables

Here's the code I use to do the selection:

// Pick up the grid's master table  
var masterTable = $find("<%= grdResults.ClientID %>").get_masterTableView();    
              
// Loop through the grid's items  
for(var i=0;i<masterTable.get_dataItems().length;i++)    
{  
    masterTable.selectItem(masterTable.get_dataItems()[i].get_element());    
} 

This does work, but if I have over 50 rows in my grid then it starts to run slowly, and if I have 100 rows in the grid I get the Internet Explorer dialog that warns that a script is running slowly.

There is code in the grid row selecting, selected, and deselected client-side events, but I set a flag at runtime indicating that I'm selecting rows programmatically so that the event handlers return without doing anything while the programmatic selection takes place.

So, two questions...

1. Is there a way of speeding up the programmatic selection any more?

2. If not then is there a way of displaying a loading panel using only client-side code, no postbacks?

Many thanks in advance,
Rob
Nikolay Rusev
Telerik team
 answered on 14 Nov 2008
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?