Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
100 views
Is it possible to set a template for the each container? For example...I have a set of divs I use to create a flexible (horizontal/vertical) rounded corner box. I want those to surround each item. I see that I can style .rsmItem but is there a way to create a template?
Yana
Telerik team
 answered on 26 Feb 2010
2 answers
81 views
I really like the setup of the context menu at

http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/headercontextmenu/defaultcs.aspx

but unless I am blind, the code for the context menu is missing from the aspx.  Would someone please either point me to it or post it here?

Or...is the EnableHeaderContextMenu a built-in replacement for the old RadContextMenu?

Ahhh...nevermind...I just tested it.  Very, very cool!

Thanks,
Mark
Mira
Telerik team
 answered on 26 Feb 2010
1 answer
131 views

Hi,

In Rad grid Control, There are 3 Template Columns (Start time ,end time and Today ) and it has two Rad Time Picker control for      Edit Item Template and check box for Today column.

I'm using the master page as well.

<telerik:GridTemplateColumn HeaderText="Starttime" UniqueName="Starttime" >     
            <EditItemTemplate>     
                <telerik:RadTimePicker ID="rtpStartTime" runat="server">      
                </telerik:RadTimePicker>     
             </EditItemTemplate>     
            <ItemTemplate>     
                <asp:Label ID="lblStarttime" runat="server" Text='<%# Eval("StartTime","{0:t}") %>'></asp:Label>     
            </ItemTemplate>     
        </telerik:GridTemplateColumn>     
              
         <telerik:GridTemplateColumn HeaderText="End time" UniqueName="EndTime">      
            <EditItemTemplate>     
                <telerik:RadTimePicker ID="rtpEndTime" runat="server"        
                </telerik:RadTimePicker>                      
            </EditItemTemplate>     
            <ItemTemplate>     
                <asp:Label ID="lblEndTime" runat="server" Text='<%# Eval("EndTime", "{0:t}") %>'></asp:Label>     
            </ItemTemplate>    
 </telerik:GridTemplateColumn> 
 
<telerik:GridTemplateColumn HeaderText="Today" UniqueName="Today">      
            <EditItemTemplate>     
                <asp:CheckBox ID="CheckBox1"  runat="server"
            </asp:CheckBox>                     
            </EditItemTemplate>     
            <ItemTemplate>     
                <asp:CheckBox ID="CheckBox2"  runat="server" Checked='<%# Eval("Today") %>'
            </asp:CheckBox> 
            </ItemTemplate>  
 </telerik:GridTemplateColumn>   

I want to validate that end time value is greater than the start time when today check box was checked.

how to use the validation control, and how to show the error messages in validation summary?.

Can you plz tell me the way of doing this.because this is urgent.

thanks
waruni
Mira
Telerik team
 answered on 26 Feb 2010
1 answer
78 views
I have a radgrid in repeater which is having a clientselect column and AllowMultiRowSelection set to False. Single row selection is working fine but unchecking the selected row cannot de selects it.
Shinu
Top achievements
Rank 2
 answered on 26 Feb 2010
3 answers
84 views
Dear Sir:
   I am using 2008Q3 and i found a problem with the radgrid. When I group more then one column and the grip will mess up
there is no problem with IE7 but not for IE8. is there any solution for it. will the latest version telerik will solve the problem?


From CH
Tsvetoslav
Telerik team
 answered on 26 Feb 2010
3 answers
85 views
I've had this working before, though cannot remember how long ago, certainly with the first version of Telerik Controls Q3 2009 but not under the current SP3 (2009.3.1314.35).

.... this works fine when adding a link this way.

 

<Links> 
   <telerik:EditorLink Name="test2" Href="/"></telerik:EditorLink> 
</Links> 

 

 

 


... the following in its most basic form seems to have stopped working, at least in my MVC project:
 
var test = new EditorLink(){ Name = "test", Href="/"};  
this.RadEditor.Links.Add(test);  
                 

Is this a new bug, also Rad Editor 2010 Q1 Beta is experiencing the same problems?
I will be creating another test project to test this as well.
Matthew Green
Top achievements
Rank 1
 answered on 26 Feb 2010
2 answers
91 views
Dear All!

