Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
368 views
Hi,

I am trying to incorporate excel like edit feature for my grid. I have 7 columns out of which only 1 is editable. The editable column is a RadComboBox. I load the grid in edit mode with the combox values populated in it.

I am trying to find a way to identify the updated rows on click of my "Upload" button.

Could you please suggest an approach?

Regards,
Saurabh
Saurabh Srivastava
Top achievements
Rank 1
 answered on 26 Aug 2009
2 answers
465 views
I've reviewed the following post: http://www.telerik.com/community/forums/aspnet-ajax/form-decorator/how-do-you-change-button-font-size.aspx.  This seems to have no effect on the RadControls for ASP.NET AJAX Q2 2009.  Can you help?  Thank you in advance.
Stephen
Top achievements
Rank 1
 answered on 26 Aug 2009
3 answers
272 views
Hi,

We are upgrading a project from asp.net to asp.net ajax Q2 and for the most part it is going well. However, the editor image manager dialog throws javascript errors as follows

Error: Sys is not defined
Source File: http://localhost:2707/AlphaAdmin/Admin/Abstracts/Telerik.Web.UI.DialogHandler.aspx?DialogName=ImageManager&Skin=Default&Title=Image%20Manager&doid=f1cfb587-da80-449a-977d-924aa3362952&dpptn=&dp=ZFtfMzs0L1BSV0lNcjpyBFcfAQZ5ZR8CeHB5UlQMQQ04fnJmVQZyCDFaOENpMU5xahcZGz96RxNhc1woWhdzQ25jdVlLan9OUE9qEU8hNHJcZGozUTwCRCxadRFVBGYzLCIdcH1VZ0FyJFs4VHlAc3llUl5Jf2V1aTl%2FCQFfQGZTMGYIKXM%2FRGQPB0R9Fy8pNkVYN09jfgpucGBae2JXdEhfa1FRY2YnTzEoSmJ0YjJqIS9fHQVlNlJ%2BXzM7OStGajN7B2QnYihXZXpab3ZnQXtweRVqNVkrO3ENXVQJdgo%2FZAZwajVOTGkTFhYpb0A8Y396NW4rBRR7B21ec2pnUlJicglJLjBKW14FJHwiN04aYGYRe3VEdzU2Ix1mPG9ESlB%2BK2dAWEV5ZGRCSFVmV2IMaxUBFG1AfQ1HHShzLwN%2BJncBZQc3Ej9xehRMTh0nWRdzXlYER3dwZXdIUUlcUUwxW1N0WGIuaTMdQSQGYVdVcWUPODZURXwhd19KKnYseWl1RXVZTmVOCUN9Yw9vDgdybmpnMlQuAWEkYVJRYGVlcSsWP2xTUUhiUBBtLnd3YgVLAH1Yb3dXSXoUeAgOT3VdWGhkIxFEGnFfOmxxSxU3UT8YZzJJXEoldjJgQ3ZsdQFCAHpWXxdqUHcuNEh2UmcbQBM8bxUGZCRGbmAYNzYzfkQefmJyA1oHe1hgWGFbZ1h8DWdzQCNJVltidntcE1EPMwQqYmEkUmMCMTA5K2NiMRlPcQlQE3h6ekJ1ZkZbT25qXGokRS0DYXJ3VGxUMjZxJEdqCVJFUiwsGDNDZjN%2FTUQbbyxWHXtjEmd5akVZUXFqEnkIEkhddgUvZgkJbShyBhBiXXZ5MTURb1Usf1tLDw0oV2hmRnplUkR3C311aTl%2FCS5jYltSFn4IKXM%2FRHxTYEFRB1gJP29yDElwQBh0BmdUUGF2QWdxVVlRc0NQdFYGbW91eip%2BMyNvLGNyV3kGZTU4Ni9aajF7Q3EPbitvamJddgBeQk9WfldiDGsVARRtQH0nSDEGWShbfFJgQ2oXKxI%2FfFwQdGBMDmoXZ11QcRpLZnd3UFFsfg1hIi9Vbnt6b2owEWAfYGVRY3F1cAApKFpmLGcGcjFPN3lrREJCSHxYfwhDfWUMHVc7cFx1fRpbWQ%3D%3D
Line: 45

