Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
87 views
I have a RadTimeView with TimeFormat="h:mm tt" and I cannot get the times in the popup to align right. I have added HorizontalAlign=Right" and TimeStyle-HorizontalAlign="Right" and the times are still centered. Looking at the generated html, it appears that the problem is because the anchor elements in the table cells (the table cells DO have align="right" on them) are getting the css attributes display:block and text-align:center applied (from .RadCalendarTimeView style). Since the anchor elements display as block, they are taking the full width of the table cell, so the center align attribute is overriding the cell attribute. When HorizontalAlign="Right" is specified, it should be applied to the a element as well.

v2012.3.1308.40
Eyup
Telerik team
 answered on 08 Jul 2013
1 answer
61 views
Hi. 'm Exporting PDF file using RadGrid. I want, exported pdf file has to be shown Page Number on each page footer in Center.
'm using Telerik 2011 Release ver 5:1:11:928.

Please help me in this.
Thanks in advance.
Kostadin
Telerik team
 answered on 08 Jul 2013
9 answers
219 views

Hi developers,

I'm using a List of objects to fill my Grid. The objects type is a class that inherits from another class. My grid shows the fields correctly, but if I try sort, I get some strange errors. When I try to sort by a field from the base class, I get an error (Cannot find the column '...'). If I try sort by a field from the child class (used as DataSource), the Grid is sorted correctly.

My Telerik version is Q3 2008.

Following, I try to exemplify the situation.

My classes:

public class ClassA  
{  
   public string ID { getset; }  
   public string Name { getset; }  
}  
 
public class ClassB : ClassA  
{  
   public string ZipCode { getset; }  

My Page:

radGrid_NeedDataSource(object source, GridNeedDataSourceEventArgs e)  
{  
    List<ClassB> list = getData();  
    radGrid.DataSource = list;  

If I try to sort by ZipCode, the Grid is sorted.
If I try to sort by Name or ID, I get the error "Cannot find column".
Andrey
Telerik team
 answered on 08 Jul 2013
1 answer
309 views
Hi,

I have email ( compose screen ) is showing in the radwindow as popup. If user clicks on close button accidentally then I would like to show radconfirm.

Now I can able to show radconfirm ( "Do you want to save as draft ") , But 2 things i have to do.
1) Have check validation before save.
2) If user clicks on "OK" then i would like to save as draft.

In Parent :

<telerik:RadWindowManager runat="Server" ID="RadWindowManager2" ShowContentDuringLoad="false"
    EnableViewState="false">
    <Windows>
        <telerik:RadWindow runat="server" ID="EmailScreen" KeepInScreenBounds="true" Title="TWDM Email"
            OnClientBeforeClose="OnClientBeforeCloseEmailScreen" InitialBehaviors="Maximize"
            AutoSize="true" Width="1000px" Height="850px" ReloadOnShow="true" ShowContentDuringLoad="false"
            Modal="True" Behaviors="Close,Move,Resize,Maximize" VisibleStatusbar="true">
        </telerik:RadWindow>
    </Windows>  
</telerik:RadWindowManager>
 
  function OnClientBeforeCloseEmailScreen(sender, eventArgs) {
            radconfirm('Do you want to save as draft?', confirmCallbackFn1, 400, 200, null, 'TWDM Confirm');
        }
 
        function confirmCallbackFn1(arg) {
            if (arg) //the user clicked OK
            {
                __doPostBack("<%=hdnBtnSaveAsDraft.UniqueID %>", "");
            }
        }
 
 
