Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
134 views
Is there a way to disable the item's link (not showing a hand)?
I don't want to set Enabled=False because it also lighted the item's text.

Thanks,
Kevin.
Kevin
Top achievements
Rank 1
 answered on 18 Aug 2008
1 answer
106 views
I have a grid control where I have a item template.  For some reason, when there are only a few records, the rows are expanded so that the cells fill up the space in the grid.  For example, with 1 record, the one row it almost half of the height.

 
<rad:RadGrid ID="RadGrid1" Skin="Vista" 
    AllowSorting="True" EnableAJAX="True"   
    PageSize="15" ShowFooter="False" AllowPaging="True"   
    AllowMultiRowSelection="False" runat="server"   
    DataSourceID="SDSPendingMailList" 
    GridLines="Both" 
    ShowHeader="false"  HorizontalAlign="Left" 
    Width="350px" 
    > 
     <MasterTableView  Height="300px" AutoGenerateColumns="False" 
        width="350px" 
      ClientDataKeyNames="EmailGUID" DataSourceID="SDSPendingMailList" > 
     <Columns> 
         <rad:GridTemplateColumn UniqueName="TemplateColumn">  
             <ItemStyle Width="350px" Height="80px"/>  
             <ItemTemplate> 
                <div style="width:345px;overflow:hidden">  
                <span style="font-weight:bold; text-decoration:underline;">From:</span> <%#Eval("SenderName")%>&nbsp;<img src="<%#Eval("MatchImage")%>" /><br /> 
                <span style="font-weight:bold; text-decoration:underline;">Sent:</span> <%#Eval("SentDate")%><br /> 
                <span style="font-weight:bold; text-decoration:underline;">Subject:</span> <%#Eval("Subject")%><br /> 
                </div> 
             </ItemTemplate> 
         </rad:GridTemplateColumn> 
     </Columns> 
     <PagerStyle  Position="Top" Mode="NextPrevAndNumeric" VerticalAlign="Middle" /> 
     </MasterTableView> 
        <ClientSettings> 
            <Scrolling AllowScroll="true"  UseStaticHeaders="false"></Scrolling> 
            <Selecting AllowRowSelect="True"></Selecting> 
            <ClientEvents OnRowSelected="RowSelected" /> 
        </ClientSettings> 
    <PagerStyle BorderStyle="None" VerticalAlign="Top" /> 
</rad:RadGrid> 
Dimo
Telerik team
 answered on 18 Aug 2008
1 answer
92 views
Hi Telerik,
I've upgraded to RadControls Ajax 2008 SP2 and now in my Application residing in http://server/_layouts/App/ some Symbols have broken links to their images (f.e.:SpellCheck). This occurs only, when implementing a custom ToolsFile.
What did you changed?

Thanks for answering,
Andreas Kaech
Rumen
Telerik team
 answered on 18 Aug 2008
5 answers
320 views
I have two panels that update each other via the RadAjaxManager and RadAjaxManagerProxy. When doing an update one way, it works fine. When both panels update each other, a page reload occurs each time I click on a option button from one of the panels (instead of the expected Ajax behavior).

Here are my project details:
I have a main page (default.aspx) that has an RadAjaxScriptManager. The same page has an ascx control that gets loaded by default and is used to filter dates:

            <telerik:RadPane ID="subnavPane" runat="server" Width="200">
                <asp:Panel ID="panelFilter" runat="server">
                    <uc2:DateFilters ID="DateFilters1" runat="server" />
                </asp:Panel>
            </telerik:RadPane>

The DateFilters ascx control has option buttons that update another panel located on the main page. I set this up via the RadAjaxManagerProxy

<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="rbtnToday">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="panelContent" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>

The updated panel is (PanelContent) and is located on the main page:

            <telerik:RadPane ID="contentPane" runat="server" Width="756" Scrolling="None">
                <asp:Panel ID="panelContent" runat="server">
                </asp:Panel>
                <telerik:RadAjaxLoadingPanel ID="LoadingPanel1" Height="75px" Width="75px" runat="server"
                    Transparency="0">
                    <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/Loading.gif" Style="margin-left: 0px;
                        margin-top: 140px;" BorderWidth="0px" AlternateText="Loading"></asp:Image>
                </telerik:RadAjaxLoadingPanel>
            </telerik:RadPane>

This by itself works fine and as expected. When the option button gets clicked from the DateFilter, my function gets called which dynamically loads a new ascx control into the panel i setup on the main page (panelContent). This was done just like the example on your site for dynamically loading ascx controls and by itself works great.

