Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
458 views
Hi,

I created a gird which includes MasterGrid and Child Grid, However, I cannot clear the selected row after copy, move some row.

Could someone help me I really appreciate it.

Thank you.
Princy
Top achievements
Rank 2
 answered on 14 Jun 2013
2 answers
152 views
Please advise what is wrong with the below code since get_appointment returns null when going thru OnClientAppointmentDoubleClick(sender, eventArgs)
ASP.NET version: 4.0
OS: XP
browser version: Google Chrome 27.0.1453.110 m
Telerik product v. 2010.3.1215.40

Thanks!
Antonio

<
telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
            <script type="text/javascript">
                function OnClientAppointmentDoubleClick(sender, eventArgs) {
                    var apt = eventArgs.get_appointment();
                    alert("You clicked on an appointment: " + apt);
                }                                                                      
            </script>
        </telerik:RadCodeBlock>
    <telerik:RadScheduler ID="RadScheduler1" runat="server"  Height="600px"
        DataEndField="ReviewEnd" DataKeyField="AgendaID" DataSourceID="SqlDataSource5"
        DataStartField="ReviewStart" DataSubjectField="Subject"
        DayEndTime="00:00:00" SelectedView="MonthView" 
        DataDescriptionField="Description" EnableDescriptionField="True"
        meta:resourcekey="RadScheduler1Resource1"
        onprerender="RadScheduler1_PreRender"
        onclientappointmentdoubleclick="OnClientAppointmentDoubleClick">
        <Localization AdvancedAllDayEvent="Dia Completo"
            AdvancedCalendarCancel="Cancelar" AdvancedCalendarToday="Hoy"
            AdvancedClose="Cerrar" AdvancedDaily="Diario" AdvancedDay="Día"
            AdvancedDays="día(s)" AdvancedDescription="Descripción" AdvancedDone="Hecho"
            AdvancedEditAppointment="Editar cita" AdvancedEndAfter="Finalizar despues"
            AdvancedEndByThisDate="Finalizar por" AdvancedEvery="Cada"
            AdvancedFirst="primero" AdvancedFourth="cuarto"
            Show24Hours="Mostrar 24 horas..."
            ShowBusinessHours="Mostrar horario negocio..." ShowMore="más..."
            AdvancedYearly="Anual" AllDay="día" ContextMenuAddAppointment="Nueva cita"
            ContextMenuAddRecurringAppointment="Nueva cita recurrente"
            ContextMenuDelete="Borrar" ContextMenuEdit="Editar"
            ContextMenuGoToToday="Ir hoy" HeaderDay="Día" HeaderMonth="Mes"
            HeaderMultiDay="Multi-día" HeaderNextDay="día sig" HeaderPrevDay="día ant"
            HeaderTimeline="Cronología" HeaderToday="hoy" HeaderWeek="Semana"
            ReminderHour="hora" ReminderHours="horas" ReminderMinute="minuto"
            ReminderMinutes="minutos" ReminderNone="Ninguno" Reminders="Recordatorios"
            ReminderSnooze="Postergar"
            ReminderSnoozeHint="Clic Postergar para recordar de nuevo en:"
            ReminderWeek="semana" ReminderWeeks="semanas" Save="Guardar"
            ShowAdvancedForm="Opciones" />
    </telerik:RadScheduler>
    <asp:SqlDataSource ID="SqlDataSource5" runat="server"
        ConnectionString="<%$ ConnectionStrings:serpoldbConnectionString %>"
        SelectCommand="spAgendaSelect" SelectCommandType="StoredProcedure"
        CancelSelectOnNullParameter="False" onselected="SqlDataSource5_Selected">
        <SelectParameters>
            <asp:ControlParameter ControlID="RadComboBox3" DbType="Guid" Name="UserId"
                            PropertyName="SelectedValue" />
            <asp:Parameter Name="StartDate" DbType="Date" />
            <asp:Parameter Name="EndDate" DbType="Date" />
            <asp:Parameter Name="StatusID" Type="Int32" />
            <asp:ControlParameter ControlID="RadComboBox1" Name="IssueTypeID"
                            PropertyName="SelectedValue" Type="Int32" />
            <asp:ControlParameter ControlID="RadComboBox2" Name="ProjectID"
                PropertyName="SelectedValue" Type="Int32" />          
            <asp:ControlParameter ControlID="RadComboBox4" Type="Int32" Name="PriorityID"
                            PropertyName="SelectedValue" />
        </SelectParameters>
    </asp:SqlDataSource>
