Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
138 views
I am using TRIAL version of RadControls for ASP.NET AJAX Q1 2010 SP2. The problem is that in design time I cannot use the Telerik Control.s All the controls show an error, "Error creating control. Object reference.... " Have attached a screenshot for reference, pls help, we need to decide on a purchase asap.

I tried changing the screenshot to show the correct error, but found a bug. After creating a post with an attachment, if I try to change the file, it does not work. The new file gets uploaded, but doesnt get saved. The post still shows the older image

When looking at the screenshot, please ignore the 'Unknown Server tag' error message, thats been fixed by going through the steps in one of your other posts. Its the object reference error thats killing us.
Pavlina
Telerik team
 answered on 10 Sep 2010
6 answers
153 views
hello,

i downloaded rad controls for moss from here http://download.cnet.com/Telerik-RadControls-for-ASP-NET/3000-2070_4-10403562.html

 i am new to telerik, ive followed this white paper to integrate telerik with moss 2007 http://www.telerik.com/documents/MOSS_whitepaper.pdf, ive followed the steps mentioned in the paper correctly the problem is im unable to see any control/menu/option for telerik controls in my moss website. If ive missed something (which i think i didnt) please guide to any source from which telerik can be deployed automatically including the WSP file needed to deploy it.

Secondly if i deploy it im not getting any activation options in my website, in CA it says the telerik controls are deployed but im unable to see anything related to it in my sites.

what could be the problem ? ive tried deploying telerik twice but still no luck.
Thanks.

Yavor
Telerik team
 answered on 10 Sep 2010
4 answers
165 views
Do you have an example of Telerik controls with WebformsMVP ?
Rosen
Telerik team
 answered on 10 Sep 2010
1 answer
106 views
Hi,

I'd like to know if the grid has the ability do single cell editing similar to Excel.  Any help on this is very useful.

Thank You,
Shinu
Top achievements
Rank 2
 answered on 10 Sep 2010
2 answers
111 views

I have a RadGrid that takes data from a business object of some sort. I use the Microsoft Enterprise Library 4.1 to conduct validation on the object by decorating with a [HasValidation] attribute and handling accordingly.

I'm having problems working out how to just pass back validation errors without ending the insert / update process. I'll elaborate.

For:

OnUpdateCommand="TelerikGrid_OnUpdateCommand"

I have:

protected void TelerikGrid_OnUpdateCommand(object source, GridCommandEventArgs e)
{
    this.businessObject = new BusinessObject();
  
    this.businessObject.GetGridValues(e);
  
    var validationResults = Validation.Validate(this.businessObject);
  
    if (validationResults.IsValid)
    {
        this.businessObjectData = new BusinessObjectData();
  
        int updateResult = this.businessObjectData.Update(this.businessObject);
  
        switch (updateResult)
        {
            case -1:
  
                this.Master.FeedbackText = "Not updated.";
  
                break;
  
            default:
  
                this.Master.FeedbackText = "Updated.";
  
                break;
        }
    }
    else
    {
        this.Master.FeedbackText = string.Format(
            "Errors found in submission: {0}",
            ValidationHelper.GetErrors(validationResults, false));
    }
}

Everything works very well but if there are validation errors, the errors are displayed but the grid appears to rebind, collapsing the edit form and losing all the entered values in the process.

How can I retain the values entered and stop the edit form collapsing when the data fails validation?

Regards,
Richard

Richard Weeks
Top achievements
Rank 2
 answered on 10 Sep 2010
4 answers
166 views
I have a RadGrid which contains a ButtonColumn with CommandName="Select".  Seperately, I have a RadTabStrip.  I am updating the components within the RadTabStrips RadPageView when the user invokes the Select command on the RadGrid.  Everything updates, but I am having trouble figuring out how to ajaxify the RadPageView to update without post-back. 

<rad:RadGrid runat="server" id="RadGrid1" 
    OnSelectedIndexChanged="grdGrid_OnSelectedIndexChanged"
    AutoGenerateColumns="false" >    
    <MasterTableView>        
        <Columns>
            <rad:GridButtonColumn ImageUrl="edit_16.gif" CommandName="Select" ButtonType="ImageButton" HeaderText="Edit"/>                                                
        </Columns>
    </MasterTableView>               
    <ClientSettings>
        <Selecting AllowRowSelect="true" />
    </ClientSettings>
</rad:RadGrid>
  
<rad:RadTabStrip ID="RadTabStrip1" Width="300px" style="margin:5px" runat="server" MultiPageID="RadMultiPage1" SelectedIndex="0" Align="Justify" >
    <Tabs>
        <rad:RadTab Text="Details" >
        </rad:RadTab>
        <rad:RadTab Text="Activity" >
        </rad:RadTab>
    </Tabs>
</rad:RadTabStrip>
<rad:RadMultiPage  runat="server" ID="RadMultiPage2" >
    <rad:RadPageView runat="server" ID="RadPageView3" Selected="true">
        <asp:Label runat="server" ID="Label1" />
    </rad:RadPageView>
    <rad:RadPageView runat="server" ID="RadPageView4" >        
    </rad:RadPageView>    
</rad:RadMultiPage>
  
<rad:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
    <AjaxSettings>
        <rad:AjaxSetting AjaxControlID="RadGrid1" >
            <UpdatedControls>
                <rad:AjaxUpdatedControl ControlID="RadMultiPage2" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </rad:AjaxSetting>
    </AjaxSettings>