On the dynamically loaded control, i added a new button which in turn needs to update the date filter panel. I set this up like this;
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxyLocal" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="LinkButton1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="panelFilter" />
                </UpdatedControls>              
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>

This seems to work ok when clicking on the new button I added, although now the option button from the date filter causes the whole page to reload each time I click on it.

Also, it seems to be enabling ajax updating on all the controls in the dynamically loaded ascx control, which doesn't make any sense to me since there is no ajax proxy creating these associations. All the examples I saw had functions like AjaxifySelf, which doesn't seem valid because it's already doing this automatically against my wishes. All the controls on the dynamically loaded user control are updating each other without page refreshes, which seems like a bug, but maybe I am missing somethning. Can i keep it from doing this? I'd rather create the associations manually to improve performance and get the finite control I need.

Can you tell me what I am doing wrong in these cases? Any help would be greatly appreciated.

Thanks,
Levi
Maria Ilieva
Telerik team
 answered on 18 Aug 2008
1 answer
130 views
With tips from your online resources, I managed to get proportional resizing done in RadEditor Classic, by hooking some JavaScript onto "oncontrolselect".

editor.AttachEventHandler("oncontrolselect"function() 
  // Introduce small delay 
  window.setTimeout(function() 
  { 
    // 1. Check if we have an image, 
    // 2. Get it's original dimensions and 
    // 3. install "onresizeend"-handler to constrains proportions 
  }, 100); 
}); 

I'm now trying to apply the same style of code to RadEditor ASP.NET AJAX, but with no success yet. I've replaced the AttachEvenHandler line with

$telerik.addExternalHandler(editor.get_document().body, "oncontrolselect"function() 
  // ... 
}); 

Before I start digging this out: is the oncontrolselect event still available? Am I hooking correctly? Is there something else I might be overseeing?
Rumen
Telerik team
 answered on 18 Aug 2008
1 answer
139 views
I am having a problem getting Rad doc windows talking to each other.  I want to be able to have 4+ doc windows (Consisting of .ascx controls) on the screen.  With those 4 .ascx dock controls I want to be able to fire custom events that other windows subscribe to.  For an example I have a drop down in one Dock window that calls a Bind for a Grid in another Dock Window. I seem to be having a problem finding the controls.  I've used "this.Parent.FindControl" and other variations of this code but to no avail I cannot find the other .ascx controls within the other doc windows.  Please help me.
Obi-Wan Kenobi
Top achievements
Rank 1
 answered on 18 Aug 2008
1 answer
86 views
Hi,

I have followed the following link to create custom tools on the Rad Editor
http://www.telerik.com/demos/aspnet/prometheus/Editor/Examples/CustomTools/DefaultCS.aspx

i was able to create custom tool however i was unable to provide image for the custom tool. I followed the same steps as described in the above link. I have used the skin "WebBlue" for the RadEditor and i am not maintaining seperate CSS class for providing the image. I have used style attribute inside head tag.

Could you please do the needful.

Thanks
Srinivas
Rumen
Telerik team
 answered on 18 Aug 2008
2 answers
122 views
In my grid I have two template columns and each one contains an asp:checkbox in its template.  Within each row, I would like to have only one checkbox checked at a time and I would like to handle it client side.

I have been through the code library and there are several good examples of keeping only one checkbox in a template in a column checked at a time - but not within a row.

Does anyone have a snippet to get me started?

I guess onclick just looping through all the controls in the row, trapping just checkboxes and, when one is found, as long as it is not the one being clicked, uncheck it.

I would appreciate any head starts on this - thanks!


 
Mark
Top achievements
Rank 1
 answered on 18 Aug 2008
5 answers
103 views
Hi,

I use ImageManager as standard alone in one usercontrol. I need to cast the value from one text box in my current page to use for creating the folder to store. I try to create one public interface to make, adding in the codebehind of the page the interface and the cast in the usercontrol, but my code not compile error IMetaAuthor is not definied in the usercontrol. Any way?

aspx  is Text ID="Author"

aspx.cs

// Interface

public interface IMetaAuthor

{

MetaAuthor Author {

get; }

}


ascx : 

string Author = ((IMetaAuthor)this.Page).Author;


Regards
Georgi
Telerik team
 answered on 18 Aug 2008
1 answer
149 views
I have a grid which used to display tooptip by using web service during the first loading.

On clicking a button outside grid, a ajax postback is called and the grid is refresh. However, no tooptip is displayed subsequently.

On debugging, the tooltip control is added in the item created event. Therefore, I don't understand why tool tip is not shown.

Can anybody help me on this?
Tsvetie
Telerik team
 answered on 18 Aug 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?