Error: Type is not defined
Source File: http://localhost:2707/AlphaAdmin/Admin/Abstracts/Telerik.Web.UI.DialogHandler.aspx?DialogName=ImageManager&Skin=Default&Title=Image%20Manager&doid=f1cfb587-da80-449a-977d-924aa3362952&dpptn=&dp=ZFtfMzs0L1BSV0lNcjpyBFcfAQZ5ZR8CeHB5UlQMQQ04fnJmVQZyCDFaOENpMU5xahcZGz96RxNhc1woWhdzQ25jdVlLan9OUE9qEU8hNHJcZGozUTwCRCxadRFVBGYzLCIdcH1VZ0FyJFs4VHlAc3llUl5Jf2V1aTl%2FCQFfQGZTMGYIKXM%2FRGQPB0R9Fy8pNkVYN09jfgpucGBae2JXdEhfa1FRY2YnTzEoSmJ0YjJqIS9fHQVlNlJ%2BXzM7OStGajN7B2QnYihXZXpab3ZnQXtweRVqNVkrO3ENXVQJdgo%2FZAZwajVOTGkTFhYpb0A8Y396NW4rBRR7B21ec2pnUlJicglJLjBKW14FJHwiN04aYGYRe3VEdzU2Ix1mPG9ESlB%2BK2dAWEV5ZGRCSFVmV2IMaxUBFG1AfQ1HHShzLwN%2BJncBZQc3Ej9xehRMTh0nWRdzXlYER3dwZXdIUUlcUUwxW1N0WGIuaTMdQSQGYVdVcWUPODZURXwhd19KKnYseWl1RXVZTmVOCUN9Yw9vDgdybmpnMlQuAWEkYVJRYGVlcSsWP2xTUUhiUBBtLnd3YgVLAH1Yb3dXSXoUeAgOT3VdWGhkIxFEGnFfOmxxSxU3UT8YZzJJXEoldjJgQ3ZsdQFCAHpWXxdqUHcuNEh2UmcbQBM8bxUGZCRGbmAYNzYzfkQefmJyA1oHe1hgWGFbZ1h8DWdzQCNJVltidntcE1EPMwQqYmEkUmMCMTA5K2NiMRlPcQlQE3h6ekJ1ZkZbT25qXGokRS0DYXJ3VGxUMjZxJEdqCVJFUiwsGDNDZjN%2FTUQbbyxWHXtjEmd5akVZUXFqEnkIEkhddgUvZgkJbShyBhBiXXZ5MTURb1Usf1tLDw0oV2hmRnplUkR3C311aTl%2FCS5jYltSFn4IKXM%2FRHxTYEFRB1gJP29yDElwQBh0BmdUUGF2QWdxVVlRc0NQdFYGbW91eip%2BMyNvLGNyV3kGZTU4Ni9aajF7Q3EPbitvamJddgBeQk9WfldiDGsVARRtQH0nSDEGWShbfFJgQ2oXKxI%2FfFwQdGBMDmoXZ11QcRpLZnd3UFFsfg1hIi9Vbnt6b2owEWAfYGVRY3F1cAApKFpmLGcGcjFPN3lrREJCSHxYfwhDfWUMHVc7cFx1fRpbWQ%3D%3D
Line: 86

Error: setInnerHtml is not defined
Source File: http://localhost:2707/AlphaAdmin/Admin/Abstracts/Telerik.Web.UI.DialogHandler.aspx?DialogName=ImageManager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yV3kGZTU4Ni9aajF7Q3EPbitvamJddgBeQk9WfldiDGsVARRtQH0nSDEGWShbfFJgQ2oXKxI%2FfFwQdGBMDmoXZ11QcRpLZnd3UFFsfg1hIi9Vbnt6b2owEWAfYGVRY3F1cAApKFpmLGcGcjFPN3lrREJCSHxYfwhDfWUMHVc7cFx1fRpbWQ%3D%3D
Line: 462

In web.config, the dialogs have been setup via the design time wizard as follows

    <httpHandlers>
   <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2008.2.1001.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4"
    validate="false" />
   <add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2008.2.1001.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4"
    validate="false" />
   <add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Version=2008.2.1001.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4"
    validate="false" />
  </httpHandlers>

and finally, in design time, the RadEditor is setup like this
 <telerik:RadEditor ID="RadEditor1" runat="server" Width="800px" Height="300px" ToolsFile="~/Admin/AlphaCMEToolsFile.xml" ImageManager-ViewPaths="~/images" ImageManager-DeletePaths="~/images" ImageManager-UploadPaths="~/images">
<Content>
</Content>
</telerik:RadEditor>

So what are we doing wrong here?? Thanks.
















Lini
Telerik team
 answered on 26 Aug 2009
5 answers
240 views
I'm trying to use a custom user control for inserting and updating data.  However, when the use clicks the Add new record link the insert user control is not displayed and the grid is left blank.  I think it's because the OnItemCommand event is not firing for some reason.  can someone please help?

Here is some code and markup:

<telerik:RadGrid ID="RadGrid4" runat="server" Skin="WebBlue" Width="95%" 
     AllowPaging="True" AllowSorting="True" 
     OnNeedDataSource="xxxRadGrid1_NeedDataSource" 
     OnUpdateCommand="xxxRadGrid1_UpdateCommand" 
     OnInsertCommand="xxxRadGrid1_InsertCommand" 
     OnDeleteCommand="xxxRadGrid1_DeleteCommand" 
     CommandItemSettings-AddNewRecordText="Add New BMI Measure" 
     OnItemCommand="xxxRadGrid1_ItemCommand" 
    GridLines="Both"
     <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle> 
     <MasterTableView DataKeyNames="ID" GridLines="Both" Width="100%" 
         CommandItemDisplay="Top" AutoGenerateColumns="False"
         <Columns> 
          
             <telerik:GridEditCommandColumn> 
             </telerik:GridEditCommandColumn> 
             <telerik:GridBoundColumn DataField="ID" HeaderText="" UniqueName="ID" Visible="false"
             </telerik:GridBoundColumn> 
             <telerik:GridBoundColumn DataField="Height" HeaderText="Height" UniqueName="Height"
             </telerik:GridBoundColumn> 
             <telerik:GridBoundColumn DataField="Weight" HeaderText="Weight" UniqueName="Weight"
             </telerik:GridBoundColumn> 
             <telerik:GridBoundColumn DataField="BMI" HeaderText="BMI" UniqueName="BMI"
             </telerik:GridBoundColumn> 
             <telerik:GridButtonColumn CommandName="Delete" Text="Delete" UniqueName="Delete" ConfirmDialogType="Classic" ConfirmTitle="Deleting BMI Measure" ConfirmText="Are you sure you want to delete the BMI Measure?">    
           </telerik:GridButtonColumn> 
            
         </Columns> 
     <EditFormSettings EditFormType="WebUserControl" UserControlName="" ColumnNumber="2" CaptionFormatString="Edit details for the Benchmark"   
           CaptionDataField="ID"
           <FormTableItemStyle Wrap="False"></FormTableItemStyle>   
           <FormCaptionStyle CssClass="EditFormHeader"></FormCaptionStyle>   
           <FormMainTableStyle CellSpacing="0" CellPadding="3" Width="100%" />   
           <FormTableStyle GridLines="Horizontal" CellSpacing="0" CellPadding="2" CssClass="module"   
               Height="110px" Width="100%" />   
           <FormTableAlternatingItemStyle Wrap="False"></FormTableAlternatingItemStyle>   
           <FormStyle Width="100%" BackColor="#EEF2EA"></FormStyle>   
           <EditColumn UpdateText="Update BMI Measure" UniqueName="EditCommandColumn1" CancelText="Cancel Edit">    
           </EditColumn>   
           <FormTableButtonRowStyle HorizontalAlign="Right" CssClass="EditFormButtonRow"></FormTableButtonRowStyle>   
        </EditFormSettings> 
        <ExpandCollapseColumn Visible="False">    
           <HeaderStyle Width="19px"></HeaderStyle>   
       </ExpandCollapseColumn>   
       <RowIndicatorColumn Visible="False">   
           <HeaderStyle Width="20px" />   
       </RowIndicatorColumn> 
        
     </MasterTableView> 
 
<FilterMenu Skin="WebBlue" EnableTheming="True"
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
</FilterMenu> 
</telerik:RadGrid> 

protected void xxxRadGrid1_NeedDataSource(object source, GridNeedDataSourceEventArgs e) 
    { 
        RadGrid4.DataSource = bmiMeasures
        RadGrid4.DataMember = "BMIMeasures"
    } 
 
 
protected void xxxRadGrid1_ItemCommand(object source, GridCommandEventArgs e) 
    { 
        if( e.CommandName == RadGrid.InitInsertCommandName ) 
        { 
            e.Canceled = true
            RadGrid4.EditIndexes.Clear(); 
 
            e.Item.OwnerTableView.EditFormSettings.UserControlName = "DesktopModules\\GCCPopulationEncounters\\InsertBMIMeasure.ascx"
            e.Item.OwnerTableView.InsertItem(); 
        } 
        else if( e.CommandName == RadGrid.EditCommandName ) 
        { 
            e.Item.OwnerTableView.IsItemInserted = false
            e.Item.OwnerTableView.EditFormSettings.UserControlName = "DesktopModules\\GCCPopulationEncounters\\EditBMIMeasure.ascx"
        } 
    } 

The Insert, Update, and Delete events are still empty because I haven't gotten that far.  If anyone can take a look and help me out I would greatly appreciate it.

Thank you,
Nick



Tsvetoslav
Telerik team
 answered on 26 Aug 2009
3 answers
120 views
HI,

I am using a User Control to edit the grid values and the uc has 3 RadComboBox items (2008 Q1).  I am able to populate the first combo without a problem however when I add the code to the populate the second combo (and the third) it generates the error below:

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentOutOfRangeException: Selection out of range
Parameter name: value

Source Error:

Line 700:        If Not IsPostBack Then
Line 701:            Me.rgPRResults.MasterTableView.Items(1).Edit = True
Line 702: Me.rgPRResults.MasterTableView.Rebind()Line 703:        End If
Line 704:

Here is the code for loading the combos...if I comment out the code to load the second combo it works fine but when it is uncommented it fails.  I used the Grid Edit via User Control demo as a template for this and made sure I set the datasource = nothing for the combos after loading the data but no luck.  Any thoughts?

Thanks in advance...

Kelvin

 

Protected Sub PriceRulesDetails_DataBinding(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.DataBinding

 

 

'Load Status DDL

 

 

Dim oValue As Object = DataBinder.Eval(DataItem, "Status").ToString

 

 

If oValue.Equals(DBNull.Value) Then

 

oValue =

""

 

 

End If

 

 

With Me.rdcmbPRStatus

 

.Items.Insert(0,

New RadComboBoxItem("", ""))

 

.Items.Insert(1,

New RadComboBoxItem("Active", "A"))

 

.Items.Insert(2,

New RadComboBoxItem("Inactive", "I"))

 

.DataBind()

 

End With

 

rdcmbPRStatus.SelectedValue = oValue.ToString

rdcmbPRStatus.DataSource =

Nothing

 

oValue =

Nothing

 

 

 

'Load Cost Multiplier DDL

 

oValue = DataBinder.Eval(DataItem,

"CostMultiplier").ToString

 

 

If oValue.Equals(DBNull.Value) Then

 

oValue =

""

 

 

End If

 

 

With Me.rdcmbPRCostMultiplier

 

.Items.Insert(0,

New RadComboBoxItem("", ""))

 

.Items.Insert(1,

New RadComboBoxItem("Program Cost", "P"))

 

.Items.Insert(2,

New RadComboBoxItem("Retail Cost", "R"))

 

 

End With

 

rdcmbPRCostMultiplier.SelectedValue = oValue.ToString

rdcmbPRCostMultiplier.DataSource =

Nothing

 

oValue =

Nothing

 

 

'' ''Load Reward Pricing Group DDL

 

 

' ''Me.rdcmbPRRewardPriceGroup.DataSource = LoadRewardPriceGroupsDDL()

 

 

' ''Me.rdcmbPRRewardPriceGroup.DataBind()

 

 

' ''oValue = DataBinder.Eval(DataItem, "RewardGroupID").ToString

 

 

' ''If oValue.Equals(DBNull.Value) Then

 

 

' '' oValue = ""

 

 

' ''End If

 

 

' ''rdcmbPRRewardPriceGroup.SelectedValue = oValue.ToString

 

 

' ''rdcmbPRRewardPriceGroup.DataSource = Nothing

 

 

' ''oValue = Nothing

 

 

 

End Sub

 

Sebastian
Telerik team
 answered on 26 Aug 2009
4 answers
174 views
Please guide me how to customize edit/insert form. For example, the default edit control is text box but I want to change to RadDateInput or RadNumericInput based on data content. I will to config these change in the design time

Truong Pham
Top achievements
Rank 1
 answered on 26 Aug 2009
7 answers
230 views
Hi i want to align the button of radalert in the center.
how can i.
shouls i use the alert template.
how can i add the same image in the alert template.
please give me an example of alert template which have radalert image and ok button align in center
DK
Top achievements
Rank 2
 answered on 26 Aug 2009
1 answer
99 views
Hi

Basically what I am looking for is similar to the facility in Excel graphing in which you can have a bar graph with High-Low lines.  I am needing to show the absolute value with a standard deviation above and below to be represented.  Is there anyway I can do this in a Radchart?

Thanks in advance for the assistance

Matthew
Ves
Telerik team
 answered on 26 Aug 2009
1 answer
83 views
Im trying to setup a grid with Hierarchy and a MySql database.  I can get the connections setup fine and the initial tables loaded but I cant seem to get them to link.  I get an error if I try to use the example with sessions or the 
(WHERE [FIELD] = ?) 
It just returns an error because in MySQL it has no idea what that means.  Any ideas?

Basically I can get a full master list and then the linked details I get all the records in the table insted of just that users/customers because there is no "where" statment in the sql because thats the only way I could get it to work.
Rosen
Telerik team
 answered on 26 Aug 2009
8 answers
1.1K+ views
Hello.  We are using RadEditor in a Wiki environment.  Because of this, we are processing the HTML output and looking for special character sequences (i.e. ===Heading 2===).  We would like to be able to suppress this parsing in certain situations (i.e. the help pages), and have tried entering &#61;&#61;&#61;Heading 2&#61;&#61;&#61; in the HTML view of the editor.  Unfortunately, the editor automatically converts these to equal signs when you switch to the design view and back to the HTML view.  Is there any way to suppress this behavior?  We'd like to retain the special character sequences if they're manually entered as such.

Thanks for any suggestions.
Rumen
Telerik team
 answered on 26 Aug 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?