Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
91 views
Is it possible to set up the radcalendar so that I can populate the view with the data for that month/year shown, rather than having to do a page post back to do so, what I was thinking was an event would fire which would call a service (wcf or web service) and pull back the data in json format and then populate the calendar.
Angel Petrov
Telerik team
 answered on 02 Jan 2013
4 answers
224 views
I have a grid with a column defined as follows:
<telerik:GridCalculatedColumn FilterControlAltText="Filter column1 column" UniqueName="YrPercent" 
     DataFields="Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec,minTotal" 
     Expression="(({0} + {1} + {2} + {3} + {4} + {5} + {6} + {7} + {8} + {9} + {10} + {11})  / {12}) * 100.0" 
     Aggregate="Sum" HeaderText="Yr %" DataFormatString="{0:N3}%" FooterAggregateFormatString="{0:N3}%" 
     DataType="System.Double" FilterControlWidth="30px">
     <FooterStyle HorizontalAlign="Right" />
     <HeaderStyle Width="3.5%" HorizontalAlign="Center" />
    <ItemStyle HorizontalAlign="Right" />
  </telerik:GridCalculatedColumn>


As you can see, I'm looking for a percentage (in this case rather small ones, about .147 for example).  All of the fields referenced in the calculation are integers.  I've bound the grid with a call to a IQueryable method returning a call from LinqToSQL.  

As is, this grid crashes with a Operator '*' incompatible with operand types 'Int32?' and 'Double' error.  After much searching of your forums, I set the grid's  EnableLinqExpressions property = false and everything seems to work.

2 questions.
  1. Is there any way to get that expression to work without setting EnableLinqExpressions=false?
  2. What do I lose if I do set EnableLinqExpressions=false?



Boris
Top achievements
Rank 1
 answered on 02 Jan 2013
1 answer
222 views
Hi, i have a rad scheduler.
when am clicking add new recurrence am opening new popup window for adding records.
so in that i have a button for selecting members(popup page). so when am clicking this button am opening radwindow for selecting members in checked listbox.
so here am saving  values in session. and on button click am closing this select members popup and i want to refresh the parent popup that is add recurrent event popup and fillup checklistbox with session values.here am getting values in session. but the parent pop is not refreshing

this is my select members popup(child popup)
function CloseAndRebind(args) {
        GetRadWindow().BrowserWindow.refreshGrid(args); // Call the function in parent page
        GetRadWindow().close(); // Close the window
    }
function getRadWindow() {
    var oWindow = null;
    if (window.radWindow) oWindow = window.radWindow;
    else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
    return oWindow;
}

function closeWindow() {
    getRadWindow().close();
}    

this is my parent popup(addrecurrent popup)
<script type="text/javascript">
        //<![CDATA[
        function openWin() {
            var oWnd = radopen("SelectMembers.aspx", "RadWindow1");
            oWnd.setSize(818, 565);
            oWnd.moveTo("100px", "60px");
        }
      </script> 
Marin Bratanov
Telerik team
 answered on 02 Jan 2013
3 answers
221 views
Hi,

I am displaying context menu on right click on schedular. its working fine but when i click on header of the schedular i dnt want to diplay it. Please do help.....



Thanks
Raju 
Helen
Telerik team
 answered on 02 Jan 2013
1 answer
136 views
Hi,

I am getting two tooltips (one is comming from the rad tooltip manager another one is default tooltip).

In my project i placed tooltip manager in Master page, I am getting  two tooltips for the link butoon in all over my application.

please provide sol to avoid these two tooltips.

