Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
138 views
Is is possible to have multiple start/end time per day. What i want to achieve is to show timeslot like
8:30
10:30
1:00
3:00

I did implement with the below code
DayStartTime="08:30:00" DayEndTime="16:30:00"
WorkDayStartTime="08:30:00" WorkDayEndTime="16:30:00"
DayView-DayStartTime="08:30:00" DayView-DayEndTime="16:30:00"
MultiDayView-DayStartTime="08:30:00" MultiDayView-DayEndTime="16:30:00"
WeekView-DayStartTime="08:30:00" WeekView-DayEndTime="16:30:00"
MinutesPerRow="120" TimeLabelRowSpan="1" NumberOfHoveredRows="1"

Which give me the result
8:30
10:30
12:30
2:30

Thanks in Advance
Peter
Telerik team
 answered on 13 Aug 2010
3 answers
122 views

I have a user control which I am adding to my page at the runtime.

This controls has a Telerik dropdown which does the async  PostBack using RadAjaxPanel.

Now to successfully make the dropdown postback work I need to add the control to the page on every post back.

The issue is along with this control, I am adding many other controls based on SQL query in a single function.

And all the controls do query the database to get their data which puts load on the server as well.

So I need to know is there any better way of just doing post back and refresh on the one control which I want to on async post back from the dropdown list.

And somehow avoid adding the all other controls again and again.

Deepak
Top achievements
Rank 1
 answered on 13 Aug 2010
0 answers
79 views
Multi-column doesn't have a proper appearance when menu direction is right to left.

Libertad
Top achievements
Rank 1
 asked on 13 Aug 2010
2 answers
328 views
I am using a custom UserControl as the EditForm of a RadGrid.

The way I have it set-up, it is possible to open both an EditForm and an InsertForm at the same time - as these both use the same user control, my validation groups are clashing, and stopping the page from working.

Is it possible to set up the <telerik:RadGrid> control up so that as soon as I click 'Insert Record' the Edit Form closes, and vice-versa, as soon as I Edit a Record, the Insert Record form closes?

Thanks
DA
Dave
Top achievements
Rank 1
 answered on 13 Aug 2010
4 answers
116 views
Hi,
I am using a radupload and I have set the skin to windows 7. However, I would also like to separtely set the backcolor of the input to a particular color. How can I do this?
Thanks ... Ed
Ed Staffin
Top achievements
Rank 1
 answered on 13 Aug 2010
