Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
188 views

How can I use the CSS Skin File to style only the first level nodes of the TreeView?  I have tried styling rtTop and rtFirst, but those only style the first node of each level of the first branch or the very first node of the whole tree.  In addition, how can I have the lines show only on the lower level nodes and NOT for the first level?

I've attached two images to illustrate my request.  The first is the TreeView as it appears by default and the second is how I would like the TreeView to be styled (first level nodes that have a background style and no lines connecting them).

Any help with this would be greatly appreciated.

Thank you!

Bre
Top achievements
Rank 1
 answered on 26 Jun 2013
1 answer
141 views
Hi,

Is it possible to make the filtering of the RadSearchBox case insensitive?
The results in my searchbox are all uppercase, but the user usually types in lowercase.

So if the user types "g101", there's a result "G101". When selecting the resultitem I get the resultitem in the postback. (e.Value is filled)
When typing "g101" and directly pushing ENTER only the e.Text is filled, not e.Value.

See attachment for example.

Can anyone help me with this?
Plamen
Telerik team
 answered on 26 Jun 2013
1 answer
99 views
Hi guys
I have an issue with StripFormattingOnPaste functionality.
Setting StripFormattingOnPaste = AllExceptNewLine when paste html content with   tag inside these tag are not removed.

If I use "Past plain text button" all tag   are removed.

StripFormattingOnPaste = AllExceptNewLine and "Past plain text button" have different results, it is possible to set "Past plain text" as default behavior when paste content?

Is possible delete   when past content? 

For testing I have used this page 
Thanks.
Ianko
Telerik team
 answered on 26 Jun 2013
3 answers
88 views
I have created a dynamic hierarchical grid bind with dataset.
I would like to have provision for Add/Update/Delete. I could not do that. even i don't see any demos for the same to my knowledge that is not doable.
Is there a way to do? please redirect me.

Thanks in Advance.
Andrey
Telerik team
 answered on 26 Jun 2013
1 answer
103 views
Hi,

I am using Rad Grid with virual paging to load large data. My concern is I have a Rad Combobox in one column. When user selects a Item in a page and accidentally scrolls down , next page is loaded and he can not see the item which he is working. Could any one suggest solution for this case

Thanks & Regards
Himagiri
Viktor Tachev
Telerik team
 answered on 26 Jun 2013
1 answer
104 views
for example, my site structure as follow:

1. Home
2. Employee
2.1 Employee Details
3. Admin
    3.1 User
        3.1.1 Access Right
    3.2 XXXX

How can i just display the Path "Admin | User | Access Right" when i visit the 3.1.1 Access Right page ?
Thanks
Kate
Telerik team
 answered on 26 Jun 2013
9 answers
617 views
I have used custom paging using NeedDataSource but i see a very strange behavior of my RadGrid. I have about 800 records and i am displaying 10 records per page. Also, there is a search mechanism at the top using that user can search records ( i am not using internal filters). Everything works fine. I am taking my search parameters in my radgvRecords_NeedDataSource function and its being passed properly with RowIndexNum and MaximumRows parameters which handles paging. 

I see first 10 records on page 1. When i click page 2, i just see 1 record. I checked my stored proc. It is returning 11 records when i pass RowIndexNum =10 and MaximumRows =10. So data is coming perfectly from database but RadGrid only displays the last row from this result set. I see data going through my BAL to my ASPX.CS page. The other strange part is when i hit page 3,4,5,6,7,... i see data properly without any problem. Its just on page 2.  I am pasting my bidding code here.

 
protected void radgvRecords_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
      {
          // get search paramters
          string fname = txtPatientFName.Text.Trim();
          string lname = txtPatientLName.Text.Trim();
          string sDate = txtStartDate.Text.Trim();
          string eDate = txtEndDate.Text.Trim();
          string email = txtEmail.Text.Trim();
          int docid = Int32.Parse(ddlDoctors.SelectedValue.ToString());
          int clinicId = Int32.Parse(Session["cid"].ToString());
          bool status = false;
          // balance search parameters
          if (sDate.Trim() == null || sDate.Equals(""))
          {
              sDate = System.Data.SqlTypes.SqlDateTime.MinValue.Value.ToShortDateString();
          }
          if (eDate.Trim() == null || eDate.Equals(""))
          {
              eDate = DateTime.Now.ToShortDateString();
          }
          objFactory fac = new objFactory();
          IPrescription objPres = fac.getPrescriptionObject();
          VirtualItemCount = objPres.getTotalCountForSearchResult(sDate, eDate, fname, lname, docid, email, clinicId);
          radgvRecords.MasterTableView.VirtualItemCount = VirtualItemCount;
          radgvRecords.VirtualItemCount = VirtualItemCount ;
    
          int startRowIndex   = ((ShouldApplySortFilterOrGroup())? 0 : radgvRecords.CurrentPageIndex * radgvRecords.PageSize);
          int maximumRows = ((ShouldApplySortFilterOrGroup())? VirtualItemCount: radgvRecords.PageSize) ;
    
        
          List<IPrescription> pList = objPres.searchPrescriptionCustomPaging(sDate, eDate, fname, lname, docid, email, clinicId, startRowIndex, maximumRows);
          radgvRecords.DataSource = pList;
 
      }