I am sending my sample design page for your reference.

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript">
        function TooltipBeforeShowHandler(sender, args) {

            var newTitle = sender.get_targetControl().title;
            if (newTitle) {
                sender.set_text(newTitle);
            }

        }     
    </script>
    <style type="text/css">
        #RadToolTipWrapper_RadToolTipManager1
        {
            z-index: 5895895 !important;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <div>
        <telerik:RadToolTipManager ID="RadTooltipManager1" runat="server" AutoTooltipify="true"
            OnClientBeforeShow="TooltipBeforeShowHandler" Skin="Office2007">
        </telerik:RadToolTipManager>
        <telerik:RadDockZone ID="RadDockZone1" runat="server" Height="300px" Width="300px">
            <telerik:RadDock ID="RadDock1" runat="server" Width="300px">
                <TitlebarTemplate>
                    <asp:LinkButton ID="lnkDomainTop" Style="text-decoration: none; padding-top: 5px"
                        ForeColor="black" Height="10px" Font-Bold="true" runat="server" Text="Morning Mesage"
                        ToolTip="Information domain"></asp:LinkButton>
                </TitlebarTemplate>
                <ContentTemplate>
                    <asp:Label ID="Label1" runat="server" Text="Hi, Good morning Hi, Good morning Hi, Good morning Hi, Good morning Hi, Good morning Hi, Good morning Hi, Good morning Hi, Good morning Hi, Good morning Hi, Good morning Hi, Good morning Hi, Good morning Hi, Good morning Hi, Good morning Hi, Good morning Hi, Good morning Hi, Good morning "></asp:Label>
                </ContentTemplate>
                <Commands>
                </Commands>
            </telerik:RadDock>
        </telerik:RadDockZone>
    </div>
    </form>
</body>
</html>

Marin Bratanov
Telerik team
 answered on 02 Jan 2013
3 answers
270 views
I'm trying to add a AutoPostBack enabled RadComboBox to the ItemTemplate of a RadGrid's GridTemplateColumn.  The RadComboBox relies on certain row data so I'm creating it dynamically using the grid's ItemDataBound event:

protected void rgFaqs_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
    if (e.Item.ItemType == Telerik.Web.UI.GridItemType.Item || e.Item.ItemType == Telerik.Web.UI.GridItemType.AlternatingItem)
    {
        FaqListItem item = (FaqListItem)e.Item.DataItem;
 
        if (item == null)
            return;
 
        WorkflowComboBox workflowBox = new WorkflowComboBox();
        workflowBox.ItemID = item.Id;
        workflowBox.DataBind();
 
        PlaceHolder phWorkflowBox = (PlaceHolder)e.Item.FindControl("phWorkflowBox");
        phWorkflowBox.Controls.Add(workflowBox);
    }
}

Here is a snippet of my custom overridden WorkflowComboBox:

    public class WorkflowComboBox : Telerik.Web.UI.RadComboBox
    {
        public int ItemID { get; set; }
 
        public WorkflowComboBox()
        {
            AutoPostBack = true;
        }
 
        protected override void OnInit(EventArgs e)
        {
            this.SelectedIndexChanged += new RadComboBoxSelectedIndexChangedEventHandler(WorkflowComboBox_SelectedIndexChanged);
 
            EnsureChildControls();
            base.OnInit(e);
        }

Like I said, this works perfectly fine on the initial page load.  The problem occurs on the AutoPostBack of the ComboBox.  This causes a postback which doesn't appear to be firing the ItemDataBound event again.  That in turn causes my the Combobox field to not be loaded properly.

I've also tried moving the ItemDataBound stuff to the RadGrid's ItemCreated event instead.  Everything works fine on first page load. When the ComboBox AutoPostBack gets fired though, the e.Item.DataItem is null. 

I'm getting the vibe that this is an issue/conflict? with the event sequence of the RadGrid and the RadComboBox.  It also appears during this whole process that the RadComboBox SelectedIndexChanged event is never being reached.

Any thoughts?  Am I missing something!?

-Thanks
Maria Ilieva
Telerik team
 answered on 02 Jan 2013
1 answer
66 views
hii,
how can i highlight todays in the radcalender?
Shinu
Top achievements
Rank 2
 answered on 02 Jan 2013
1 answer
120 views
Hello,

I need print functionality in RadCalendar 
How do I achieve this?

Regards,
Amit
Princy
Top achievements
Rank 2
 answered on 02 Jan 2013
1 answer
59 views
is it possible to change the text of the select button?

thanks
Shinu
Top achievements
Rank 2
 answered on 02 Jan 2013
1 answer
64 views
Hi,
When am click the context menuitem(add appointment) in scheduler i want to open the radwindow.
any one help?
Princy
Top achievements
Rank 2
 answered on 02 Jan 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?