1 answer
247 views
Hi, i have a radgrid with, a link column, and on itemcommand i want to open a radwindow by server side, i try this:
but the window can't show
thanks

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                    <AjaxSettings>
                        <telerik:AjaxSetting AjaxControlID="rgrAnalisi">
                            <UpdatedControls>
                                <telerik:AjaxUpdatedControl ControlID="rgrAnalisi" 
                                    LoadingPanelID="RadAjaxLoadingPanel1" />
                            </UpdatedControls>
                        </telerik:AjaxSetting>
                    </AjaxSettings>
                </telerik:RadAjaxManager>
  
                <telerik:RadWindowManager ID="RadWindowManager1" runat="server" 
                    EnableViewState="False">
                </telerik:RadWindowManager>
  
                <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">
                </telerik:RadAjaxLoadingPanel>
  
  
                  <telerik:RadCodeBlock ID="RadCodeBlock2" runat="server">
                        <script type="text/javascript">
                        <!--
  
                            function gridCommand(sender, args) {
                                if (args.get_commandName() == "Rapportino" || args.get_commandName() == "DownloadAttachment") {
                                    var manager = $find('<%= RadAjaxManager.GetCurrent(Page).ClientID %>');
                                    manager.set_enableAJAX(false);
  
                                    setTimeout(function () {
                                        manager.set_enableAJAX(true);
                                    }, 0);
                                }
                            }
  
                            function conditionalPostback(sender, eventArgs) {
                                var theRegexp = new RegExp("\.UpdateButton$|\.PerformInsertButton$", "ig");
                                var eventArgument = eventArgs.get_eventArgument();
  
                                if (eventArgument.indexOf("Update") > -1 || eventArgument.indexOf("PerformInsert") > -1) {
                                    if (upload && upload.getFileInputs()[0].value != "") {
                                        eventArgs.set_enableAjax(false);
                                    }
                                }
                            }
                            -->
                        </script>
                </telerik:RadCodeBlock>
  
  
                <telerik:RadGrid runat="server" ID="rgrAnalisi" Skin="Vista"
                        AllowPaging="True" AllowSorting="True" GridLines="None" PageSize="12"
                        style="margin-top: 100px; margin-left:27px;"  Width="900px" 
                        ShowGroupPanel="True"
                    ondetailtabledatabind="rgrAnalisi_DetailTableDataBind" 
                    oncolumncreated="rgrAnalisi_ColumnCreated" 
                    onitemdatabound="rgrAnalisi_ItemDataBound" 
                    onitemcommand="rgrAnalisi_ItemCommand">
  
                        <GroupingSettings CaseSensitive="false" />
                        <PagerStyle Mode="NumericPages"/>
                        <ClientSettings>
                        <Selecting  AllowRowSelect="true"/>
                        <ClientEvents OnCommand="gridCommand" />
                        </ClientSettings>
  
                        <MasterTableView ShowHeadersWhenNoRecords="true" >
                             <DetailTables>
                                <telerik:GridTableView Name="Customer" Width="100%">
                                    <Columns>
                                            <telerik:GridBoundColumn UniqueName="colCustomer" HeaderText="Cliente" Visible="false">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn UniqueName="colComm" HeaderText="Commessa" Visible="false">
                                            </telerik:GridBoundColumn>
                                    </Columns>
                                    <DetailTables>
                                        <telerik:GridTableView Name="Commesse" Width="100%">
                                            <Columns>
                                            <telerik:GridBoundColumn UniqueName="colCustomer" HeaderText="Cliente" Visible="false">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn UniqueName="colComm" HeaderText="Commessa" Visible="false">
                                            </telerik:GridBoundColumn>
                                            </Columns>
                                                <DetailTables>
                                                    <telerik:GridTableView Name="Rapportini" Width="100%">
                                                    <Columns>
                                                        <telerik:GridBoundColumn UniqueName="colCustomer" HeaderText="Cliente" Visible="false">
                                                        </telerik:GridBoundColumn>
                                                        <telerik:GridBoundColumn UniqueName="colComm" HeaderText="Commessa" Visible="false">
                                                        </telerik:GridBoundColumn>
                                                        <telerik:GridTemplateColumn UniqueName="colView" ItemStyle-HorizontalAlign="Center" AllowFiltering="false">
                                                            <ItemTemplate>
                                                                <asp:Image runat="server" ID="linkView" ImageUrl="~/images/Zoom.png">
                                                                </asp:Image>
                                                                <telerik:RadToolTip runat="server" Width="300" Height="300" RenderInPageRoot="true" ShowEvent="OnMouseOver"
                                                                        HideEvent="ManualClose" HideDelay="2" ID="Tooltip" Position="TopRight" Animation="Resize"
                                                                        RelativeTo="Element" >
                                                                </telerik:RadToolTip>
                                                            </ItemTemplate>
                                                        </telerik:GridTemplateColumn>
                                                        <telerik:GridTemplateColumn UniqueName="colView" ItemStyle-HorizontalAlign="Center" AllowFiltering="false">
                                                            <ItemTemplate>
                                                                <asp:LinkButton runat="server" ID="linkRappo" Text="Rapportino" CommandName="Rapportino">
                                                                </asp:LinkButton>
                                                            </ItemTemplate>
                                                        </telerik:GridTemplateColumn>
                                                    </Columns>
                                                    </telerik:GridTableView>
                                                </DetailTables>
                                        </telerik:GridTableView>
                                    </DetailTables>
                                </telerik:GridTableView>
                        </DetailTables>                  
                        <Columns>
                            <telerik:GridBoundColumn UniqueName="colMese" Visible="false">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn UniqueName="colEseguite" Visible="false">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn UniqueName="colAddebitare" Visible="false">
                            </telerik:GridBoundColumn>
                        </Columns>
                        </MasterTableView>
                </telerik:RadGrid>
