Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
79 views
Hello,

I need to accomplish a curious behavior, i want that the event OnNeedDataSource look for the data but dont show it inside the radgrid, i need to query the data just using the radgrid filters, something like these steps:

1) User opens the page
2) Radgrids looks for the data but renders an empty grid (data keeps in memory)
3) user use the grid filters to query data
4) radgrid look for the data in memory to display the matched elements.

The radgrid is actually implemented to show the data at page load, so i will appreaciate if exists a low-effort way to accomplish this.

Thank you.
Princy
Top achievements
Rank 2
 answered on 28 May 2013
7 answers
227 views
Hello,

Please can someone at Telerik confirm if the Visual Style Builder is working?

I've watched the video and I really want to create my own skin. All I want to do is use the Metro skin as a base, and change the light blue (#25a0da) to a dark blue (#003366). I'm changing a color, saving, and then changing a different part. But when I go back to a control that I've altered, it's back to its original color! 

I have also downloaded the theme and expected the contents and my changes are not there either.

I've tried using the Visual Style Builder in IE9 and Chrome 23.

Is it working? Or could someone at Telerik make me a skin for me?

Many thanks,
Matt
Stamo Gochev
Telerik team
 answered on 28 May 2013
2 answers
192 views
My gird is declared like so:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="list.aspx.vb" Inherits="User_list" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" Runat="server"></telerik:RadScriptManager>
        <telerik:RadGrid ID="UserGrid" runat="server" AutoGenerateColumns="False"  CellSpacing="0" GridLines="None" runat="server">
            <MasterTableView>
                <Columns>
                    <telerik:GridBoundColumn AllowFiltering="False" DataField="EmailAddress"
                        FilterControlAltText="Filter column column" HeaderText="User"
                        UniqueName="column">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="FullName"
                        FilterControlAltText="Filter column1 column" HeaderText="Full Name"
                        UniqueName="column1">
                    </telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
    </form>
</body>
</html>

...and I bind to a generic list in the codebehind...

Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
    If Not Page.IsPostBack Then
        Dim Users As List(Of User) = UserManager.GetAll(ApplicationVariables.CurrentUser.InstitutionId)
        UserGrid.DataSource = Users
        UserGrid.DataBind()
    End If
End Sub

My list ("Users") is a list of objects with the following definition:
Public Class User
    Public UserId As Integer = 0
    Public Password As String = String.Empty
    Public EmailAddress As String = String.Empty
    Public InstitutionId As Integer = 0
    Public FullName As String = String.Empty
End Class

There are two users in my source data.  The grid displays the right number of rows, but the cells are empty:
Empty Grid

I'm sure this is an obvious mistake.  Any help is appreciated.
Duane Roelands
Top achievements
Rank 1
 answered on 28 May 2013
1 answer
95 views
Hi,
     I am using Advance Insert and Edit template  in mvc 4 and i want to insert and edit the data into database though webservice on server side.But the Appointment Save and insert button is not working in the custom form.
Please respond as soon as possible.