' Showing email compose screen in Radwindow Popup here.
 function onButtonClicked(sender, args) {
            var commandName = args.get_item().get_commandName();
            var qs = getQueryStrings();
            var oManager = GetRadWindowManager().getWindowByName("EmailScreen");
           if (commandName == "Compose") {
                window.radopen("ComposeMail.aspx?type=NewEmail&TaskNo=" + qs["TaskNo"] + "&Parent=" + qs["Parent"] + "", "EmailScreen");
              
        }


Find the attachment and Please help me on this..





Ivaylo
Telerik team
 answered on 08 Jul 2013
1 answer
115 views
Hi telerik

Here is the makup of a radnumerictextbox.

<telerik:RadNumericTextBox ID="tax" runat="server" Skin="Silk" />

The issue is the warning icon is not shown on typing invalid characters. Please help me to resolve this issue.

Thankyou
Tia
Shinu
Top achievements
Rank 2
 answered on 08 Jul 2013
1 answer
153 views
I have a RadTabStrip inside an iFrame (RadWindow) that has 3 tabs linked to a RadMultiPage. In Chrome, everything works as expected. However, when in Firefox or IE10, when I click a tab, the browser freezes. In firebug I can see the following error
NS_ERROR_OUT_OF_MEMORY: Out of Memory
if(e){b=e[a];
in the following script handler /ScriptResource.axd?d=L4WBh96PmKNCiYr3K6CV0_ZHQcTFtyYsMMhJHDHizCIjUYPB1QMHsdVHkAqaPl2iW-js_t_mCG5P7euqU0HZJjinokxnSpRjMsTiR7f_8XfUO9RR0PmqEDIwMXTaHZyZv_jJwsr634ePuuIZJpwAkQ2&t=4004e9e8 on line 123

I have also tried attaching client side event to the tabs. They're triggered correctly in chrome, but nothing in both IE and Firefox.

Is there a known fix for this problem?
Nencho
Telerik team
 answered on 08 Jul 2013
1 answer
63 views
I need to get the datakey value of a radgrid dragged item on  RowDropping event  but everything I tried returns null.
e.g. 
args._dragedItems[0].getDataKeyValue('ProcedureID')

var UIProceduresGrid = $find($telerik.$("[id$='UIProceduresGrid']")[0].id);
            var UIProceduresGridTable = UIProceduresGrid.get_masterTableView();
            var UIProceduresGridRows = UIProceduresGridTable.get_dataItems();
            var dragged = UIProceduresGridRows[args._dragedItems[0]._itemIndexHierarchical];
dragged.getDataKeyValue("ProcedureID") 


and few other things

 Can anyone please help me with this.

Thanks in advance.
Eyup
Telerik team
 answered on 08 Jul 2013
1 answer
190 views
Hi,

I have a filter template which is using my own custom filter, this is setup in the item command. After this event Telerik build up the rest of the filter expression by looping through the columns. I need this loop to exclude the column that I have already built the filter expression for.

The custom filter template is a combobox with check boxes. I convert the comma separated string into OR conditions in the grid filter expression. For example 'cup, plate, glass' gets converted to "(([category] = 'cup') OR ([category] = 'plate') OR ([category] = 'glass') )" which is correct, however after the item command event the value from the filter control is automatically used for my column with the custom filter so the filter expression becomes "(([category] = 'cup') OR ([category] = 'plate') OR ([category] = 'glass') ) AND ([category] = 'cup,plate,glass')". This occurs when I filter another column when a filter already exists for my custom column.

Can I exclude my column from the in-built filtering but keep my custom filtering?

Eyup
Telerik team
 answered on 08 Jul 2013
2 answers
126 views
When the grid control displays its data, the child rows are collapsed and the user needs to click on the arrow to the left to expand it and the only way a user knows if a row has child data is to expand it.  Is there a way to have the expand arrow (or some other way) display a different color if there are child rows?  I don't want to expand every child row as that would make it difficult for the users to quickly find the data they want.
Jon
Top achievements
Rank 1
 answered on 08 Jul 2013
1 answer
62 views
Hi guys

I am trying to access a menu item in javascript using get_items but I am getting the parent items only. The subitems are not listed. What can I do?
Please help
Joseph
Shinu
Top achievements
Rank 2
 answered on 08 Jul 2013
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?