Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
79 views
Hi Guys,

I'm experiencing a problem and was hoping you may be able to point out if there is a way round it.

I have a radtabstrip that is dynamically loading user controls on click via the radajaxmanager.

This all works as expected except the user controls all contain javascript on them.
None of the javascript is recognised when loaded via the radajaxmanager and thus a number of controls on the page don't function correctly.

How should I be implementing javascript within a user control that is loaded dynamically via the radajaxmanager?

Thanks

Thad
Top achievements
Rank 2
 answered on 09 Nov 2012
1 answer
234 views
hi

i am getting the following error , ive looked through the forums and i cant seem to find any help , the main problem is that i cant replicate it , i have tried on different browsers etc and i cant replicate it .

i am only getting it on a few client machines.

[ArgumentException: Invalid JSON primitive: .]
   System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializePrimitiveObject() +930307
   System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth) +376
   System.Web.Script.Serialization.JavaScriptObjectDeserializer.BasicDeserialize(String input, Int32 depthLimit, JavaScriptSerializer serializer) +120
   System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(JavaScriptSerializer serializer, String input, Type type, Int32 depthLimit) +57
   Telerik.Web.UI.RadButton.LoadPostData(String postDataKey, NameValueCollection postCollection) +238
   System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +1018
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2653

can you give any suggestions on where i can look to find the error.

Maria Ilieva
Telerik team
 answered on 09 Nov 2012
1 answer
69 views
Hi,

I want to merge common cell values to single cell(like row span)

My Data:

UserName Name Date
------------------------------------------
user somename 1/12/12
user somename 2/12/12
user somename 3/12/12
user somename1 2/11/12
user somename1 3/11/12
user somename1 4/11/12
user somename2 6/12/12
user somename2 7/12/12
user somename2 5/12/12

I want like this

UserName        Name             Date
------------------------------------------
                                                  1/12/12
                         somename        2/12/12
                                                  3/12/12
                       -----------------------------------
                                                  2/11/12
user                 somename1      3/11/12
                                                  4/11/12
                       ----------------------------------
                                                   6/12/12
                        somename         7/12/12
                                                   5/12/12

when we using grouping it will display all the names. but we need only one name(User have 9 times but we need to display one time)
Andrey
Telerik team
 answered on 09 Nov 2012
3 answers
220 views
Hi,

I want to merge common cell values to single cell(like row span)

My Data:

UserName Name Date
------------------------------------------
user somename 1/12/12
user somename 2/12/12
user somename 3/12/12
user somename1 2/11/12
user somename1 3/11/12
user somename1 4/11/12
user somename2 6/12/12
user somename2 7/12/12
user somename2 5/12/12

I want like this

UserName Name Date
------------------------------------------
1/12/12
somename 2/12/12
3/12/12
2/11/12
user somename1 3/11/12
4/11/12
6/12/12
somename2 7/12/12
5/12/12


Andrey
Telerik team
 answered on 09 Nov 2012
6 answers
605 views
HI,
 We have Date Filter and Text Filter Columns, When we apply only Date filter it's filtering the records properly,
But when we trying to apply the Date filter  with  any other text filters then its igoring the date filter and its not persisting the current value of Date filter.
E.g.
Suppose we have three filters F1, F2 (text filters) and F3 is date filter.
Now for the first time when we apply F3 with F1, the records are filtered properly but when we apply filter F2  in addition to previous filters then its ignoring the F3 and it is  not persisting the current value of F3. The records are filtered based on F1 and F2 filter even if there is F3 filter applied.
Eyup
Telerik team
 answered on 09 Nov 2012
1 answer
75 views

Hi,
i am new to telerik and want to use the telerik controls in my .net application.
my application is alraedy running into production so just need to replace .net controls with telerik with same view.

i applied my custom skin in telerik grid but its not appearing properly so could you please help me.
show that i will craete a test page and show to my manager fo approval of telerik license.

here is the code for telerik grid ...
<telerik:RadGrid ID="RadGrid2" DataSourceID="ObjectDataSource1" AllowPaging="True" runat="server" Skin="skinRadGrid" EnableEmbeddedSkins="false" AllowFilteringByColumn="True" AllowSorting="True"

CellPadding="1" CellSpacing="1" ShowFooter="True" ShowGroupPanel="True"

 

Width="950px" >

 

<ClientSettings AllowDragToGroup="True" AllowColumnsReorder="true" AllowRowsDragDrop="true" ReorderColumnsOnClient="true">

 

