Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
152 views
the default view,  such as
  • id       name 
  • 1          tom
  • 2          jack

but when I user the custom sort,the radgrid view become follows:

  • id       name 
  • 1          tom            system.data.datarowview     system.data.datarowview
  • 2          jack           system.data.datarowview       system.data.datarowview
when I sort one time,the view will add two columns,who can help me?
the source code:
protected void Page_Init(object sender, EventArgs e)
      {
              GridBoundColumn idColumn = new GridBoundColumn();
              idColumn.DataField = "Id";
              idColumn.Display = true;
              idColumn.SortExpression = "Id";
              idColumn.UniqueName = "Id";
              idColumn.HeaderText = "Id";
              RadGrid1.MasterTableView.Columns.Add(idColumn);
          
              GridBoundColumn realNameColumn = new GridBoundColumn();
              realNameColumn.DataField = "RealName";
              realNameColumn.Display = true;
              realNameColumn.HeaderText = "name";
              realNameColumn.UniqueName = "RealName";
              realNameColumn.SortExpression = "RealName";
              RadGrid1.MasterTableView.Columns.Add(realNameColumn);
 
      }
 
protected void Page_Load(object sender, EventArgs e)
      {
              IDAL.IBaseRepository<Model.HS_Docter> doctors = new DAl.BaseRepository<Model.HS_Docter>();
              RadGrid1.DataSource = doctors.GetDataTable("select * from Hs_doctor");  
      }
 
protected void RadGrid1_SortCommand(object sender, GridSortCommandEventArgs e)
      {
 
 
          IDAL.IBaseRepository<Model.HS_Docter> doctors = new DAl.BaseRepository<Model.HS_Docter>();
          switch (e.OldSortOrder)
          {
               
              case GridSortOrder.Ascending:
               
                  e.Item.OwnerTableView.DataSource = doctors.GetDataTable("select * from hs_doctor").Select("", e.CommandArgument.ToString() + " asc");
                  break;
              case GridSortOrder.Descending:
                  e.Item.OwnerTableView.DataSource = doctors.GetDataTable("select * from  hs_doctor" ).Select("", e.CommandArgument.ToString() + " desc"); ;
                
              break;
          }
         
          
 
         
      }

Princy
Top achievements
Rank 2
 answered on 08 Nov 2013
1 answer
117 views
Hello,

I would like to change an image src to the image that i click on in radrotator.

<img id="propImg" runat="server" src="" />
 
<telerik:RadRotator ID="thumbRotator" runat="server" BackColor="Transparent" OnItemClick="viewImage"  EnableRandomOrder="true" BorderStyle="NotSet" BorderWidth="0" BorderColor="Transparent"
PauseOnMouseOver="true" RotatorType="CoverFlowButtons" Width="430" Height="180" ItemHeight="190px" ItemWidth="200px" FrameDuration="1"  ScrollDirection="Left, Right" Skin="MetroTouch">
                    <ItemTemplate>
                        <asp:Image ID="myImage" Width="190px" Height="180px" runat="server" ImageUrl='<%# Container.DataItem %>' AlternateText='<%# VirtualPathUtility.GetFileName(Container.DataItem.ToString()) %>' />
                    </ItemTemplate>
                 </telerik:RadRotator>


Would appreciate some help!

Thanks!
Slav
Telerik team
 answered on 08 Nov 2013
4 answers
374 views
Hi,

I am trying the new version 2013 Q1 (2013.1.220) and have found that Menu does not show items on mouse hover with IE 10. It only shows when clicking (just like when setting ClickToOpen="true") .You can check the demo on Telerik site here.

Another problem is the class .rmExpandDown (and .rmExpandTop...) is by default set to background: none repeat scroll 0 center transparent, which causes the arrow does not show even the menu item has sub items.

.RadMenu_Metro .rmRootLink .rmExpandTop, .RadMenu_Metro .rmRootLink .rmExpandDown
{
    background: none repeat scroll 0 center transparent;
}

Kate
Telerik team
 answered on 08 Nov 2013
1 answer
72 views

 

Hi,
When I try to save formatted text from MS Word I’m getting paragraph tags are combined with class elements (Highlighted below). Please guide me to resolve the issue.

 