My code File is like this:-

 <telerik:radscheduler runat="server" id="Scheduler" tooltip="" starteditinginadvancedform="true"
            startinsertinginadvancedform="true" minutesperrow="15" timelabelrowspan="1" hourspaneltimeformat="h:mm tt"
            showfulltime="true" numberofhoveredrows="1" enabledescriptionfield="true" appointmentstylemode="Default"
            selectedview="WeekView" onclientformcreated="OnClientFormCreated" onclientappointmentinserting="OnClientAppointmentInserting"
            onclientappointmentspopulating="OnClientAppointmentsPopulating" onclientappointmentwebserviceinserting="OnClientAppointmentWebServiceInserting"
            onclientdatabound="onSchedulerDataBound" onclientappointmentdoubleclick="hideTooltip"
            onclientappointmentclick="OnClientAppointmentClick" onclientappointmentcontextmenu="appointmentContextMenu"
            onclientappointmentcontextmenuitemclicked="appointmentContextMenuItemClicked"
            advancedform-modal="true">
            <AdvancedForm Modal="true" />
            <AdvancedEditTemplate>
   <div class="rsAdvancedEdit rsAdvancedModal" style="position: relative">
       <div class="rsModalBgTopLeft">
       </div>
       <div class="rsModalBgTopRight">
       </div>
       <div class="rsModalBgBottomLeft">
       </div>
       <div class="rsModalBgBottomRight">
       </div>     
       <div class="rsAdvTitle">          
           <h1 class="rsAdvInnerTitle">
               <%# Container.Appointment.Owner.Localization.AdvancedEditAppointment %></h1>
           <asp:LinkButton runat="server" ID="LinkButton1" CssClass="rsAdvEditClose"
               CommandName="Cancel" CausesValidation="false" ToolTip='<%# Container.Appointment.Owner.Localization.AdvancedClose %>'>
<%# Container.Appointment.Owner.Localization.AdvancedClose%>
           </asp:LinkButton>
       </div>
       <div class="rsAdvContentWrapper">
           <telerik:RadTextBox ID="SubjectTextBox" runat="server" Text='<%# Bind("Subject") %>'
               Label='<%# Container.Appointment.Owner.Localization.AdvancedSubject%>'>
           </telerik:RadTextBox>
           <p>
               Custom content here...
           </p>
           <asp:Panel runat="server" ID="Panel1" CssClass="rsAdvancedSubmitArea">
               <div class="rsAdvButtonWrapper">
                   <asp:LinkButton CommandName="Update" runat="server" ID="LinkButton2" CssClass="rsAdvEditSave">
<span><%# Container.Appointment.Owner.Localization.Save%></span>
                   </asp:LinkButton>
                   <asp:LinkButton runat="server" ID="LinkButton3" CssClass="rsAdvEditCancel" CommandName="Cancel"
                       CausesValidation="false">
<span><%# Container.Appointment.Owner.Localization.Cancel%></span>
                   </asp:LinkButton>
               </div>
           </asp:Panel>
       </div>
   </div>
</AdvancedEditTemplate>
 <AdvancedInsertTemplate>
   <div class="rsAdvancedEdit rsAdvancedModal" style="position: relative">
       <div class="rsModalBgTopLeft">
       </div>
       <div class="rsModalBgTopRight">
       </div>
       <div class="rsModalBgBottomLeft">
       </div>
       <div class="rsModalBgBottomRight">
       </div>     
       <div class="rsAdvTitle">          
           <h1 class="rsAdvInnerTitle">
               <%# Container.Appointment.Owner.Localization.AdvancedNewAppointment %></h1>
           <asp:LinkButton runat="server" ID="AdvancedEditCloseButton" CssClass="rsAdvEditClose"
               CommandName="Cancel" CausesValidation="false" ToolTip='<%# Container.Appointment.Owner.Localization.AdvancedClose %>'>
<%# Container.Appointment.Owner.Localization.AdvancedClose%>
           </asp:LinkButton>
       </div>
        <div class="rsAdvContentWrapper">
           <telerik:RadTextBox ID="SubjectTextBox" Width="100%" runat="server" Text='<%# Bind("Subject") %>' 
               Label='<%# Container.Appointment.Owner.Localization.AdvancedSubject%>'>
           </telerik:RadTextBox>
           <p>
               Custom content here...
           </p>
           <asp:Panel runat="server" ID="ButtonsPanel" CssClass="rsAdvancedSubmitArea">
               <div class="rsAdvButtonWrapper">
                   <asp:LinkButton CommandName="Update" runat="server" ID="UpdateButton" CssClass="rsAdvEditSave">
<span><%# Container.Appointment.Owner.Localization.Save%></span>
                   </asp:LinkButton>
                   <asp:LinkButton runat="server" ID="CancelButton" CssClass="rsAdvEditCancel" CommandName="Cancel"
                       CausesValidation="false">