Antonio
Top achievements
Rank 1
 answered on 13 Jun 2013
7 answers
256 views
I used an example found elsewhere on the Telerik forums to dynamically load user controls into a panel with a tabstrip control managing which control is loaded.

The original source gave two simple examples:
Default.aspx
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Assembly="RadTabStrip.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title>Dynamically loaded user controls on tab click and a postback from a user control</title>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager id="ScriptManager1" runat="server">
        </asp:ScriptManager>
    <div>
        <rad:RadTabStrip ID="RadTabStrip1" runat="server" OnTabClick="RadTabStrip1_TabClick" AutoPostBack="True">
            <Tabs>
                <rad:Tab runat="server" Text="Simple control" Value="0">
                </rad:Tab>
                <rad:Tab runat="server" Text="Timer Control" Value="1">
                </rad:Tab>
            </Tabs>
        </rad:RadTabStrip>
           
        <telerik:radajaxmanager id="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadTabStrip1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadTabStrip1"></telerik:AjaxUpdatedControl>
                        <telerik:AjaxUpdatedControl ControlID="Panel1"></telerik:AjaxUpdatedControl>
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:radajaxmanager>
        <asp:Panel ID="Panel1" runat="server" Height="438px" Width="1192px">
        </asp:Panel>
         
 
    </div>
    </form>
</body>
</html>

TimerControl.ascx
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="TimerControl.ascx.cs" Inherits="TimerControl" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Timer ID="Timer1" runat="server" Interval="2000" OnTick="Timer1_Tick">
</asp:Timer>
<asp:Label ID="Label1" runat="server" Text="Timer is ticking <br/>Ticks: "></asp:Label>
<asp:Label ID="Label2" runat="server" Text="0"></asp:Label>
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="Timer1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="Label2" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy

and finally
SimpleControl.ascx
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="SimpleControl.ascx.cs" Inherits="SimpleControl" %>
<asp:Label ID="Label1" runat="server" Text="Just a user control. Take a look at the other one."></asp:Label>

In the codebehind, the loaded control is determined from the viewstate, and I have successfully incorporated my controls in place of the two examples provided above. However, the entire page is being updated on postback.

In default.aspx I have set the ajax manager to update the tabstrip and panel and in my controls, I have set the ajax proxy to update only the controls that need to be updated, but it does not work correctly, still updating the entire page on each postback.

On another note, when I set OnTabClick to my click handler, I get a compile error indicating that the function is not part of the class. Removing it does not create a problem with the event firing, but I mention it because it may be the reason the entire page is updated.


Keith
Top achievements
Rank 2
 answered on 13 Jun 2013
4 answers
222 views

I developed a web application that uses RadWindows to display many forms, but because of client resolution problems and the required size of the RadWindow, I needed to create optional pages for some of them. This leads me to my problem.

When the page is viewed in a RadWindow, I have a RadTimePicker that I have overridden the location using the RadCalendarPopup class.

.RadCalendarPopup {  
    left: 50%; 
    margin-left: -32px; 
    position: absolute;  
    top: 0px;  
}

Now, the page will be rendered in a browser window on some occasions, therefore, I need to adjust the top location only when the page is viewed in a browser because a navigation menu is included in the top 50px. Thus, I need to change top to 50px;

One solution I have considered is to have two separate CSS files and simply load them as needed in the code-behind, but it seems overkill to duplicate alot of CSS code just for one rule.

I would use javascript client-side, but I have found that getting the correct wrapper div is quite unreliable.

I will entertain any suggestions.


Keith
Top achievements
Rank 2
 answered on 13 Jun 2013
2 answers
692 views
I'm still new to Telerik and .net, So pardon me if this is trivial.
I have a problem with a dynamically built Rad Grid.