'<?xml:namespace prefix = "pclass="MsoListParagraph"style="margin" /><pclass="MsoListParagraph"style="margin:0in0in0pt0.5in;text-indent:-0.25in;mso-list:l0level1lfo1;"><?xml:namespace prefix = "spanstyle="font-size" /><spanstyle="font-size:16px;color:#1f497d;">

<P class=MsoListParagraph style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"><FONT color=#1f497d><FONT size=3>capabilities that serves as the tool for&nbsp;budgeting all o <BR><BR>Current December nbsp;</FONT></FONT></spanstyle="font-size:16px;color:#1f497d;">

</pclass="MsoListParagraph"style="margin:0in0in0pt0.5in;text-indent:-0.25in;mso-list:l0level1lfo1;"></P>'

Ianko
Telerik team
 answered on 08 Nov 2013
9 answers
252 views
Hello Community,

i use the Telerik radasyncupload control like this:

Web.Config
<appSettings>
  <add key="Telerik.AsyncUpload.TemporaryFolder" value="~/App_Data/RadUploadTemp" />
</appSettings>

asp.net
<telerik:RadAsyncUpload ID="rauIconUpload" runat="server" ChunkSize="0" Localization-Cancel="Löschen" Localization-Remove="Entfernen" Localization-Select="Auswählen"
  Culture="de-DE" Skin="MetroTouch" TargetFolder="img/icons" MaxFileInputsCount="1">
</telerik:RadAsyncUpload>
<telerik:RadButton ID="rbtnIconUpload" runat="server" Text="Speichern" Skin="MetroTouch"></telerik:RadButton>

vb.net
Private Sub rbtnIconUpload_Click(sender As Object, e As EventArgs) Handles rbtnIconUpload.Click
 
    If rtxtIconBezeichnung.Text = String.Empty Or rtxtIconBezeichnung.Text = Nothing Or CHKValidation(rtxtIconBezeichnung.Text) = False Then
        rnfUngueltigeEingabe.Visible = True
    Else
        Try
            For Each f As UploadedFile In rauIconUpload.UploadedFiles
                Dim img As New System.Drawing.Bitmap(f.InputStream)
                Dim h As Integer = img.Height
                Dim w As Integer = img.Width
                img.Dispose()
 
                Dim fileName As String = f.GetName()
                IconPfad = "~/img/icons/" & fileName
 
                If w = 16 And h = 16 Then
                    IconSize = "16x16"
                ElseIf w = 32 And h = 32 Then
                    IconSize = "32x32"
                Else
                    rnfIconNichtErzeugt.Visible = True
                    Exit For
                End If
 
                IconErzeugt = Datenzugriff.CRTNeuesIcon(rtxtIconBezeichnung.Text, IconPfad, rcbIconGruppe.SelectedValue, IconSize)
                If IconErzeugt = True Then
                    rnfIconErzeugt.Visible = True
                    Page.ClientScript.RegisterClientScriptBlock([GetType](), "CloseScript", "redirectParentPage('IconVerwaltung.aspx')", True)
                Else
                    rnfIconNichtErzeugt.Visible = True
                End If
            Next
        Catch ex As Exception
            rnfIconNichtErzeugt.Visible = True
        End Try
    End If
End Sub

If i try to use InputStream i get a filenotfoundexeption. I added a Screanshot of this error.

So, what i'm doing wrong?

Thank you for reading.
Daniel
Top achievements
Rank 1
 answered on 08 Nov 2013
4 answers
108 views

On page load I am getting two errors:
 The server method GetResources / GetAppointments Failed.
Also if I try to insert I get "InsertAppointment" failed.

I am using .NET MVC 4
The Scheduler is being put on the page via a partial control.

 

<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
 
 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
 
 
<form id="SchedulerForm" runat="server">
 
 
 <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">
 
 
 
</telerik:RadStyleSheetManager>
 
  
 
<asp:ScriptManager runat="server" ID="sm1"></asp:ScriptManager>
 
  
 
<telerik:RadAjaxManager ID="RadAjaxManager" runat="server">
 
 
 
<AjaxSettings>
 
 
 
<telerik:AjaxSetting AjaxControlID="Scheduler">
 
 
 
<UpdatedControls>
 
 
 
<telerik:AjaxUpdatedControl ControlID="Scheduler" />
 
 
 
</UpdatedControls>
 
 
 
</telerik:AjaxSetting>
 
 
 
</AjaxSettings>
 
 
 
</telerik:RadAjaxManager>
 
 
 