<span><%# Container.Appointment.Owner.Localization.Cancel%></span>
                   </asp:LinkButton>
               </div>
           </asp:Panel>
       </div>
   </div>
</AdvancedInsertTemplate>
  <AppointmentContextMenus>
                    <telerik:RadSchedulerContextMenu runat="server" ID="SchedulerAppointmentContextMenu">
                        <Items>
                            <telerik:RadMenuItem Text="Check In" Value="IN">
                            </telerik:RadMenuItem>
                            <telerik:RadMenuItem IsSeparator="True">
                            </telerik:RadMenuItem>
                            <telerik:RadMenuItem Text="Check Out" Value="OUT">
                            </telerik:RadMenuItem>
                             <telerik:RadMenuItem IsSeparator="True">
                            </telerik:RadMenuItem>
                            <telerik:RadMenuItem Text="No Show" Value="NS">
                            </telerik:RadMenuItem>
                        </Items>
                    </telerik:RadSchedulerContextMenu>
            </AppointmentContextMenus>
            <WebServiceSettings Path="../../AppointmentWebService.asmx"/>
              <ResourceStyles>
                    <telerik:ResourceStyleMapping Type="Appointment Type" Text="New Consultant" BackColor="skyBlue" />
                    <telerik:ResourceStyleMapping Type="Appointment Type" Text="Surgery" BackColor="Orange" />
                    <telerik:ResourceStyleMapping Type="Appointment Type" Text="Follow Up" BackColor="Green" />
                    <telerik:ResourceStyleMapping Type="Status" Text="No Show"  BorderColor="Black" />
                    <telerik:ResourceStyleMapping Type="Status" Text="In"  BorderColor="Cyan" />
                    <telerik:ResourceStyleMapping Type="Status" Text="Out"  BorderColor="DarkRed" />

              </ResourceStyles>
</telerik:radscheduler>
Plamen
Telerik team
 answered on 28 May 2013
1 answer
191 views
See attached...

This is what my gauge looks like in IE10 with compatibility mode off. It looks just fine when compatibility mode is on, but this has an adverse impact on other parts of my site.

Gauges in the same web page work just fine - the basic details of my web page are:
- The attached gauge is in the "header" part of my page, showing a target value. It is contained within a HTML table cell
- The other gauges are within a RadTabStrip/RadPageView within a HTML table

From what I can see, there should be no difference. Any ideas?

