Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
317 views

I want to use two different WebUserControl forms , one for insert and one for edit.

I have tried the following logic to implement this. But it is not working.

protected void RadGrid1_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
{
    
if (e.CommandName == RadGrid.InitInsertCommandName)
    {
           e.Canceled = true;
           RadGrid1.EditIndexes.Clear();

           e.Item.OwnerTableView.EditFormSettings.UserControlName =
"MyInsertFormUserControl.ascx";
           e.Item.OwnerTableView.InsertItem();
    }
        
else if (e.CommandName == RadGrid.EditCommandName)
       {
           e.Item.OwnerTableView.IsItemInserted = false;
           e.Item.OwnerTableView.EditFormSettings.UserControlName =
"EmployeeDetailsVB.ascx";
       }
}
Veli
Telerik team
 answered on 24 Feb 2010
2 answers
89 views
Hi,

I am using radListView for the first time.
I am getting an error "Microsoft JScript runtime error: Sys.ArgumentUndefinedException: Value cannot be undefined.
Parameter name: baseType"....
How to resolve this one?
Is there any procedure to use radListview?


Regards,
Liji Jose P
Liji Jose
Top achievements
Rank 1
 answered on 24 Feb 2010
4 answers
171 views
Hi All,

I have been trying to get this to work with little to no success.  I have had mixed failed results sometimes showing numerous (3 bars for each value returned) 

//Get Counts and Bind to Bar Chart 
var itemdata = from x in Data.Items  
join r in Data.SubItems on x.ItemID equals r.ItemID  
join d in Data.Documents on r.DocID equals d.DocID  
                                  where d.DocID == documentID  
                                  select new  
                                  {  
      MajorCount = getCount(x.ItemID, r.Lookup1.Value, "Major"),  
      MinorCount = getCount(x.ItemID, r.Lookup1.Value, "Minor"),  
      NonCount = getCount(x.ItemID, r.Lookup1.Value, "Non")  
                                  };  
 
//Bar Chart  
PerformanceChart.DataSource = itemdata;  
PerformanceChart.DataBind(); 

The linq query above returns a count for each item (MajorCount, MinorCount, NonCount).  In a nutshell, I want to show 3 bars (MajorCount, MinorCount, NonCount) vertically along the X Axis.  And numbers (1, 2, 3, 4, etc) on the Y Axis. 

I did not paste my bar chart in this post... because it is already a lost cause.  Any simple solutions that someone has would be greatly appreciated. 
Ves
Telerik team
 answered on 24 Feb 2010
1 answer
99 views
I'm new to telerik controls and while developing, I got the below message.  I'm unable to figure out what the issue is. 


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: Could not load type 'iTools.MasterPage.Tools1'.

Source Error:

Line 1:  <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Tools.master.cs" Inherits="iTools.MasterPage.Tools1" %>
Line 2:  
Line 3:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Source File: /MasterPage/Tools.Master    Line: 1


Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927

Peter
Telerik team
 answered on 24 Feb 2010
2 answers
120 views
Hi!
Short question: Is it possible to enable a constant scrolling to the RadRotator? Without autom. stopping the Rotator-Items?

- Ti
Fiko
Telerik team
 answered on 24 Feb 2010
1 answer
78 views
Hi,

I'm trying to deploy an application  that use RadEditor for ASP Ajax on a IIS6.
When I deploy with the trial version, I have no problem. (Except that this is a trial version...) 
When I deploy the purchased version, I got the JS error "Telerik is undefined". I already try the 2 approaches describe in "Troubleshooting deployement ont the production server" of the documentation without success and I try with the registerWithScriptManager="false", still no success

Any Idea of what I miss??

FYI : In my app, RadEditor is in a ASP.NET2.0 with AJAX page that has a master page which contains the ScriptManager. RadEditor is put in a UpdatePanel.
Rumen
Telerik team
 answered on 24 Feb 2010
1 answer
143 views
I am using an InputManager for my text boxes like so:

<telerik:RadInputManager ID="RadInputManager1" runat="server" Skin="Windows7"
                  <telerik:TextBoxSetting ErrorMessage="Required!"
                      <Validation IsRequired="true" ValidationGroup="Primary" /> 
                      <TargetControls> 
                          <telerik:TargetInput ControlID="txt_FirstName" /> 
                          <telerik:TargetInput ControlID="txt_LastName" /> 
                          <telerik:TargetInput ControlID="txt_Address" /> 
                          <telerik:TargetInput ControlID="txt_City" /> 
                          <telerik:TargetInput ControlID="txt_ZipCode" /> 
                      </TargetControls> 
                  </telerik:TextBoxSetting> 
              </telerik:RadInputManager> 

This only works when I click on the text box, and then click out of it again (blur).  It does not validate when my asp:Button is clicked. I even attempted to set the buttons commandName to "Submit", even though UseSubmitBehavior is set to true.

Also, ValidateOnEvent="All".  Any idea why this isn't firing?
Dimo
Telerik team
 answered on 24 Feb 2010
1 answer
78 views
Hello,

I was wondering if it is possible to add a tabstrip that is inside a usercontrol, that is called by a tabstrip?
i get this javascript error missing : after property id, everytime i add a radcontrol or just a validator inside the said tabstrip,

Thanks,
JV
Yana
Telerik team
 answered on 24 Feb 2010
1 answer
178 views
I am using the RadEditor control with spell checking enabled via this entry in the Toolsfile:

<
tool name="AjaxSpellCheck" />

Where can I edit the message that pops up after doing a spell check? I have a request that the message reads "Spell check complete!" which is a bit more grammatically correct.

Also, where can I get documentation on the various properties of these controls?

For example, I can't seem to find what "SpellCheckSettings" is or how to gain access to "Telerik.Web.UI.Editor.SpellCheckSettings".

Thanks!

 

Dobromir
Telerik team
 answered on 24 Feb 2010
1 answer
129 views
In the asp.net FormView, I can use code like this to update a record as it is being stored to the database during an insert:

    protected void fvCustomers_ItemInserting(object sender, FormViewInsertEventArgs e)
    {
        string strCity = ((DropDownList)((FormView)sender).FindControl("ddlCity")).SelectedValue;
        e.Values["City"] = strCity;
    }

How do I accomplish the same when inserting a record using RadGrid? I know how to locate the value in the dropdown but I can't figure out which event to choose and how to get access to the values as I can do in the FormView's ItemInserting event.

Thanks,
Paul
Princy
Top achievements
Rank 2
 answered on 24 Feb 2010
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?