Pavlina
Telerik team
 answered on 26 Jun 2013
1 answer
238 views

my code works if i select only one file to upload.
but it will return error if i select more than one files.

    <telerik:RadAsyncUpload runat="server" ID="AsyncUpload_Attachment" OnFileUploaded="AsyncUpload_Attachment_FileUploaded"
     PostbackTriggers="RadButton1"                  
     InitialFileInputsCount="1" MaxFileSize="10240000"
     MultipleFileSelection="Automatic"/>
 
     <telerik:RadButton runat="server" ID="RadButton1" Text="Submit your file"
OnClick="RadButton1_Click"  AutoPostBack="false" OnClientClicked="updatePictureAndInfo" Skin="Default" />
 
 <script type="text/javascript">
          //<![CDATA[
     var $ = $telerik.$;
 
     function onClientFileUploaded(sender, args) {
     }
 
     function updatePictureAndInfo() {
         __doPostBack('RadButton1', '');
     }
         //]]>
         </script>

Code Behind

Protected Sub AsyncUpload_Attachment_FileUploaded(ByVal sender As Object, ByVal e As Telerik.Web.UI.FileUploadedEventArgs)
 
    If Me.AsyncUpload_Attachment.UploadedFiles.Count > 0 Then
        PopulateUploadedFilesList(AsyncUpload_Attachment)
    End If
 
End Sub

Private Sub PopulateUploadedFilesList(ByVal uf As RadAsyncUpload)
    Dim filePath As String = System.Configuration.ConfigurationManager.AppSettings("AttachmentPath").ToString()
    Dim fileName As String = ""
    Dim sessionid As Integer = 0
 
    Dim dc As New dcLRDBDataContext
 
    If Not IsNothing(HttpContext.Current.Session("SessionID")) Then
        sessionid = HttpContext.Current.Session("SessionID").ToString
 
    ElseIf Not IsNothing(HttpContext.Current.Session("tmpSID")) Then
        sessionid = HttpContext.Current.Session("tmpSID").ToString
 
    Else
        Dim rnd As New Random()
        Dim tmpSID As Integer 'allow 10 digit only
        tmpSID = rnd.Next(1000, 9999) & DateTime.Now.Hour & DateTime.Now.Minute
        HttpContext.Current.Session("tmpSID") = tmpSID
        sessionid = tmpSID
    End If
 
    For Each file As UploadedFile In uf.UploadedFiles
        Dim uploadedFileInfo As New UploadedFileInfo(file)
        UploadedFiles.Add(uploadedFileInfo)
 
        Dim newRecord1 As New db_Attachment
        dc.db_Attachments.InsertOnSubmit(newRecord1)
 
        newRecord1.FileName = sessionid & "_" & file.FileName
        newRecord1.FileSize = file.ContentLength / 1024
 
        newRecord1.UploadBy = HttpContext.Current.Session("UserID")
        newRecord1.UploadDate = DateTime.Now
        newRecord1.LastUpdatedOn = DateTime.Now
        newRecord1.LastUpdatedBy = HttpContext.Current.Session("UserID")
 
        dc.SubmitChanges()
 
        file.SaveAs(filePath & sessionid & "_" & file.FileName)
 
    Next
    dc.Dispose()
End Sub

it return error when doing th "file.saveAs...." code












Shinu
Top achievements
Rank 2
 answered on 26 Jun 2013
2 answers
251 views
Hi,

I am binding a RadDropDownTree to a Generic List (ListofT) as shown in the example at http://www.telerik.com/help/aspnet-ajax/dropdowntree-databinding-array.html, but the control's SelectedValue property is always empty. Is there a way to get the ID of the selected node from the control? Or is there something different I have to do make the SelectedValue property take on the ID property in the example?

Thanks.

Charles
Charles
Top achievements
Rank 1
 answered on 26 Jun 2013
1 answer
251 views
Hi, i try tu put a loading panel on a masterpage, but return me a error:

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" MinDisplayTime="0" Transparency="0" >
</telerik:RadAjaxLoadingPanel>
<telerik:RadAjaxPanel runat="server" ID="loadPanel" HorizontalAlign="NotSet">
      <asp:ContentPlaceHolder runat="server" ID="MainContent" />
</telerik:RadAjaxPanel>

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

Maria Ilieva
Telerik team
 answered on 26 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?