Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
168 views
Hi, I have a TabStip in an UpdatePanel that is hidden when the page first loads. There is a button that does a partial postback that will show the TabStrip. When the TabStrip is shown there is a Javascript error:

 

Message: Sys.ArgumentUndefinedException: Value cannot be undefined.
Parameter name: type
Line: 2705
Char: 12
Code: 0
URI: http://btstdv-sps01/ScriptResource.axd?d=xaqw4kfdwdWtvHW4JHRwu9dPHBZGWnnEsHrQAeYOVMQ7UJ-eBupaWW3i-HcJkIVjOLsVpXh5bEw8C3og-zVo6TrkPpdFBh_IX0nO69bBYU01&t=ffffffffec2d9970

Then although the TabStrip and the matching TabPage is shown I can't change tabs.

I notice that I don't get this error if the TabStrip is either visible to start with or not in the UpdatePanel (ie a full postback to make it visible).

Is there some javascript that runs on page load to initialize the TabStrip? if so can I fake it some how?

Yana
Telerik team
 answered on 26 Jul 2010
2 answers
64 views
I use the following code to create a RadDock:

            Dim newdock As RadDock = CreateRadDock()
            Dim WPID as String=Guid.NewGuid.ToString
            newdock.Tag = "Calendar.ascx"
            newdock.DockMode = DockMode.Docked
            newdock.EnableRoundedCorners = True
            newdock.UniqueName = WPID
            newdock.ID = WPID
            LoadWidget(newdock)
            zoneLeft.Controls.Add(newdock)

The Calednar.ascx only contains a RadCalendar control, nothing else.

A javascript error "Expected ':' occur when the page start, my other .ascx (without RadCalendar) files works ok. I tried that if the ID is not a GUID (such as Dock01), it will be ok. But I need that as it is a key in my Database.

Please help.


Andy Ho
Top achievements
Rank 1
 answered on 26 Jul 2010