protected void rgrAnalisi_ItemCommand(object source, GridCommandEventArgs e)
    {
        if (e.CommandName == "Rapportino")
        {
            GridDataItem item = e.Item as GridDataItem;
            short Year = short.Parse(txtYear.Text); ;
            int Number = int.Parse(item["NumeroRappo"].Text);
            Session.Add("RappoYear", Year);
            Session.Add("RappoNumber", Number);
            Session.Add("RappoProvenience", "Rapportini");
            RadWindowManager manager = new RadWindowManager();
            RadWindow newwindow = new RadWindow();
            newwindow.ID = "RadWindow2";
            newwindow.NavigateUrl = "Rapportino.aspx";
            newwindow.VisibleTitlebar = true;
            newwindow.Behaviors = WindowBehaviors.Close;
            newwindow.VisibleOnPageLoad = true;
            manager.Windows.Add(newwindow);  
        }
    }
Shinu
Top achievements
Rank 2
 answered on 13 Aug 2010
8 answers
511 views
I am un sure why I am getting this javascript error when trying to use the radopen java script functionality:

Error: Object doesn't support this property or method.

This sample code produces the error:

<head runat="server">

<title>Test Page</title>

<script>

function openWindow()

{

alert("openWindow Activated");

var oWnd = window.radopen("http://www.yahoo.ca", "RadWindow1");

}

</script>

</head>

<body>

<form id="form1" runat="server">

<div>

&nbsp;</div>

<asp:ScriptManager ID="ScriptManager1" runat="server">

</asp:ScriptManager>

<telerik:RadWindow ID="RadWindow1" runat="server">

</telerik:RadWindow>

<button onclick="openWindow();return false;" class="Button" style="WIDTH:190px">

Show window (using radopen)

</button>

</form>

</body>

</html>


Kyle

Deepak Zala
Top achievements
Rank 1
 answered on 13 Aug 2010
1 answer
59 views
as I can move keys in the radgrid
Princy
Top achievements
Rank 2
 answered on 13 Aug 2010
1 answer
115 views
Hey everyone,

I have a RadGrid that pops open the Insert/Edit form.  This at one point worked fine, but is now trying to download the ASPX file from the server.  When someone clicks on "Edit" or "Add new record", IE is trying to download the ASPX file and then giving an error that reads:

    Unable to download [File Name] from [Server Name]
    Unable to open this Internet site.  The requested site is either unavailable or cannot be found.
    Please try again later.

I don't believe there is anything special about the grid's definition, but I pasted it below in case I'm just not seeing something:

Thanks a lot,
Greg