My page code looks like this:

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Demo.aspx.vb" Inherits="WebApp.Demo" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
    <link href="../StyleSheet.css" rel="Stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
        <center>
            <div class="pageBanner"><asp:Label runat="server" ID="lblHeading" CssClass="pageHeader" text="Demo" /></div>
            <asp:Label runat="server" ID="lblID" Visible="false" />
            <asp:Label runat="server" ID="lblValidation" Visible="false" CssClass="validation" />
            <table cellpadding="3" width="900px" border="0">
                <tr valign="top">
                    <td style="width: 33%">
 
                    </td>
                    <td style="width: 33%">
                        <asp:Button ID="btnSave" runat="server" Text="Save" />   
                        <asp:Button ID="btnExit" runat="server" Text="Exit" />  
                        <asp:CheckBox runat="server" ID="chkAccepted" Text="Accepted" />
                    </td>
                    <td rowspan="2" style="width: 16%">
                        <asp:Label runat="server" ID="lblTgtDateLabel" text="Target Date" Font-Underline="true" Font-Bold="true" /><br />
                        <asp:Label runat="server" ID="lblTgtDate" text="" />
                    </td>
                    <td rowspan="2" style="width: 17%">
                        <asp:Label runat="server" ID="lblTgtRatingLabel" text="Target Rating" Font-Underline="true" Font-Bold="true" /><br />
                        <telerik:RadRadialGauge ID="gaugeTarget" runat="server" Height="80px" Width="80px">
                            <Pointer Color="0, 0, 0"   >
                                <Cap Size=".1" />
                            </Pointer>
                        </telerik:RadRadialGauge>
                    </td>                   
                </tr>
                <tr align="left" valign="top">
                    <td colspan="2">
                        <asp:Label runat="server" ID="lblNameLabel" text="Name" Font-Bold="true" /><br />
                        <asp:Label runat="server" ID="lblName" text="" width="300px" CssClass="fakeTextBox" />
                    </td>
                </tr>
                <tr align="left" valign="top">
                    <td colspan="4">
                        <asp:Label runat="server" ID="lblInstructions" CssClass="pageInstructions" text="Instructions" />
                    </td>
                </tr>
                <tr align="left" valign="top">
                    <td>
                        <asp:Label runat="server" ID="lblSelectedPlaceLabel" text="Selected Place" Font-Underline="true" />
                    </td>
                    <td colspan="3" align="center">
                        <asp:Label runat="server" ID="lblotherPlacesLabel" text="Other applicable Places" Font-Underline="true" />
                    </td>
                </tr>
                <tr align="left" valign="top">
                    <td>
                        <asp:Label runat="server" ID="lblSelectedPlace" text="" />
                    </td>
                    <td colspan="3" align="center">
                        <asp:CheckBoxList runat="server" ID="chkPlaceList"></asp:CheckBoxList>
                    </td>
                </tr>
            </table>
            <table cellpadding="3" width="900px" border="0">
                <tr align="left" valign="top">
                    <td>
                        <telerik:RadTabStrip runat="server" ID="ts1" SelectedIndex="0" MultiPageID="mp1">
                            <Tabs>
                                <telerik:RadTab Text="Page 1" Value="calc" PageViewID="pv1" />
                                <telerik:RadTab Text="Page 2" Value="element" PageViewID="pv2" />
                                <telerik:RadTab Text="Page 3" Value="control" PageViewID="pv3" />
                            </Tabs>
                        </telerik:RadTabStrip>
                        <telerik:RadMultiPage runat="server" ID="mp1" SelectedIndex="0">
                            <telerik:RadPageView runat="server" ID="pv1">
                                <table width="95%">
                                    <tr>
                                        <td colspan="3"><asp:Label runat="server" ID="Label1" Text="Label1" Font-Bold="true" /></td>
                                        <td rowspan="3">
                                            <telerik:RadRadialGauge ID="gauge1" runat="server" Height="80px" Width="80px">
                                                <Pointer Color="0, 0, 0"   >
                                                    <Cap Size=".1" />
                                                </Pointer>
                                            </telerik:RadRadialGauge>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td><asp:Label runat="server" ID="lblLabel2" Text="Label2"/></td>
                                        <td><asp:Label runat="server" ID="lblLabel3" Text="Label3"/></td>
                                        <td><asp:Label runat="server" ID="lblLabel4" Text="Label4"/></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <telerik:RadSlider runat="server" ID="slider1" Orientation="Horizontal" Width="250" Height="40"
                                                TrackPosition="TopLeft" ItemType="Item" EnableServerSideRendering="true" ShowDecreaseHandle="false" ShowIncreaseHandle="false" />
                                        </td>
                                        <td>
                                            <telerik:RadSlider runat="server" ID="slider2" Orientation="Horizontal" Width="250" Height="40"
                                                TrackPosition="TopLeft" ItemType="Item" EnableServerSideRendering="true" ShowDecreaseHandle="false" ShowIncreaseHandle="false" />
                                        </td>
                                        <td><telerik:RadNumericTextBox runat="server" ID="Textbox1" width="80px" /></td>
                                    </tr>
                                    <tr>
                                        <td colspan="3"><asp:Label runat="server" ID="lblLabel5" Text="Label5" Font-Bold="true" /></td>
                                        <td rowspan="3">
                                            <telerik:RadRadialGauge ID="gauge2" runat="server" Height="80px" Width="80px">
                                                <Pointer Color="0, 0, 0"   >
                                                    <Cap Size=".1" />
                                                </Pointer>
                                            </telerik:RadRadialGauge>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td><asp:Label runat="server" ID="lblLabel6" Text="Label6"/></td>
                                        <td><asp:Label runat="server" ID="lblLabel7" Text="Label7"/></td>
                                        <td><asp:Label runat="server" ID="lblLabel8" Text="Label8"/></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <telerik:RadSlider runat="server" ID="slider3" Orientation="Horizontal" Width="250" Height="40"
                                                TrackPosition="TopLeft" ItemType="Item" EnableServerSideRendering="true" ShowDecreaseHandle="false" ShowIncreaseHandle="false" />
                                        </td>
                                        <td>
                                            <telerik:RadSlider runat="server" ID="slider4" Orientation="Horizontal" Width="250" Height="40"
                                                TrackPosition="TopLeft" ItemType="Item" EnableServerSideRendering="true" ShowDecreaseHandle="false" ShowIncreaseHandle="false" />
                                        </td>
                                        <td><telerik:RadNumericTextBox runat="server" ID="Textbox2" width="80px" /></td>
                                    </tr>
                                    <tr>
                                        <td colspan="4">
                                            <telerik:RadTextBox runat="server" ID="txtComment" MaxLength="1000" Width="550px" TextMode="MultiLine" Rows="5" Wrap="true" />
                                        </td>
                                    </tr>
                                </table>
                            </telerik:RadPageView>
                            <telerik:RadPageView runat="server" ID="pv2">
 
                            </telerik:RadPageView>
                            <telerik:RadPageView runat="server" ID="pv3">
 
                            </telerik:RadPageView>
                        </telerik:RadMultiPage>
                    </td>
                </tr>
            </table>
 
        </center>
    </form>