<Scrolling AllowScroll="false" UseStaticHeaders="True" />

 

<Resizing AllowColumnResize="True" AllowRowResize="false" ResizeGridOnColumnResize="false"

 

ClipCellContentOnResize="true" EnableRealTimeResize="false" AllowResizeToFit="true" />

 

<Selecting AllowRowSelect="true" EnableDragToSelectRows="true" />

 

</ClientSettings>

 

<MasterTableView AutoGenerateColumns="False" DataSourceID="ObjectDataSource1">

 

<CommandItemSettings ExportToPdfText="Export to PDF" />

 

<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True"> 

</RowIndicatorColumn>

 

<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True">

 

</ExpandCollapseColumn>

 

<Columns>

 

<telerik:GridBoundColumn DataField="EVA_title" ItemStyle-Width="120px"FilterControlAltText="Filter EVA_title column" HeaderText="Title" SortExpression="EVA_title" UniqueName="EVA_title">

 

</telerik:GridBoundColumn>

 

<telerik:GridBoundColumn DataField="EVA_author" ItemStyle-Width="90px"FilterControlAltText="Filter EVA_author column" HeaderText="Author" SortExpression="EVA_author" UniqueName="EVA_author">

 

</telerik:GridBoundColumn>

 

</Columns>

 

<EditFormSettings>

 

<EditColumn FilterControlAltText="Filter EditCommandColumn column">

 

</EditColumn>

 

</EditFormSettings>

 

</MasterTableView>

 

<FilterMenu EnableImageSprites="False">

 

</FilterMenu>

 

</telerik:RadGrid>


please see the attached screen shot what i am geeting on page ...

please suggest as i want the same look n feel as my .net grid skin.

and here is the skin which i am using in my Default.skin class for both grids..

<

 

 

asp:GridView runat="server" SkinID="skinGridDetail1" AutoGenerateColumns="False"

 

CaptionAlign="Left" CellPadding="1" ForeColor="#333333"

 

GridLines="Vertical" HeaderStyle-BackColor="#D7D2D1" CssClass="styleCaption2"

 

BorderStyle="Solid" BorderColor="Silver" BorderWidth="1px"

 

Font-Names="Tahoma" Font-Size="8pt" VerticalAlign="Middle" >

 

<HeaderStyle BackColor="#D7D2D1" ForeColor="black" Height="16px" HorizontalAlign="Center" BorderStyle="Solid" BorderWidth="1" BorderColor="Silver" Font-Bold="False" VerticalAlign="Middle"/>

 

<RowStyle BackColor="white" Height="16px" VerticalAlign="Middle"/>

 

<AlternatingRowStyle BackColor="#F8F8F8" Height="16px" VerticalAlign="Middle" />

</

 

 

asp:GridView>

<

 

 

telerik:RadGrid runat="server" SkinID="skinRadGrid" AutoGenerateColumns="False"

 

CaptionAlign="Left" CellPadding="1" ForeColor="#333333"

 

GridLines="Vertical" HeaderStyle-BackColor="#D7D2D1" CssClass="styleCaption2"

 

BorderStyle="Solid" BorderColor="Silver" BorderWidth="1px"

 

Font-Names="Tahoma" Font-Size="8pt" VerticalAlign="Middle" >

 

<HeaderStyle BackColor="#D7D2D1" ForeColor="black" Height="16px" HorizontalAlign="Center" BorderStyle="Solid" BorderWidth="1" BorderColor="Silver" Font-Bold="False" VerticalAlign="Middle"/>

 

</telerik:RadGrid>





Eyup
Telerik team
 answered on 09 Nov 2012
8 answers
140 views
Hello,
i have problems with the context menu and the Opera Browser. In all other Browser IE or FireFox the context menu will be shown correctly only in Opera ( I testes 9.63 and 10.x) the standard Opera context menu will be shown and not the rad context menu.

greetings
Meik Napierski
Martin Roussel
Top achievements
Rank 1
 answered on 09 Nov 2012
1 answer
65 views
Hi,

We are creating tabs on our using client side api of tab strip. We have set EnableDragToReorder for this tabstrip. However we are not able to reorder tabs using drag and drop mechanism. We are able to reorder tabs if they are predefined but it doesnt work dynamically generated tabs. Events like onclienttabdragstart, onclientreordering are also not generated in this case.

Please let us know if we need to do something different to achieve reordering of dynamically generated tabs ?