<telerik:RadScheduler runat="server" ID="Scheduler"
 
 
 
ClientIDMode="Static"
 
 
 
StartInsertingInAdvancedForm="True"
 
 
 
AllowEdit="true" AllowInsert="true"
 
 
 
>
 
 
 
 
 
 <WebServiceSettings path="/Models/SchedulerWcfService.svc" UseHttpGet="true" ResourcePopulationMode="ClientSide"/>
 
 
 
<AdvancedForm Modal="true" />
 
 
 
</telerik:RadScheduler
 
 
 
>

 

 



The path to the webservice works.

 

<system.serviceModel>
 
 
 
 <bindings>
 
 
 
 <basicHttpBinding>
 
 
 
 <binding name="BasicHttpEndpointBinding">
 
 
 
 <security mode="TransportCredentialOnly">
 
 
 
 <transport clientCredentialType="Windows" />
 
 
 
 </security>
 
 
 
 </binding>
 
 
 
 </basicHttpBinding>
 
 
 
 </bindings>
 
 
 
 <services>
 
 
 
 <service behaviorConfiguration="AuthenticationServiceTypeBehaviors"
 
 
 
name="DOTTReportsWebViewer.Models.SchedulerWcfService">
 
 
 
 <endpoint binding="basicHttpBinding" bindingConfiguration="BasicHttpEndpointBinding"
 
 
 
name="BasicHttpEndpoint" contract="DOTTReportsWebViewer.Models.SchedulerWcfService" />
 
 
 
 </service>
 
 
 
 </services>
 
  
 
 <behaviors>
 
 
 
 <serviceBehaviors>
 
 
 
 <behavior name="AuthenticationServiceTypeBehaviors">
 
 
 
 <serviceMetadata httpGetEnabled="true" />
 
 
 
 <serviceDebug includeExceptionDetailInFaults="false" />
 
 
 
 </behavior>
 
  
 
 </serviceBehaviors>
 
 
 
 </behaviors>
 
  
 
 </system.serviceModel>
 
 
 
 
 
 
 
  
 
</form
 
 
 
>

 

 

 

 

 

If I change :

<WebServiceSettings path="/Models/SchedulerWcfService.svc" UseHttpGet="true" ResourcePopulationMode

 

 

="ClientSide"/>
to:

<WebServiceSettings path="/Models/SchedulerWcfService.svc" UseHttpGet="true" ResourcePopulationMode="ServerSide"/>

I get a 401 error

Bozhidar
Telerik team
 answered on 08 Nov 2013
1 answer
77 views
I have noticed a strange behavior with the autocomplete box. I have an autocompletebox bound to an asp sql datasource and I have set an empty message to it. If I copy some text and paste into the input, the text gets added to the empty message.

Please suggest a solution.
Josephine
 
Shinu
Top achievements
Rank 2
 answered on 08 Nov 2013
1 answer
78 views
Telerik Support:

Can somebody help me to point out few shared web host/partners that supports radcontrols and offer full trust level for running a radcontrols web application?

Thanks
Freddy
Shinu
Top achievements
Rank 2
 answered on 08 Nov 2013
2 answers
156 views

I have switched to using absolute positioning via CSS classes for most of my page layouts.


I have a problem when working with various control wizards, more likely an issue with VS 2012, but I think other Telerik customers may have the same problem and hopefully know the solution. See attachment for an example of the HTML Designer window.



In the example, the menu appears at the top, as expected. The grid jammed-up against it, and attempting to select the Item Editor just selects the master page zone.



Previously with flow layout, the controls were spaced so that access to the item editor / wizard buttons were easy to locate and click.

Tomica
Top achievements
Rank 2
 answered on 07 Nov 2013
5 answers
410 views
Hello,

I am working on this telerik radchart and I am having some issues to customize the Y axis. I would like to set the scale manually from 0 to 110% of biggest value.
So I have
radchart.PlotArea.YAxis.AutoScale = false;<br>radchart.PlotArea.YAxis.MinValue = 0;<br>radchart.PlotArea.YAxis.MaxValue = (int) ((double)_maxAmount * 1.1);<br>radchart.PlotArea.YAxis.Step = 500;

        
The result is that my Y labels values don't match the major tick (see attached picture).

Could you please tell me what is not going right?
Thank you.
Greg
Top achievements
Rank 1
 answered on 07 Nov 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?