Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
165 views
Instead of grid.getDataKeyValue("ColumnName")
Is there a way for me to retrieve the value using integer, like 0 for the 1st column, 1 for the 2nd column?
My grid data is dynamic, hence the column name is not static.
Princy
Top achievements
Rank 2
 answered on 19 Nov 2009
2 answers
240 views
Hello,

I have some problems with the telerik scheduler. I get the following error message in a javascript alert box:
"Object variable or With block variable not set"

This is happening after adding an appointment. I have confirmed that what is triggering the error message is the DataItem("resurs_farg") on line 3 in this codebehind:

    Protected Sub RadScheduler1_AppointmentDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.SchedulerEventArgs) Handles RadScheduler1.AppointmentDataBound 
        Dim strFarg As String = "" 
        strFarg = e.Appointment.DataItem("resurs_farg").ToString() 
        e.Appointment.BackColor = System.Drawing.ColorTranslator.FromHtml(strFarg) 
        e.Appointment.BorderColor = Color.Black 
        e.Appointment.BorderWidth = Unit.Pixel(1) 
    End Sub 

I use this to put different colors on appointments belonging to dirrerent resources and it works great when i load the calendar but not when adding a new appointment. However, the appointent is added and it shows up after a reload.

All help is appreciated!

Thanks
Micke83
Top achievements
Rank 1
 answered on 19 Nov 2009
4 answers
234 views
Hi,

I've a RadToolbar placed in the Master Page which contains the logic to draw Dynamic RadMenus depending upon the page.
e.g. I need Download Menu on some application pages, and Filters Menu on some other page, but no Menu on most of the pages.
So, in the Master Page, there is a logic to check the page URL and create a RadMenu and its required SubMenus.
All this logic is outside the Page.IsPostBack, as I need to redraw the same Menus if there is a page-postback.

