Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
181 views
Due to browswer issues I am in the process of migrating from the classic RadEditor to the ASP.NET AJAX Editor.
I wish to keep my existing image manager.
In the old version I could customise the LinkManagerControl.ascx to handle image retrieval for table cell background images.
Now that the ImageDialogCaller tool is used how do I customise it so that it returns the url from my image manager.
Rumen
Telerik team
 answered on 31 Aug 2009
2 answers
123 views
As mentioned in a previous post, I am trying to localize a RadGrid using local resource files. I have successfully done most of the localization (header text etc.), but when I use the default RadGrid form to add/edit an item the column names are still appearing in English within the form.

How can I set these to either (a) the same as the header text within the grid, or (b) a value from the local resource file?

Thanks,

Jason
Jason Thacker
Top achievements
Rank 1
 answered on 31 Aug 2009
1 answer
55 views
Hi,

I need an example how to use OfType<> for the grids

How can i get to know how many items in the grid are GridEditableItem?

Can any one help please. thank you,


Regards,

Sai
Princy
Top achievements
Rank 2
 answered on 31 Aug 2009
2 answers
458 views
Hi,

i want to set the HeaderText in a GridBoundColumn by a Databinding expression.

<telerik:GridBoundColumn DataField="Text" HeaderText='<%# MyAssembly.MyHeaderText %>' >

I got the following Exception:

Databinding expressions are only supported on objects that have a DataBinding event. Telerik.Web.UI.GridBoundColumn does not have a DataBinding event.

Can you help me? what is the best Practices to solve this Problem?

Best Regards
Thomas
Thomas
Top achievements
Rank 1
 answered on 31 Aug 2009
2 answers
465 views

Hi to all,

i need support to access a RadGrid GridCheckBoxColumn clientside.

I want to check if a GridCheckBoxColumn is checked to show Message in a RadWindow if the selected item (depending of the GridCheckBoxColumn value) is really to deleted?

In the JavaScript - Function "OnClientButtonClicking" it is not possible for me to access the value of the GridCheckBoxColumn.

 
 
<script type="text/javascript">  
      
    var RadGrid1;  
      
    function GetGridObject(sender, eventArgs) {  
        RadGrid1 = sender;  
    }  
 
      
    function OnClientButtonClicking(sender, args) {  
        var comandName = args.get_item().get_commandName();  
        if (comandName == "Save") {  
            alert('arrived');  
            var DataItems = $find("<%=Grid1.ClientID %>").get_masterTableView().get_dataItems();  
            for (i = 0; i < DataItems.length; i++) {  
                  
        // HOW can i get the Checkbox value by UniqueName (ckbDelete)  
        var combo = $telerik.findControl(DataItems[i].get_element(), "ckbDelete"); // = FAILED  
                alert(combo.get_id());     
                }  
            }  
            return false;  
        }  
      
     
</script> 
 
 
<table class="style1" cellpadding="0" cellspacing="0">  
    <tr> 
        <td style="width: 100%">  
            <telerik:RadToolBar ID="rtbOne"   
                                style="display: block; float: none"    
                                runat="server"   
                                OnClientButtonClicking="OnClientButtonClicking" 
                                OnButtonClick="rtbOne_ButtonClick"   
                                Width="100%">  
                <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                <Items> 
                     
                    <telerik:RadToolBarButton runat="server"   
                        ImageUrl="~/Image_01.png"   
                        CommandName="Save" Text="Save"   
                        ToolTip="Save...">  
                    </telerik:RadToolBarButton>                                             
                </Items> 
            </telerik:RadToolBar> 
        </td> 
     </tr> 