Regards,
Kiran
Dimitar Terziev
Telerik team
 answered on 09 Nov 2012
3 answers
80 views
I have a page with a combo(ComboBox1) in a xmlhttppanel(XmlPanel1) and also a stand alone checkbox combo(RadComboBox1). After I call XmlPanel1  and select an item from ComboBox1,  then select a checkbox item from the RadComboBox1 I get an error.

I have created a very simple example to show the error. Am I doing something wrong?

Uncaught TypeError: Cannot call method 'get_checked' of null

Telerik.Web.UI.WebResource.axd: 3642

c.RadComboBox.prototype._onCheckBoxCheck=function(f){var d=f.target.nodeName;
if(d=="LABEL"){f.preventDefault();
}var h=this._findNearestItem(f.target);
var j=h!=null?h:this._extractItemFromDomElement(f.target);
if(this.raise_onItemChecking(j,f)){f.preventDefault();
return;
}j.set_checked(!j.get_checked());
Uncaught TypeError: Cannot call method 'get_checked' of null
this.raise_onItemChecked(j,f);
this._updateComboBoxText();
if(this._checkAllItemsElement!=null){this._updateCheckAllState();
}if(this._postBackOnCheck){var g={Command:"Check",Index:j.get_index()};
this.postback(g);
}};


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Main.aspx.cs" Inherits="Main" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head id="Head1" runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
        <script type="text/javascript">
            function SetValue() {
                var panel = $find("<%=XmlPanel1.ClientID %>");
                panel.set_value("test");
            }
        </script>
    </telerik:RadScriptBlock>
        <div>
    <telerik:RadComboBox ID="RadComboBox1" runat="server" CheckBoxes="true" EnableCheckAllItemsCheckBox="true"
        Width="300" Label="Select book genres:">
        <Items>
            <telerik:RadComboBoxItem Text="Arts" />
            <telerik:RadComboBoxItem Text="Biographies" />
            <telerik:RadComboBoxItem Text="Children's Books" />
            <telerik:RadComboBoxItem Text="Computers & Internet" />
            <telerik:RadComboBoxItem Text="Cooking" />
            <telerik:RadComboBoxItem Text="History" />
            <telerik:RadComboBoxItem Text="Fiction" />
            <telerik:RadComboBoxItem Text="Mystery" />
            <telerik:RadComboBoxItem Text="Nonfiction" />
            <telerik:RadComboBoxItem Text="Romance" />
            <telerik:RadComboBoxItem Text="Science Fiction" />
            <telerik:RadComboBoxItem Text="Travel" />
        </Items>
    </telerik:RadComboBox>
        </div>
    <div>
        <input value="Set Value" onclick="SetValue(); return false;" type="button" />
        <div>
            <telerik:RadXmlHttpPanel ID="XmlPanel1" runat="server" OnServiceRequest="XmlPanel1_ServiceRequest"
                EnableClientScriptEvaluation="true">
                <telerik:RadComboBox ID="ComboBox1" runat="server">
                </telerik:RadComboBox>
            </telerik:RadXmlHttpPanel>
        </div>
 
    </div>
    </form>
</body>
</html>


using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
 
public partial class Main : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
 
    }
 
    protected void XmlPanel1_ServiceRequest(object sender, Telerik.Web.UI.RadXmlHttpPanelEventArgs e)
    {
        ArrayList itemsList = new ArrayList();
        itemsList.Add("Beverages");
        itemsList.Add("Condiments");
        itemsList.Add("Confections");
        ComboBox1.DataSource = itemsList;
        ComboBox1.DataBind();
    }
}

the error is stopping my other javascript code from working.

Help!! Marty
Slav
Telerik team
 answered on 09 Nov 2012
2 answers
58 views
Hi,

I'm using dynamically created RadDockZones and RadDocks to represent data.
Everything is dynamically created during the Page_Init event.
Whenever a Dock is dragged to a different DockZone, I want to save its new position (DockZone) in the database.
I'm using the DockPositionChanged event for this.

However, when a Dock is dragged to another DockZone, triggering the DockPositionChanged event, the Page_Init event is fired BEFORE the DockPositionChanged event.
This means that while the new position (DockZone) of the Dock is correctly saved in the database, it's not shown until a refresh of the page.

Is there a way to deal with this without having to go throught the trouble of loading/saving the state?

Cheers,
CJ
Slav
Telerik team
 answered on 09 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?