Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
122 views
dear all,

i have installed the telerik asp.net ajax controls.  at some point i started to get problems building my solution and after setting some references manually i got design time errors both being: reference to assembly could not be found.

my solution has been to remove the telerik components, and reinstall them selecting only the 3.5 version components. meanwhile i noticed that the assemblies for both .net versions (2.0/3.5) in my assembly cache have the same public key token. can someone tell me if this is causing my reference problem?

also, in the future i would like to be able to use both the 2.0 and 3.5 versions in different projects. is that possible without getting the reference problems i had before?

greets,

danny
Pavlina
Telerik team
 answered on 02 Sep 2009
1 answer
132 views
I have a radDockLayout which somehow has the e.Positions being empty.

 <telerik:RadDockLayout runat="server" ID="RadDockLayout1" OnLoadDockLayout="RadDockLayout1_LoadDockLayout" onsavedocklayout="RadDockLayout1_SaveDockLayout" storelayoutinviewstate="false"
                                       <div class="signature"
                                             
                                            <asp:Panel ID="pnlPreview" runat="server" CssClass="zones"></asp:Panel> 
                                             <br /><br /><asp:Button ID="btnSave" runat="server" Text="Save Layout"  />&nbsp; &nbsp;  
                                          
                                       </div> 
                                        
                                       <div class="preview"
                                            <asp:Repeater ID="rptContentType" runat="server" OnItemDataBound="rptContentType_OnItemDataBound"
                                                <HeaderTemplate><ul id="contentlibrary"></HeaderTemplate> 
                                                <ItemTemplate> 
                                                    <li> 
                                                    <h2> 
                                                        <span class="title"><%#DataBinder.Eval(Container.DataItem,"Title") %></span
                                                        <asp:Image ID="imgIcon" runat="server" CssClass="icon" /></h2
                                                        <telerik:RadDockZone id="radDockZone" runat="server" Height="150"></telerik:RadDockZone> 
                                                        <asp:Repeater ID="rptContentLibrary" runat="server" OnItemDataBound="rptContentLibrary_OnItemDataBound"></asp:Repeater> 
                                                    </li> 
                                                </ItemTemplate> 
                                                <FooterTemplate></ul></FooterTemplate> 
                                             
                                            </asp:Repeater> 
                                             
                                       </div> 
                                </telerik:RadDockLayout> 

  protected void RadDockLayout1_LoadDockLayout(object sender, Telerik.Web.UI.DockLayoutEventArgs e) 
        { 
            HttpCookie positionsCookie = Request.Cookies[Request["id"] + "CompanyEmailLayout"]; 
            if (!Object.Equals(positionsCookie, null)) 
            { 
                string serializedPositionsAndIndices = positionsCookie.Value; 
                if (!string.IsNullOrEmpty(serializedPositionsAndIndices)) 
                { 
                    JavaScriptSerializer serializer = new JavaScriptSerializer(); 
                    string[] positionsAndIndices = serializer.Deserialize<string[]>(serializedPositionsAndIndices); 
 
                    e.Positions = serializer.Deserialize<Dictionary<stringstring>>(positionsAndIndices[0]); 
                    e.Indices = serializer.Deserialize<Dictionary<stringint>>(positionsAndIndices[1]); 
                } 
            } 
        } 
 
        protected void RadDockLayout1_SaveDockLayout(object sender, Telerik.Web.UI.DockLayoutEventArgs e) 
        { 
            JavaScriptSerializer serializer = new JavaScriptSerializer(); 
            string serializedPositions = serializer.Serialize(e.Positions); 
            string serializedIndices = serializer.Serialize(e.Indices); 
 
            HttpCookie positionsCookie = new HttpCookie(Request["id"] + "CompanyEmailLayout"
                serializer.Serialize(new string[] { serializedPositions, serializedIndices })); 
 
            //Ensure that the cookie will not expire soon 
            positionsCookie.Expires = DateTime.Now.AddYears(1); 
            Response.Cookies.Add(positionsCookie); 
 
            if (IsPostBack) 
            { 
                //my codes 
 
            } 
        } 

The problem is ... somehow, when i click on the save button, and breakpointing into //my codes, the e.Positions and Indices have empty content. That's really weird. Am I missing something?


Alec
Top achievements
Rank 1
 answered on 02 Sep 2009
4 answers
115 views

Hi!

I have a multiview with a menu. When i click a menu item another view get's selectedI have a fileexplorer in that view. But somehow i get strange runtime errors. the following line is made yellow with the error null or not an object:

 

a.set_dataSource

 

(b.data);

If its on the first view everything is working fine.

Regards,
Marlou

 

Marlou
Top achievements
Rank 1
 answered on 02 Sep 2009
2 answers
66 views
Instead of using the built-in support of inserting/editing a record in a popup dialog, I would prefer to use an external web page. This allows me to do a lot more things that are either not possible with a popup or difficult to implement. I could not find an example the shows how this can be done. Essentially, when the "Add New Record" button is pressed (or the Edit button) in the grid, I need to popup my external page and handle the editing/inserting. On my external page would be a Save button and when pressed would close the page and cause the RadGrid to update itself with the newly created record or updated record.

Can you tell me how to go about doing this?

Thank you
Johann
Polaris431
Top achievements
Rank 1
 answered on 02 Sep 2009
1 answer
146 views
Hi

I Checked out the following link on creating the customised skin for using radstylesheetmanager control.

http://www.telerik.com/help/aspnet-ajax/radstylesheetmanager.html

In this article,in the bottom ,while illustrating the usage of radstylesheetmanager control.
Can you please explain where has the "Telerik" Skin declared or so..

Please explain on what basis is the Skin = "Telerik".

Thanks
Sudheer P.


Veselin Vasilev
Telerik team
 answered on 02 Sep 2009
1 answer
109 views
No way to directly add subitems to an item in a RadToolBarDropDown? Do i have to a template and throw a radmenu in there? Kind of screws up the look of it.. and the performance.

Rich
Atanas Korchev
Telerik team
 answered on 02 Sep 2009
1 answer
54 views

Hello,

I'm trying to use a RadMenu version 2008.3.1314 on a RadCalendar as a context menu.  What I'd like is for the menu to appear on mouse over of any day on the calendar, or on left click of a calendar day.  I have the mouseover working fine, but the left click does not show the radmenu.  I have verified that the RadMenu.ShowAt(x, y) is being hit in my client side code, but for some reason the menu does not appear.  I would appreciate any help on this.

Thanks,
Dale

Veselin Vasilev
Telerik team
 answered on 02 Sep 2009
1 answer
62 views
Is it possible to use txt fields, etc insida a panelbar as parameters to a sqlddatasource on an asp.net page?
Atanas Korchev
Telerik team
 answered on 02 Sep 2009
1 answer
90 views
Is it possible to use txt fields, etc insida a multipage as parameters to a sqlddatasource on an asp.net page?
Atanas Korchev
Telerik team
 answered on 02 Sep 2009
1 answer
159 views
Hi,

I have a situation where things are a little complex. I'd like to maintain some "unusual" state of the treeview checkbox. For example, I'd like to maintain the following state after postback (I write my own javascript code to set the checkbox of Node1_1_1 to "indeterminate").

--Node1 (checked)
   --Node1_1 (checked)
      --Node1_1_1 (indeterminate)
      --Node1_1_2 (checked)

However, when I select a node to cause a postback, the checkbox of Node1_1_1 becomes "checked".

I know this case is unusual; but in my case, the above state makes sense. Is there a way to maintain this state after postback?

Thanks,
Gary
Atanas Korchev
Telerik team
 answered on 02 Sep 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?