Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
120 views
Hi,

I would like to implement a Editor. I have got a treeview with the structure of my application. When clicking on a node (actually a node is a page of my application) the content must be shown in the editor to give the possiblity to the user to change its content.

I need to know how to do that step, when clicking on a node to charge the content of that page into the editor.

Do you know how to this?any nice example?

Thank you in advance.
Tervel
Telerik team
 answered on 21 Apr 2009
2 answers
93 views
Hi,

Before I log a support ticket maybe someone can put my mind at rest.

I am updating my tree on the client and then doing a postback to process the changes. It all works but I am seeing what I think is odd / could be a bug. I am iterating over the ClientOperation objects as recommended but I am only updating one node per postback.

 foreach (ClientOperation<RadTreeNode> operation in rtvMenu.ClientChanges) 

On the updated node I am altering multiple propeties  - 3 in total (text / value and adding an attribute). I assumed that I would only have one ClientOperation object containing one node object but I get three and I examined each node in debugging and they are all the same with the updated values. I did a test with updating only one property and boom - one object. This doesn't make sense - Why send 3 objects when they are all on the same node, I am hitting the db 3 times with the same information this way. It would make sense if there was a flag on each object saying with propropery was changed but as far as i can see there isn't one. So is this a bug or is there some reason by design it is doing this?

Thanks,

Leon.

PS Subscription up in 30 days and renewing for another year is a no-brainer - Telerik tools make me look good ;)


Relative
Top achievements
Rank 1
 answered on 21 Apr 2009
1 answer
73 views
I have a RadGrid bound to a LinqDataSource. The grid has auto generated Edit and Delete columns. It displays a simple table without any hierarchical organization.

I am taking the following steps.
1. Populate a RadGrid using a LinqDataSource
2. Click Edit on the last row of the grid
3. From another control on the page, update the linqdatasource and call rebind on the grid
4. The grid loses track of the current editing item, and opens a different item in edit mode

Please help.
Yavor
Telerik team
 answered on 21 Apr 2009
1 answer
160 views
Hi,

Can i change the tool icon of the editor.
 My requirement is :-
 the  forecolor icon and background color icon must have a color palette or something under it before and after setting the colors.
Now the selected color is displaying under the icon only if we select a color.

i need to give a different icon for the fore color and back color icons. if this is possible anyone please help.

Thanks & Regards
Anju
Tervel
Telerik team
 answered on 21 Apr 2009
1 answer
116 views
The color picker for setting background color in the style builder is empty. The others, for font and border colors, are fine.

I fixed this by adding the following lines to StyleBuilder.ascx at line 353 (in the 'clientInit' function):

  $find("backgroundColor").set_items(this._clientParameters.Colors);
  $find("backgroundColor").set_color("");
Rumen
Telerik team
 answered on 21 Apr 2009
5 answers
176 views
I've just moved my app to Q1 2009 and noticed that the window skin has a slight anomaly.

Have a look at this image and you'll see that there is something odd along the bottom centre of this window, which, if it makes any difference, was opened with Modal=true.

--
Stuart
Martin
Telerik team
 answered on 21 Apr 2009
4 answers
194 views
Hi,
I have a regular asp:FileUpload in a template in a grid.
It works fine to upload if ajax is not enabled but with ajax it wont work.
Javascript errormessage:
Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.
I have looked at your demo and to use onrequeststart on the panel,
http://demos.telerik.com/aspnet-ajax/ajax/examples/common/fileupload/defaultcs.aspx
but I cant figure out what's wrong!

<script type="text/javascript"
        function OnRequestStart(target, arguments) { 
            if (document.getElementById("FileUpload2") != null) { 
                var fileUpload = document.getElementById("FileUpload2"); 
                if (fileUpload.value != "") { 
                    arguments.set_enableAjax(false); 
                } 
            } 
        } 
</script> 
<telerik:RadAjaxPanel runat="server" ID="radAjaxPanel" Width="100%" LoadingPanelID="radAjaxLoadingPanel" ClientEvents-OnRequestStart="OnRequestStart"
     <telerik:RadGrid ID="RadGrid1" 
     ... 
     <EditFormSettings EditFormType="Template"
           <FormTemplate> 
                <input id="FileUpload2" type="file" runat="server" class="fileUpload" /> 
                <asp:Button ID="buttonUploadFile" Text="Ladda upp" runat="server" ValidationGroup="validationGroupFile" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>' CommandArgument="File" />  



Rosen
Telerik team
 answered on 21 Apr 2009
1 answer
95 views
 
 <telerik:GridTemplateColumn UniqueName="RadChrt" HeaderText="RadChrt"
                        <ItemTemplate> 
                            <asp:Label Text="ChartPos" Visible="false" runat="server">    </asp:Label> 
                            <telerik:RadChart ID="RadChart1" runat="server"
                               <PlotArea> 
                                <EmptySeriesMessage Visible="True"
                                    <Appearance Visible="True"
                                    </Appearance> 
                                </EmptySeriesMessage> 
                               </PlotArea> 
                                <ChartTitle> 
                                    <TextBlock Text="Nested Chart"
                                    </TextBlock> 
                                </ChartTitle> 
                           </telerik:RadChart> 
                             
                        </ItemTemplate>    
  </telerik:GridTemplateColumn> 
 
 
 
RadGrid1_ItemDataBound(object sender, GridItemEventArgs e) { 
if (e.Item is GridDataItem) 
        { 
            GridDataItem item = e.Item as GridDataItem; 
            RadChart chart = item["RadChrt"].FindControl("RadChart1") as RadChart; 
 
how do i search for a radchart control in a template column within the mastertableview.
i want to get the value NOT within the RadGrid1_ItemDataBound event
 

Princy
Top achievements
Rank 2
 answered on 21 Apr 2009
2 answers
247 views

Hi, When adding grouping in the codebehind using the GridGroupByExpression is it possible to assign the header text of the grouping fields? Instead of 'SalesRegionDescription' I would like to display 'Sales Region'.

rgMain.MasterTableView.GroupByExpressions.Clear()

 

Dim expression1 As GridGroupByExpression = GridGroupByExpression.Parse("Geography, SalesRegionDescription Group By Geography, SalesRegionDescription")

 

rgMain.MasterTableView.GroupByExpressions.Add(expression1)

rgMain.MasterTableView.ShowGroupFooter =

True

Thanks

 

Princy
Top achievements
Rank 2
 answered on 21 Apr 2009
1 answer
150 views
hi,

 

 

In RadGrid having 7000 records. When I Scroll RadGrid Task Manger shows CPU usage memory between 70 and 90 .The website is very slow .How I can improve performance of website .some times website is struck. How I can reduce memory usage of CPU. I am using IE 6 and IE 7.
Thanks in advance...

Shinu
Top achievements
Rank 2
 answered on 21 Apr 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
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
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?