</table> 
    <telerik:RadGrid ID="Grid1" runat="server" BorderStyle="Solid"   
        AllowMultiRowEdit="True" Width="100%"   
        AutoGenerateColumns="False" onitemdatabound="Grid1_ItemDataBound"   
        OnItemCreated="Grid1_ItemCreated" 
        OnNeedDataSource="Grid1_OnNeedDataSource"   
        oncancelcommand="Grid1_CancelCommand" GridLines="None">  
        <HeaderContextMenu> 
            <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
        </HeaderContextMenu> 
        <PagerStyle Mode="NumericPages"></PagerStyle> 
        <ClientSettings allowrowsdragdrop="false" AllowColumnsReorder="false"    
                ReorderColumnsOnClient="false">  
                <Selecting AllowRowSelect="True" /> 
                <Scrolling AllowScroll="false" UseStaticHeaders="false" /> 
                <ClientEvents OnGridCreated="GetGridObject"></ClientEvents> 
        </ClientSettings> 
        <MasterTableView EditMode="InPlace" GridLines="Both" BorderStyle="Solid" GroupsDefaultExpanded="true" runat="server">  
          
            <GroupByExpressions> 
                <telerik:GridGroupByExpression> 
                    <SelectFields> 
                        <telerik:GridGroupByField   
                                FieldName="Text_one"   
                                HeaderText=" " 
                                HeaderValueSeparator=" ">  
                        </telerik:GridGroupByField> 
                    </SelectFields>    
                    <GroupByFields> 
                        <telerik:GridGroupByField   
                                FieldName="Text_one"   
                                SortOrder="Ascending">  
                        </telerik:GridGroupByField> 
                    </GroupByFields>                                    
                </telerik:GridGroupByExpression> 
            </GroupByExpressions> 
          
            <Columns> 
                <telerik:GridEditCommandColumn  UniqueName="editCommand"   
                    HeaderImageUrl="~/Images/Edit.gif"   
                    ButtonType="ImageButton"   
                    CancelImageUrl="~/Images/Cancel.gif"   
                    UpdateImageUrl="~/Images/Save.gif"   
                    EditImageUrl="~/Images/Edit.gif">  
                <ItemStyle Width="20px"></ItemStyle> 
                </telerik:GridEditCommandColumn> 
              
                <telerik:GridCheckBoxColumn UniqueName="ckbDelete"   
                    HeaderImageUrl="~/Images/Close.gif">  
 
                <HeaderStyle HorizontalAlign="Center"></HeaderStyle> 
                    <ItemStyle Width="20px" /> 
                </telerik:GridCheckBoxColumn> 
 
                <telerik:GridBoundColumn DataField="Id" UniqueName="Id"   
                    Visible="false">  
                </telerik:GridBoundColumn> 
     
                                                     
                <telerik:GridTemplateColumn HeaderText="Text Group" GroupByExpression="" Groupable="true" 
                    DataField="CT" UniqueName="CT" Visible="false">  
                    <ItemStyle Width="200px"/>  
                    <ItemTemplate> 
                        <asp:Label runat="server" Text='<%# Eval("text") %>'   
                            CssClass=""></asp:Label> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
 
                <telerik:GridTemplateColumn HeaderText="Description" DataField="Temptext"   
                    UniqueName="Temptext">  
                    <ItemTemplate> 
                        <asp:Label runat="server" Text='<%# Eval("Temptext") %>' CssClass=""></asp:Label> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
               
            </Columns>                     
        </MasterTableView> 
        <FilterMenu> 
            <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
        </FilterMenu> 
 
    </telerik:RadGrid> 
 
 
      
 

This doesn´t work:

// HOW can i get the Checkbox value by UniqueName (ckbDelete)  
var combo = $telerik.findControl(DataItems[i].get_element(), "ckbDelete"); // = FAILED  
alert(combo.get_id()); 

Thanks for your support.
Regards Laz
Laz
Top achievements
Rank 1
 answered on 31 Aug 2009
1 answer
143 views
Is it possible to make the size of the toolbar area large then the content area width, without changing the toolbarmode?

For example: When I set the contentarea width to 100px the toolbar doesn't fit.
When I change the toolbarmode to "ShowOnFocus" I can change the size but it places the toolbar over other textareas, which is not what I want.


Jan

Rumen
Telerik team
 answered on 31 Aug 2009
1 answer
43 views
Hi,
I am migrating an applcation from standard AST.NET controls to Telerik AST.NET AJAX Controls. In the application there are some ASP.NET ListView which are not possible/necessary to convert. These mainly contain tables. Is it somehow possible to make these ListView look like the Telerik skin I chose?

Best regards
Ferdinand
Ivo
Telerik team
 answered on 31 Aug 2009
1 answer
216 views

I am facing some problem on the Scheduler. while developing the code I used the Radscheduler (version RAD Ajax controls Q1 2009). Later I upgraded the Telerik.Web.UI.dll to latest Version of Radscheduler  (Version RAD Ajax controls  Q2 2009). After upgrading that I am having a issue on the Radscheduler.  



<
telerik:RadScriptManager ID="RadScriptManager2" runat="server">

 

 

<scripts>

 

 

<asp:ScriptReference Path="~/DefaultTemplates/AdvancedForm.js" />

 

 

</scripts>

 

 

</telerik:RadScriptManager>

The issue arises in the above code snippet at <asp:scriptreference>. I tried replacing the old version of Radscriptmanager with new version of Radscriptmanager(Q2 2009). I tried all the options provided by the below URL. But nothing works.

http://www.telerik.com/community/forums/aspnet-ajax/general-discussions/asp-scriptreference-problem.aspx

Here is the Error message:

 

System.Web.UI.ScriptReferenceCollection must have items of type 'System.Web.UI.ScriptReference'. 'asp:ScriptReference' is of type 'System.Web.UI.ScriptReference'.

 

Please help me out to solve the above issue.

thanks,
KG

Peter
Telerik team
 answered on 31 Aug 2009
9 answers
528 views
Is there a way to resize the RadScheduler on the client side with the latest version of RadControls?  I am unable to find anything in the documentation regarding setting the height, etc via javascript.
Thanks.
Peter
Telerik team
 answered on 31 Aug 2009
1 answer
123 views
HI. I am using custom images for the top layer of my menu. I have 2 inquiries for I am brand new to the Telerik technology;

1. If I specify the Image url for the menu item, there is always a 'border' around the images in the menu control and they are not flush to the controls above and beneath them and the image does not take up the entire portion of the menu it is in (The extra space around the image; top bottom left and right)

2. I need the menu and its contents to stay flush to the right of the screen when the page is resized due to larger and smaller screens.

Could someone please point me in the right direction for both.

Thanks so much

Steve
Kamen Bundev
Telerik team
 answered on 31 Aug 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?