It loads just fine but I had a problem where I need to maintain leading white space in
a note text field (it's 50 char data string used to print on forms). 
I found a few ideas to try and fix but the only one that worked for me was to use
the DataFormatString.

Now the problem is when I do this formatting, my row height has almost doubled
in size.  How can I set the row height and still keep the preformatted text from dropping
the leading white space. Any input would be great.

Dim rgOrderNotes As New RadGrid

rgOrderNotes.ID = "rgOrderNotes"

rgOrderNotes.Style("Position") = "Absolute"

rgOrderNotes.Style("Top") = (150).ToString & "px"

rgOrderNotes.Style("Left") = (50).ToString & "px"

rgOrderNotes.Visible = True

rgOrderNotes.AutoGenerateColumns = False

rgOrderNotes.Height = 500

rgOrderNotes.PageSize = 18

rgOrderNotes.ClientSettings.Scrolling.AllowScroll = True

rgOrderNotes.AllowAutomaticInserts = True

rgOrderNotes.AllowAutomaticUpdates = True

 

Dim boundColumn As GridBoundColumn

boundColumn = New GridBoundColumn()

boundColumn.DataField = "O5ITEM"

boundColumn.HeaderText = "LINE #"

boundColumn.HeaderStyle.Width = Unit.Pixel(120)

rgOrderNotes.MasterTableView.Columns.Add(boundColumn)

boundColumn = New GridBoundColumn()

boundColumn.DataField = "ODTEXT"

boundColumn.HeaderText = "NOTE DESCRIPTION"

boundColumn.ItemStyle.Font.Name = "Courier New"

boundColumn.DataFormatString = "<pre>{0}</pre>"

boundColumn.HeaderStyle.Width = Unit.Pixel(400)

rgOrderNotes.MasterTableView.Columns.Add(boundColumn)


 

Todd
Top achievements
Rank 1
 answered on 13 Jun 2013
3 answers
181 views
I have a dataset consisting of over 127,000 records and need to split them up so as not to exceed Excel's 65k row limitation.  Is there a way to export a subset of all the records in a radgrid?

The only way I can see to do it now is splitting the data at the database and populating 2 invisible radgrids, and having a 2-part process of exporting their contents.  This seems pretty kludgey to me.

tia,
Mark
Mike
Top achievements
Rank 1
 answered on 13 Jun 2013
6 answers
116 views
I was reviewing the following example and had a couple of questions I was hoping to get help on.
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/threelevel/defaultcs.aspx

Is there a way to filter out special characters in the fields when updating/inserting?

Is there a way to format the Update/Insert and Cancel link buttons?  For example to space them further apart or make the Update/Insert link buttons bold.

Thanks,
Mark
Mark
Top achievements
Rank 1
 answered on 13 Jun 2013
1 answer
243 views
Hi,

I was wondering how I would modify the start and end time ranges in the RadScheduler New Appointment Popup Modal.

If you look at the attached image you will see the start and end time ranges are from 8:00 AM - 5:30 PM.

For the calendar itself I set the WeekView WorkDayStartTime, WorkDayEndTIme, DayStartTime, and DayEndTime accordingly but this does not apply to the popup modal for a new appointment.

Thanks,

Kevin
Kevin
Top achievements
Rank 1
 answered on 13 Jun 2013
2 answers
101 views
Hello people,
Can anyone help me in displaying an image in a nestedview in  a rad gridview.
The problem here is that I save the link of the image in the database and the real image in a folder.
thanks in advance
Edd
Top achievements
Rank 1
 answered on 13 Jun 2013
3 answers
147 views
Hi
   first.I am from china.sorry for my poor english.
   now i have some problem about Radwindow popup on the topmost iframe.
   I  already figure out how to popup on the topmost iframe from this forum:put a iframe to the topmost page,and call window.top.radopen from the child page
   but now,i have a problem like this : when i use mouse  moveing the popup radwindow,the page content 
 under the radwindow turned to blank,when i release the mouse moving,all the backgroud content is fine
  can i fix it?
  thank you again.
Patrick Montgomery
Top achievements
Rank 1
 answered on 13 Jun 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?