<telerik:RadGrid ID="gridDelegates" runat="server" 
    AutoGenerateColumns="False" GridLines="Both"
    OnNeedDataSource="gridDelegates_NeedDataSource"
    OnInsertCommand="gridDelegates_InsertCommand"  
    OnUpdateCommand="gridDelegates_UpdateCommand" 
    OnDeleteCommand="gridDelegates_DeleteCommand">
      
    <MasterTableView AutoGenerateColumns="false" DataKeyNames="ID" CommandItemDisplay="Top" EditMode="PopUp">
        <NoRecordsTemplate>
            No delegates have been assigned.
        </NoRecordsTemplate>
        <RowIndicatorColumn>
            <HeaderStyle Width="20px"></HeaderStyle>
        </RowIndicatorColumn>
        <ExpandCollapseColumn>
            <HeaderStyle Width="20px"></HeaderStyle>
        </ExpandCollapseColumn>
          
        <Columns>
            <telerik:GridEditCommandColumn UniqueName="colEdit" />
            <telerik:GridBoundColumn HeaderText="Name" UniqueName="colNameOfDelegate" DataField="NameOfDelegate">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Start Date" DataFormatString="{0:MM-dd-yyyy}"  UniqueName="colStartDate" DataField="StartDate">
                <ItemStyle Width="68px" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="End Date" DataFormatString="{0:MM-dd-yyyy}" UniqueName="colEndDate" DataField="EndDate">
                <ItemStyle Width="65px" />
            </telerik:GridBoundColumn>
              
            <telerik:GridBoundColumn UniqueName="colOffice" HeaderText="Office" DataField="Office">
                <ItemStyle Width="60px" />
            </telerik:GridBoundColumn>
              
            <telerik:GridTemplateColumn UniqueName="colFullDept" HeaderText="Department">
                <ItemStyle Width="60px" />
                <ItemTemplate>
                    <span><%# DataBinder.Eval(Container.DataItem, "Dept")%>-<%# DataBinder.Eval(Container.DataItem, "SubDept")%></span>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
              
            <telerik:GridButtonColumn ConfirmText="Are you sure you want to delete this delegate? <br/><br/>Click 'OK' to delete.<br/><br/>" 
                                    ConfirmDialogType="RadWindow"
                                    ConfirmTitle="Delete Confirmation"
                                    ButtonType="ImageButton" 
                                    CommandName="Delete" Text="Delete"
                                    UniqueName="colDeleteColumn">
                            <ItemStyle HorizontalAlign="Center" Width="30px" />
             </telerik:GridButtonColumn>
              
            <telerik:GridBoundColumn UniqueName="colSupervisor" DataField="Supervisor" Visible="false" Display="false" />
            <telerik:GridBoundColumn UniqueName="colDelegate" DataField="Delegate" Visible="false" Display="false" />
            <telerik:GridBoundColumn UniqueName="colDept" DataField="Dept" Visible="false" Display="false" />
            <telerik:GridBoundColumn UniqueName="colSubDept" DataField="SubDept" Visible="false" Display="false" />
            <telerik:GridBoundColumn UniqueName="colIsActive" DataField="IsActive" Visible="false" Display="false" />
        </Columns>
          
        <EditFormSettings UserControlName="~/UserControls/DelegationEditor.ascx"
               EditFormType="WebUserControl"  CaptionDataField="NameOfDelegate" CaptionFormatString="Delegate rule for {0}"
               InsertCaption="New Delegate">
        </EditFormSettings>
    </MasterTableView>
</telerik:RadGrid>
Pavlina
Telerik team
 answered on 13 Aug 2010
3 answers
209 views

Can you invoke radalert or radconfirm or radprompt from code behind?

I am experimenting on the radpanel bar to be my menu items. I have the following code. When user choose delete, I would like to show radconfim and when user chooses to enter, I would like to show radprompt.  Can this be done with Radconfirm and Radprompt? If not please suggest if there is any way to achieve this?

Protected Sub RadPanelBar1_ItemClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadPanelBarEventArgs) Handles RadPanelBar1.ItemClick
        If e.Item.Items.Count > 0 Then
            If e.Item.Text <> "Print" Then
                "You clicked on top level item. Click on the child item."
            End If
            If e.Item.Text <> "Issuance" Then
                "You clicked on top level item. Click on the child item."
            End If
        Else
            If e.Item.Value = "VIEW" Then
  
            ElseIf e.Item.Value = "UPDATE" Then

            ElseIf e.Item.Value = "SAVE" Then

            ElseIf e.Item.Value = "DELETE" Then

            ElseIf e.Item.Value = "ENTER" Then

         
            End If
        End If
    End Sub

Thank in advance.

Shinu
Top achievements
Rank 2
 answered on 13 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?