</body>
</html>

Danail Vasilev
Telerik team
 answered on 28 May 2013
1 answer
165 views
Hi, I am using the Web20 skin in our application and I notice the Select button has a different render when the mouse is over the button than other buttons using the same skin so the behavior doesn't look professional.

I looked to hide the button and have my user interface but is seem when I look other thread in this forum I cannot start the mechanism to select a file from jaavscript.

Can you fix that please?

Note: I also notice the input box is always empty (in the online demos, in the demos installed locally and in my web application). So I decide to remove it.
Hristo Valyavicharski
Telerik team
 answered on 28 May 2013
1 answer
90 views
Where does the downloader put the files? i need to transfer them.

Thanks!
Hristo Valyavicharski
Telerik team
 answered on 28 May 2013
6 answers
248 views
Hi Telerik,

I have a gridview with 2 cascading radComboBox inside.
I'm having some problems to DataBind and Populate these radComboBox in Forms Edit Mode In Place.
I turn autopostback to true and call the SelectedIndexChanged method on the first radComboBox. After finishing the event my radcombobox is unchanged.
I use LinqDataSource to populate my grid and my radcombobox.

How can i achieve this?

Many Thanks

Julien
Antonio Stoilkov
Telerik team
 answered on 28 May 2013
7 answers
438 views
Hi,

Is it possible to increment the value of the 'radnumerictextbox' when pressing the up arrow in the control?

By default it increments by 1, is there a way to change this?

Thank you,
Lahiru
Shinu
Top achievements
Rank 2
 answered on 28 May 2013
1 answer
545 views
I have a programmatically created calculated column that doesn't appear when exporting to Excel (ExcelML). I've found examples on how to add totals for rows but not for columns. Is it possible to add a calculated column or Excel formula (like =sum()) to a column?

BTW, I'm using Q1 2013.

Thanks.
Daniel
Telerik team
 answered on 28 May 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?