I'm encountering a really strange behaviour:
I have a RadGrid on my page, which displays a two-level hierarchy. OnNeedDataSource and DetailTableDataBind - events are used for assigning data to the grids. Additionally there is an AjaxManager, which updates the grid itself and a further dependent RadGrid (unimportant). HierarchyLoadMode is set to "ServerOnDemand". Data insertion/deletion/updating is done with the default in-line editors (server-side events aren't implemented yet). So far, nothing special at all...

Everything worked fine, until I added export-buttons into the command-item. I have read the documentation carefully and therefor added the javascript-method to un-ajaxify the 3 export-buttons.

Here is the code:
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"
        <script type="text/javascript"
            function mngRequestStarted(ajaxManager, eventArgs) { 
                if (eventArgs.get_eventTarget().indexOf("btnExportToPDF") != -1) 
                    eventArgs.set_enableAjax(false); 
                if (eventArgs.get_eventTarget().indexOf("btnExportToExcel") != -1) 
                    eventArgs.set_enableAjax(false); 
                if (eventArgs.get_eventTarget().indexOf("btnExportToCSV") != -1) 
                    eventArgs.set_enableAjax(false); 
            } 
        </script> 
    </telerik:RadCodeBlock>   

This client-side function is registered like the following:
    <telerik:RadAjaxManager runat="server" EnablePageHeadUpdate="False" ClientEvents-OnRequestStart="mngRequestStarted"
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="gridTasks"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="gridTasks"/> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="gridTasks" EventName="OnSelectedIndexChanged"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="lblNoSelectionText" /> 
                    <telerik:AjaxUpdatedControl ControlID="pnlTimeEntryPanel"/> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="chkShowProj... 
 
 ### further code ### 

The problem:
If I open up the page in a web-browser and want to expand any record immediately, it doesn't work as long as I don't click a second record, or do anything which triggers an ajax-request!
For example: Before I can expand any record, I could click on it, so that there is a SelectionChangedEvent being raised (ajax-request is ok) and after that everything is normal.

My solution-attempt:
If I remove the "ClientEvents-OnRequestStart" - from the AjaxManager-definition everything is ok. Therefor I believe it must have something to do with the initial registration of the javascript-functions which make a record expand or collapse.

Any help or tips appreciated!

Best regards,
Daniel Lang
Veli
Telerik team
 answered on 26 Feb 2010
1 answer
138 views
Hi,

I have used RadComboBox to create a drop down list. As per the need i had to add this drop down list in a modal popup. I have used the CustomValidator for the page. If I fill the invalid details and click on ok button of the popup the error messages are shown properly. I repeat the same process for more than 3 times and then click cancel button, and again I open the popup and fill the invalid details again and click ok button, the RadComboBox control gets distorted. 

with regards
Ramakrishna
Kalina
Telerik team
 answered on 26 Feb 2010
2 answers
96 views
Hello,

I am using trial version of Teleric Combobox control in ASP.NET application. But I am not able to view the control in Visual Studio 2008 designer view. Is there any restriction due to the trial version ?
I am getting following error message:

"Error Creating Control"
"Failed to create designer" Versionno ... etc
prayag ganoje
Top achievements
Rank 1
 answered on 26 Feb 2010
3 answers
176 views
Hoping there is a better work around for this.

I have a description column in a grid and I want to have a set width and not have the text wrap. I then want to have a tooltip show the full description when the user moses over the text.

The issue is that the tooltip does not recognize the width when wrap=true is set on the column. If I take the wrap off everything works fine. My solution was to create another field in my dataset that is only a fixed number of characters wide and then set the tool tip to the full description. it works but I am wondering if there is some other setting that I can still have Wrap=false and have the tooltip not stretch across the screen.

<telerik:GridTemplateColumn DataField="description" HeaderText="Description"   
                        SortExpression="description" UniqueName="description" AllowFiltering="false">  
                        <ItemStyle Width="160px" Wrap="false"/>  
                        <HeaderStyle Width="160px" /> 
                        <ItemTemplate> 
                            <asp:Label ID="Label1" runat="server" Text='<%# Eval("partDescrip") %>'></asp:Label> 
                                <telerik:RadToolTip ID="RadToolTip1" runat="server" TargetControlID="Label1"   
                                    RelativeTo="Element" Position="MiddleRight" Width="175px" AutoCloseDelay="0" > 
                                    <%# Eval("description") %> 
                                </telerik:RadToolTip> 
                        </ItemTemplate> 
                    </telerik:GridTemplateColumn> 

The biggest issue is that the formating of the column is not very clean because the width of each charcater is slightly differnt (kerning).

Thanks,
Craig
Svetlina Anati
Telerik team
 answered on 26 Feb 2010
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?