Now I try to bind a server-side event on the RadMenu Item Click. Event-binding is done properly and code compiles.
But when the Item is clicked, there is a postback and the Menu is redarwn but the event is not fired.
Can you please direct me why? This is really urgent as this is the central logic to be used for pages and is not working :(

I'd like to mention here that the ToolBar and Dynamic Menu logic was wrapped inside an UpdatePanel to have the possibility to fire a server-side event to reload only the ToolBar and the Dynamic Menu without having a complete page refresh.
So is there an issue with the approach, the implementation or the RadMenu?
Veenu
Top achievements
Rank 1
 answered on 19 Nov 2009
1 answer
116 views
Hi,

I am using telerik for some time, but due to some posts on stackoverflow site I was curious to see how much rad components
contribute(overhead) to request size. So i made a test project with simple telerik page and standard asp.net page:

Telerik(q3, trial)
- first request size: html + 93k resources(2 requests made only once)
- default empty aspx page = 550b
- 10 telerik empty grids: 17k
- 20 telerik textboxes 34k,10 telerik textboxes 18k, 20 standard textboxes 2k
- 20 telerik textboxes + 20 empty grids 48k, standard 2k
- 1 item scheduler - 22k

If web config is changed with:(http://www.telerik.com/help/aspnet-ajax/disabling_embedded_resources.html)
 <appSettings>
  <!-- Disables the embedded scripts and skins for all RadControls -->
  <add key="Telerik.EnableEmbeddedSkins" value="false"/>
  <add key="Telerik.EnableEmbeddedBaseStylesheet" value="false"/>
  <add key="Telerik.EnableEmbeddedScripts" value="false"/>         
</appSettings>

- first request size: html + 85k resources(2 requests)
- the rest ramain aprox the same(scheduler ->21k)

1. Is there a list of comparing tests or info about telerik components transfer(contribution to request) size; (only for component, not the axd resources once requests). Also it would be nice if I could see a compare between 2 pages one with standard controls and
javascript with jquerry, and the same features done with telerik.
2. The difference seems quite large vs standard.Have I missed something in the tests?


Veselin Vasilev
Telerik team
 answered on 19 Nov 2009
1 answer
218 views
I am trying to style items in the FormatBlock dropdown by editing the EditorToolsFile(.xml).  I am following this refernce article: http://www.telerik.com/help/aspnet-ajax/paragraphstyles.html.  It explains that to display the dropdown items with their corresponding formatting, add the tag around the item name.  The example that is given is as follows:
<paragraphs>
    <paragraph name="Clear formatting" value="<body>" />
    <paragraph name="<H1>Heading 1</H1>" value="<H1>" />
    <paragraph name="<H2>Heading 2</H2>" value="<H2>" />
    <paragraph name="<H3>Heading 3</H3>" value="<H3>" />
    <paragraph name="<p class='redStyle'>redStyle</p>" value="<p class='redStyle'>" />
  </paragraphs>


I am receiving an error because the symbol < is not allowed within an xml tag. This is the error:
'<', hexadecimal value 0x3C, is an invalid attribute character.

I have tried using &lt; instead of < and it fixes the error but does not format the item as it should (as a h1 tag).  Am I missing something obvious or does anyone have a fix for this?  Keep in mind this is the radEditor instance used when editing a page in Sitefinity, not just a radEditor thrown on any page.  Thanks in advance for any help.

Ryan
Rumen
Telerik team
 answered on 19 Nov 2009
1 answer
117 views
Hi Team,
 
If I have states saved in session using following:

 

CurrentDockStates = RadDockLayout1.GetRegisteredDocksState();  
Session["CurrentDockStates"] = CurrentDockStates;  
 

Then how can use this session stored index in javascript function to set dock position at the correct position.?

I feel this will save my postback.
Please treat this as urgent and reply.

Regards,
      Snehal

Pero
Telerik team
 answered on 19 Nov 2009
2 answers
116 views
Is there anyway for me to set emptymessage on the filter textbox?
Thanks.
AereoN
Top achievements
Rank 1
 answered on 19 Nov 2009
1 answer
185 views
Hello!

I am using the Editor with some a custom image manager dialog, I copied the EditorDialogs folder a while a go from a your AJAX Controls, so it would have probably been Q1 or Q2 and edited the image manager as I needed only 1 image selector. (this is in a previous support ticket).

I now want to override all embedded skins for my entire website so I can style everything my own way. I copied the skin files into my theme and edited them as I needed and every control was looking fine except for the image manager on the editor.

I found an existing thread in this forum saying that enableembeddedskins=false was not working properly in a previous version for the image manager but was fixed in the latest, so this morning I downloaded the latest version, but it is still not working.

To test what was happening I set my skin to BLACK in my webconfig and enable embeddedskins to true

 <add key="Telerik.EnableEmbeddedSkins" value="true"/>
 <add key="Telerik.Skin" value="Black" />

so that everything should be using the black skin. This worked well.

I then copied the entire skins directory from your installation into my current theme folder and set EnableEmbeddedSkins=false, everything still was using the black skin correctly except the image manager.

Is there still a bug? or is the fact I am using custom dialogs causing the problem (I am hoping not as I dont want to recreate my custom dialog)?
I can sent you some of my project if you need to look at it but I am not sure what parts you'd need to see?
This is a big show stopper on my project at the moment so I really need to sort this out.

Thanks



Rumen
Telerik team
 answered on 19 Nov 2009
1 answer
163 views
I have a Rad Dock on a page. I need it to be positioned in a certain place on the page (in the top-right corner of a Panel, i.e. <div>).
Since actual coordinates and size of the panel are not available on the server side, I'm trying to set up a client script that moves a RadDock to the required position right after the page is loaded.

This might be relevant to the problem: I do not have RadDockLayout and RadDockZone on the page. I use master page.

What I have in aspx (I omitted some unrelated elements):

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server"> 
   <asp:Panel runat="server" id="RequestFormPanel" BackColor="Green" > 
       
        <asp:Panel runat="server" ID="requestPanel" CssClass="FormPanel" BackColor="Red" > 
        </asp:Panel> 
 
        <telerik:RadDock runat="server" ID="IRItemListDock" Title="Информационные ресурсы" EnableAnimation="true" Visible="false" DefaultCommands = "ExpandCollapse" > 
            <ContentTemplate> 
                <uc2:IRItemList ID="IRItemList1" runat="server" /> 
            </ContentTemplate> 
        </telerik:RadDock> 
         
    </asp:Panel>      
</asp:Content> 

What I did:

I wrote a JavaScript function to position the dock:

     function MoveDock(DockId, PanelId)   
     {   
        var currentDock = $find(DockId.id);   
        if ( currentDock == null ) { return; } 
 
        obj = document.getElementById(PanelId.id); 
        var x = 0; 
        var y = 0; 
        while (obj != null) 
        { 
          x += obj.offsetLeft; 
          y += obj.offsetTop; 
        } 
        
        currentDock.set_left(x);   
        currentDock.set_top(y);   
     }   


In codebehind (OnInit) I attach the client function to the page:
Page.RegisterStartupScript("Startup", "<script language=JavaScript>MoveDock(" + IRItemListDock.ClientID + "," + requestPanel.ClientID + ");</script>"); 

The client function starts as expected, but $find(DockId.id) always returns null.

How to make all this work?
Pero
Telerik team
 answered on 19 Nov 2009
5 answers
205 views
Hi,

I am facing problem in using Modal Rad-Window.
The scenario is, that i am having a base page, from which a pop-up opens.
From this pop-up, i need to open another pop-up.

What is required is that, the first pop-up should be modal. (That works fine).
Second pop-up when opens, should disable the first pop-up, and should be able to return value to the first pop-up, from which it was opened.

The problem i am facing is, i am not able to create 2nd modal pop-up. It does not disable first pop-up which I opened.

Thanks
Regards
Sarabjeet Singh Marwah
Svetlina Anati
Telerik team
 answered on 19 Nov 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?