1 answer
68 views
There's a very basic error in the latest RadToolbar release. If your client-side OnClientButtonClicked handler calls alert() or confirm() when a drop down button has been clicked, you'll get the following javascript error when using IE8 (doesn't happen in other browsers):

Line: 5012
Error: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus. Example handler:

 
        function Toolbar_Clicked(sender, args)
        {
            clearInactive();
 
            var button = args.get_item();
            var command = button.get_commandName();
 
            switch (command)
            {
                case "RESOLVE": // command for button in toolbar drop down
                    alert("This message box will cause the javascript error once it has been dismissed.");
                    break;
}
}

There is a workaround - if I do the same functionality on a different thread (e.g. calling window.setTimeout(myfuncthatcallsalert, 5)), all is well.

Is this a known issue? Fixed anytime soon?

Thanks

Yana
Telerik team
 answered on 26 Jul 2010
3 answers
884 views
Hi,

How can i able to get the order of Column headers in rad grid.

grdtst.HeaderRow.Cells[i].Text; - this is the way we get header row text from ASP.NET Gridview but in RadGrid i didnt found any option like this.

please help me out of this.

Thanks in adv
-- omm --
Daniel
Telerik team
 answered on 26 Jul 2010
1 answer
106 views
Hello,
I am a newbie in Telerik products. I am using the trial version. Following is my problem stated:

I am using a RadTabStrip, RadMultipage, LINQ and RadInputboxes like RadTextBox, RadNumericTextBox

When i click an asp:Button in the third tab the form should be posted but i get the values as following:
RadNumericTextBox13.Value = null
RadTextBox3.Text=""
RadTextBox4.Text


Here is my code:
***************************************************************************************************
protected void Button1_Click(object sender, EventArgs e)
        {
            PayRollDataContext pr2 = new PayRollDataContext();
            Bounce bp = new Bounce();
            bp.Payroll_ID = current;
            bp.Amount = Convert.ToDecimal(RadNumericTextBox13.Value);
            bp.Description = RadTextBox3.Text;
            bp.Time = RadTextBox4.Text;
            pr2.Bounces.InsertOnSubmit(bp);
            pr2.SubmitChanges();
            RadGrid1.Rebind();
            this.Page.DataBind();
        }
********************************************************************************************************

<telerik:RadTabStrip ID="RadTabStrip1" runat="server" CssClass="tabStrip"  
                SelectedIndex="0" Skin="Black" MultiPageID="RadMultiPage1"  
                ontabclick="RadTabStrip1_TabClick1">
                    
                <tabs>
                    <telerik:RadTab Text="General" Selected="True">
                    </telerik:RadTab>
                    <telerik:RadTab Text="Decuts">
                    </telerik:RadTab>
                    <telerik:RadTab Text="Bounce">
                    </telerik:RadTab>
                    <telerik:RadTab Text="Loans">
                    </telerik:RadTab>
                </tabs>
            </telerik:RadTabStrip>
//***************************************************************
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Add"/>
//*************************************************************
 <form  runat="server" id="mainForm" method="post">
Yana
Telerik team
 answered on 26 Jul 2010
2 answers
206 views
Hi all,

I'm trying to install the Radcontrols for ASPNET AJAX on my development machine, which is a VMWare Windows 2008 server box. It has ASPNET AJAX extensions already installed.

Everytime i run the msi, i get the error message "This installation package is not supported by this processor type. Contact your product vendor." - almost like im trying to install a 64bit package on a 32bit system. I turned on the installation logging, and this is what was created:

=== Verbose logging started: 24/07/2010  11:35:29  Build type: SHIP UNICODE 4.00.6001.00  Calling process: C:\Windows\system32\msiexec.exe ===
MSI (c) (8C:50) [11:35:29:924]: Resetting cached policy values
MSI (c) (8C:50) [11:35:29:924]: Machine policy value 'Debug' is 0
MSI (c) (8C:50) [11:35:29:924]: ******* RunEngine:
           ******* Product: RadControls_for_ASP.NET_AJAX_and_SharePoint_2010_Trial.msi
           ******* Action:
           ******* CommandLine: **********
MSI (c) (8C:50) [11:35:29:944]: Machine policy value 'DisableUserInstalls' is 0
MSI (c) (8C:50) [11:35:29:964]: Note: 1: 1402 2: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer 3: 2
MSI (c) (8C:50) [11:35:30:044]: SOFTWARE RESTRICTION POLICY: Verifying package --> 'C:\Users\Administrator\Desktop\RadControls_for_ASP.NET_AJAX_and_SharePoint_2010_Trial.msi' against software restriction policy
MSI (c) (8C:50) [11:35:30:044]: SOFTWARE RESTRICTION POLICY: C:\Users\Administrator\Desktop\RadControls_for_ASP.NET_AJAX_and_SharePoint_2010_Trial.msi has a digital signature
MSI (c) (8C:50) [11:35:30:295]: SOFTWARE RESTRICTION POLICY: C:\Users\Administrator\Desktop\RadControls_for_ASP.NET_AJAX_and_SharePoint_2010_Trial.msi is permitted to run at the 'unrestricted' authorization level.
MSI (c) (8C:50) [11:35:30:305]: Cloaking enabled.
MSI (c) (8C:50) [11:35:30:305]: Attempting to enable all disabled privileges before calling Install on Server
MSI (c) (8C:50) [11:35:30:315]: End dialog not enabled
MSI (c) (8C:50) [11:35:30:315]: Original package ==> C:\Users\Administrator\Desktop\RadControls_for_ASP.NET_AJAX_and_SharePoint_2010_Trial.msi
MSI (c) (8C:50) [11:35:30:315]: Package we're running from ==> C:\Users\ADMINI~1\AppData\Local\Temp\a9c35.msi
MSI (c) (8C:50) [11:35:30:325]: APPCOMPAT: looking for appcompat database entry with ProductCode '{043FDB31-C11F-4E01-B509-E709921DA973}'.
MSI (c) (8C:50) [11:35:30:325]: APPCOMPAT: no matching ProductCode found in database.
MSI (c) (8C:50) [11:35:30:325]: MSCOREE not loaded loading copy from system32
This installation package is not supported by this processor type. Contact your product vendor.
C:\Users\Administrator\Desktop\RadControls_for_ASP.NET_AJAX_and_SharePoint_2010_Trial.msi
MSI (c) (8C:50) [11:35:30:335]: Note: 1: 1708
MSI (c) (8C:50) [11:35:30:335]: Product: Telerik RadControls for SharePoint -- Installation failed.

MSI (c) (8C:50) [11:35:30:335]: Windows Installer installed the product. Product Name: Telerik RadControls for SharePoint. Product Version: 102.7.12.0. Product Language: 1033. Installation success or error status: 1633.

MSI (c) (8C:50) [11:35:30:335]: MainEngineThread is returning 1633
=== Verbose logging stopped: 24/07/2010  11:35:30 ===

As this is my first time using RadControls I'd really rather not attempting the manual install.

Can anyone help?

Thanks in advance
higgsy
Andrey
Telerik team
 answered on 26 Jul 2010
3 answers
105 views
Hi there

Just a quick note to point out that the 'Uploading Files' menu node at
http://www.telerik.com/help/aspnet/upload/gettingstarted.htm
doesn't seem to be working ... which is a shame because I wanted to read it!

Thanks very much

Regards




ajitha
Top achievements
Rank 1
 answered on 26 Jul 2010
1 answer
64 views
Hai,

I want to get the current week to be highlighted on the radcalendar. How to get it done?

Plz help me.

Thanks & regards,
Regeesh Joseph
Princy
Top achievements
Rank 2
 answered on 26 Jul 2010
1 answer
120 views
Hi,

I have a RadGrid which has activate, deactivate and delete functionalities as coded below:

<telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn" AllowFiltering="false">
<HeaderTemplate>
 <div>
  Actions
 </div>
</HeaderTemplate>
<ItemTemplate>                                       
 <div>
  <span style="padding:0 5px">
   <asp:ImageButton ID="ImgBtn" runat="server" CausesValidation="False" />
  </span>
  <span style="padding:0 5px">
   <asp:ImageButton ID="ImgBtnDelete" ToolTip="Delete Record" runat="server" CausesValidation="False"
   CommandName="Delete"
   OnClientClick="return confirm('Are you sure you want to delete this record?');"
   ImageUrl="~/Images/icon/delete.gif" />
  </span>
  <span style="padding:0 5px">                                               
   <asp:HyperLink ID="EditLink" runat="server" Text="Edit"
   ImageUrl="~/Images/icon/edit.gif" ToolTip="Edit Record"></asp:HyperLink>                                           
  </span>
 </div>
</ItemTemplate>
</telerik:GridTemplateColumn>

How can i integrate radalerts instead of the current JS message boxes as confirmations for the functionalities?

Please suggest.

Thanks!

Shinu
Top achievements
Rank 2
 answered on 26 Jul 2010
1 answer
79 views
Hi.
Is it possible to distinguish between edit and insert mode for a gridNumricColumn when not use a formTemplate?
I have read the documentation Distinguish edit/insert mode on ItemCreated/ItemDataBound but i still have problem to get it to work.
I want the gridNumricColumn (CardNumber) to be readonly=false when insertmode and readonly=true otherwise. The problem is that the field CardNumber is not visible when insertmode withe the following code:

protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
{         
if (e.Item is GridDataInsertItem && e.Item.IsInEditMode)
    {
 
var column = (GridNumericColumn)e.Item.OwnerTableView.GetColumnSafe("CardNumberColumn");
 
  if (e.Item.OwnerTableView.IsItemInserted)
       column.ReadOnly = false;
               else
       column.ReadOnly = true;
 }
}

<telerik:RadGrid ID="RadGrid1" runat="server"AllowAutomaticInserts="True"   AllowAutomaticUpdates="True" DataSourceID="LinqDataSource1" ondatabound="RadGrid1_DataBound" onitemcommand="RadGrid1_ItemCommand"           onitemdatabound="RadGrid1_ItemDataBound" onitemcreated="RadGrid1_ItemCreated">
<MasterTableView AutoGenerateColumns="FalseDataKeyNames="CardNumber,ProductNumber,MediaType"
         DataSourceID="LinqDataSource1" EditMode="InPlace" >
<Columns>
       <telerik:GridNumericColumn DataField="CardNumber" DataType="System.Int32" HeaderText="Kortnr." ReadOnly="true" SortExpression="CardNumber" UniqueName="CardNumberColumn" >
       </telerik:GridNumericColumn>     
       <telerik:GridBoundColumn DataField="CardName" HeaderText="Kortnavn" SortExpression="CardName" UniqueName="CardName" >
       </telerik:GridBoundColumn>     
       <telerik:GridEditCommandColumn CancelText="Avbryt" EditText="Endre" InsertText="Sett inn" UpdateText="Oppdater"></telerik:GridEditCommandColumn>
       </Columns>
   </MasterTableView>   
   </telerik:RadGrid>


Have tried both with ItemCreated and ItemDataBound methode.
Princy
Top achievements
Rank 2
 answered on 26 Jul 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?