</rad:RadAjaxManagerProxy>
Patrick
Top achievements
Rank 1
 answered on 09 Sep 2010
4 answers
168 views
I have a scheduler that bind resouces using an entity data source and it works just fine.  However, I would like to bind the resouces via C# and can't figure out how find the control or what in what method this needs to be done.  An example would be greatly appreciated.

Thanks

<ResourceTypes>
<telerik:ResourceType DataSourceID="edsCategories" ForeignKeyField="CategoryID" KeyField="CategoryID"
                    Name="Category" TextField="Category" /> 
<
/ResourceTypes
  
  
<asp:EntityDataSource ID="edsCategories" runat="server" ConnectionString="name=ProNetData"
        DefaultContainerName="ProNetData" EntitySetName="AppointmentCategories">
    </asp:EntityDataSource>
Timothy Kruszewski
Top achievements
Rank 1
 answered on 09 Sep 2010
2 answers
123 views

I am getting “Micorsoft Jscript runtime error: Object required” error when I try to refer the .js file that refer a Radcontrol. ie.,"document.getElementById('<%=txtTime.ClientID%>')."  Please let me know where i am going wrong.  Any help is appreciated.

I originally have the following JavaScript function in the content page and worked just fine. Now I am trying to move my java script to .js file.

I have the RadScriptManager on the master page. I do not want to load the .js code at the master  page, so I added a ScriptManagerProxy in my content page as below.
   <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
       <Scripts>
        <asp:ScriptReference Path="../JavaScript/test.js" />
       </Scripts>
    </asp:ScriptManagerProxy>

Sample Content of my test.js file

function getTime(sender, args){
         var strTime =document.getElementById('<%=txtTime.ClientID%>').value;
                  args.IsValid = true;   
          }

Thanks in advance.

Nalini
Top achievements
Rank 1
 answered on 09 Sep 2010
18 answers
689 views
I am a current user of the older ASP.NET controls (Q1 '07), and and thought I would take a bit of time to try the new controls for ASP.NET Ajax.

Downloaded... installed.. all ok.

I decided to try to replicate one of my existing graphs in the site, in order to see if I liked the new graph engine (and to see if it was faster than the sluggish old one).

PROBLEM: as soon as I put a new graph control on a form and try to compile (from inside my existing site), I get the error above ('ChartSeries' is ambiguous in the namespace 'Telerik.Charting') and many others similar.

Is this ambiguity with the older version ?

Please tell me I do *not* have to remove the older version from my site, before I can run the new one?

(I do hope that is NOT the case, because Telerik make claim about the fact that the newer and older controls can reside together - it is specifically mentioned).

Steve

PS Yes, I have read the thread below: but it is not clear to me - I was advised when I found bugs in the older Chart that the engine was being completely re-written.  
So why would I want to continue to use the older DLL (engine?)... or is it still the old engine?

What I wish to do is run the 2 (i.e. new and old) side-by-side.



RadChart for ASP.NET AJAX Q2 2008 Send comments on this topic.
Telerik.Charting.
Troubleshooting > Telerik.Charting.

When upgrading existing telerik RadControls applications (which include RadChart) to RadControls for ASP.NET AJAX you may get the following error:

Error 1 The type 'Telerik.Charting.<SomeType> exists in both 'c:\WINDOWS\assembly\GAC_MSIL\Telerik.Charting\...\Telerik.Charting.dll' and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\...\RadChart.Net2.DLL'

The reason for this error is because RadChart (3.x and later) and RadControls for ASP.NET AJAX Chart use shared code.he shared code is in the form of Telerik.Charting.dll assembly which is ILMerged in the RadChart.Net2.dll for backwards compatibility reasons and is shipped separately for RadControls for ASP.NET AJAX.

The error will manifest itself whenever you attempt to reference BOTH RadChart.Net2.dll and Telerik.Charting.dll. There are two ways to resolve the issue:

  1. If you are migrating your projects to use RadControls for ASP.NET AJAX you may initially want to remove the reference to the Telerik.Charting.dll from your Web.config file. In this case you will be using the old ASP.NET Chart and will not need the Telerik.Charting.dll that comes with the suite. The Telerik.Charting.dll is NOT required for the operation of the for ASP.NET AJAX controls other than Chart.
  2. If you are already using RadChart for ASP.NET AJAX then you will need to remove the reference to RadChart.Net2.dll and continue using Telerik.Charting.dll

Please have in mind that RadChart for ASP.NET AJAX and RadChart 4.x have 99% identical functionality. It is up to your personal preference to decide which one you would like to use. The most significant difference is the assembly name and the fact that RadChart for ASP.NET AJAX uses an HttpHandler to display images and RadChart 4.x still uses RadControls\Image.aspx for backwards compatibility reasons.

Ves
Telerik team
 answered on 09 Sep 2010
2 answers
200 views
Hi,

We're using a RadGrid with the PagerStyle.Mode set to NextPrevAndNumeric.  This provides us the next/prev buttons, the numeric page selection, as well as the drop down to select page size.  Beautiful.

Our only problem is the options for the page size drop down.  By default we get the options of 10, 20, and 50.  This may be fine for some, but we're working with grids with 600,000 records, and need to be able to get the page size up to at least 250.  We can do this with the Advanced mode, but we don't want to give the users cart blanche as selecting all 600,000 rows would blow the page up for sure.

So is there a way to control what options are available in the dropdown without implementing a custom paging solution?

Thanks!
Doug Bellenger
Top achievements
Rank 2
 answered on 09 Sep 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?