Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
86 views
Hi,
I've a controller which passes data to the strongly typed view of type IEnumerable. Here, i used a blank template and put my own RadGrid. I've successfully bind the rad grid with the model.
I've added a hyper link column and the purpose is, when i click on hyperlink, the id of the clicked row will be pass to another view. Have a look at below:

<telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumn column" UniqueName="TemplateColumn">
    <ItemTemplate>
            <asp:HyperLink ID="HyperLink1" runat="server" Text="View"
                            NavigateUrl='<%# Url.Action("Inspector","Vessel",new{id=Model.Id}) %>'>
        </asp:HyperLink>
        </ItemTemplate>
</telerik:GridTemplateColumn>


When i run the application, error appears. I just want to know how to achieve the above defined functionality. I know i can't use "Modal.Id".. What is the other way?

Thanks
Ovais
Marin
Telerik team
 answered on 05 Jul 2013
3 answers
125 views
Hi,

I created many webparts for sharepoint using telerik and with all I have the same ajax "problem".
I will take an example
I have a webpart that contain a Tabstrip with many tabs. After the page is loaded and the tabstrip is shown, if I click another tab, a full page refresh occurs.Then if I press on another tab, the ajax is kicking in and only the tabstrip is refreshed.

The same for other controls, radgrid for example.

I used the both RadAjaxManager and RadAjaxPanel (not on the same page of course, but in different programs) and I have the same behaviour.

What I'm doing  wrong ?

Than you,
Hans
Maria Ilieva
Telerik team
 answered on 05 Jul 2013
1 answer
129 views
Dear Team,

      We are using Telerik.Web.Design.dll and Telerik.Web.UI.dll Version: 2010.3.1109.40 of Telerik ASP.NET AJAX Controls in our application. 
  
      In one of our page, we are using the Rad editor control, where we have flash manager control tool to add and insert flash files(.swf) to the page.

The problem which we are facing at present is, When we click on flash manager, window is displayed but all the menu-icons in flash manager is not enabled(not working). I have shared the screenshot, please have a look.

       I have gone through some of the article in Telerik forum and people had suggested us to update web config handlers and other stuff. Nothing is working out.

It would be very great if I receive any communication or input to resolve this problem. Since it’s quite urgent and looks like very annoying for client.

Thanks & Regards,
Dheeraj
Rumen
Telerik team
 answered on 05 Jul 2013
2 answers
82 views
hi everybody,
I tried to make a hyperlink in gridbound template but fail..
any suggestion?
my link sholud like this : http://10.x.x.xxx:8080/<fieldname>/ITDepartment/<fieldname

NavigateUrl='<%# String.Format("http://10.x.xx.xx:8080/Databinder.Eval(Container.DataItem,"YEAR")/ITDepartment/Databinder.Eval(Container.DataItem,NAME) %>'

My database table
 
ID | YEAR |FILENAME
1 | 2011 | ALPHA.DOC
2 | 2011 | BETA.PDF
3 |2012 | TEST.DOCX


if I click the first ID the link should be http://10.x.x.xxx:8080/2011/ITDepartment/ALPHA.DOC and so on.. where the changes is fieldname1 and fieldname2.
Please guide me about this.

Thanks.
CHE PAK
Top achievements
Rank 1
 answered on 05 Jul 2013
1 answer
97 views
Hi All,

I attempted to install the new RadPivotGrid and downloaded the entire collection. In terms of running the application in VS 2008 I came across the following error message. I have Microsoft SQL Server Management Studio    10.50.1600.1.

The database 'C:\PROGRAM FILES (X86)\TELERIK\RADCONTROLS FOR ASP.NET AJAX Q2 2013\LIVE DEMOS\APP_DATA\TELERIK.MDF' cannot be opened because it is version 655. This server supports version 612 and earlier. A downgrade path is not supported.
Could not open new database 'C:\PROGRAM FILES (X86)\TELERIK\RADCONTROLS FOR ASP.NET AJAX Q2 2013\LIVE DEMOS\APP_DATA\TELERIK.MDF'. CREATE DATABASE is aborted.

An attempt to attach an auto-named database for file C:\Program Files (x86)\Telerik\RadControls for ASP.NET AJAX Q2 2013\Live Demos\App_Data\Telerik.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
Maria Ilieva
Telerik team
 answered on 05 Jul 2013
1 answer
90 views
Greetings,
the filter rad control is a very powerful control, yet it's not intuitive for the "not so savvy" users.
Is it possible to customize the control to be able to create a look/behavior similar to the one in the attached images.
Any Idea or help code will be appreciated.
Please help
Viktor Tachev
Telerik team
 answered on 05 Jul 2013
2 answers
59 views
Hi everybody,

I would like to know if it is possible to set a JS function of a tileList in code-behind (SelectionStateChanged), and how.
I have already created a JS function that i want to be launched when the tile is selected.

I try to create every tileList i need from code-behind, that is why i need this.

Many thanks !
Maxime
Top achievements
Rank 1
 answered on 05 Jul 2013
7 answers
318 views
Hi, In my application I have a RadGrid who is connected to a ObjectDataSource for can filter my query before result loading (when I start my page, i used the LinqDataSource).

After to have implented the ODS, I had a error message :
DataBinding: 'Telerik.Web.UI.GridInsertionObject' does not contain a property with the name 'CodeComplementaireNumero'.

I to search in the internet, and i have found this link :  http://www.telerik.com/help/aspnet-ajax/grid-error-messages.html who give me a solution for my Insert problem (when I edit a DataItem all work perfectly)

Case "Add", "InitInsert"
 
                EcritureRecurrenteFacade.ObjCompte.Entity = Nothing
                UndoChange()
 
                e.Canceled = True
                Dim newValues As System.Collections.Specialized.ListDictionary = New System.Collections.Specialized.ListDictionary()
                newValues("ID") = 0
                newValues("CompteNumero") = Nothing
                newValues("Description") = Nothing
                newValues("CodeComplementaireNumero") = 0
                newValues("Pourcentage") = 0
                'newValues("EcritureRecurrenteID") = IIf(EcritureRecurrenteFacade.EcritureCourante IsNot Nothing, EcritureRecurrenteFacade.EcritureCourante.ID, 0)
                e.Item.OwnerTableView.InsertItem(newValues)

After I have add this code, when I click on my Add button, the row appear in the RadGrid. In the RadGridRow. But in my RadGrid for each row I have Search Action Button who call this Event to my ItemCommand

Case "SearchCompte"
    ' Désactive le compte courante pour empêcher les problèmes d'affichages
    If (EcritureRecurrenteFacade.ObjCompte.Entity IsNot Nothing) AndAlso (EcritureRecurrenteFacade.ObjCompte.Entity.ID > 0) Then
        EcritureRecurrenteFacade.ObjCompte.Entity = Nothing
    End If
 
    ' Prépare la recherche
    Dim i As GridDataItem = DirectCast(e.Item, GridDataItem)
    Dim editValues As New Hashtable()
    i.ExtractValues(editValues)
    editValues.Add("CompteNumeroID", i("CompteNumero").ClientID)
    ViewState("extract") = editValues
    Dim SearchValue As String = ""
    If (editValues("CompteNumero") IsNot Nothing) Then
        SearchValue = editValues("CompteNumero").ToString
    End If
 
    MainMaster.CallSearchItem(GetLocalResourceString("SearchTitle_Compte"), EcritureRecurrenteFacade.ObjCompte.LinqContextTypeName,
                      EcritureRecurrenteFacade.ObjCompte.GetPropertyName(Function() EcritureRecurrenteFacade.ObjCompte.GridSearchSelect),
                      i("CompteNumero").ClientID, EcritureRecurrenteFacade.ObjCompte.GridSearchColumn)

When my Search is terminated and my RadWindows closes. This function it's call
Private Sub RechercheEventCompte(ByVal sender As System.Object, ByVal e As System.EventArgs)
    'Select case contenant la liste de tous les champs dont la recherche est disponible.
    If (ViewState("extract") IsNot Nothing) Then
        Dim Hash As Hashtable = DirectCast(ViewState("extract"), Hashtable)
        Dim oldvalue As String = ""
        If Hash("CompteNumero") IsNot Nothing Then
            oldvalue = Hash("CompteNumero").ToString
        End If
 
        Dim ObjEventArgs As SearchReturnEvent = CType(e, SearchReturnEvent)
        Select Case ObjEventArgs.UpdatedControlId
            Case Hash("CompteNumeroID").ToString
                GetCompteByID(ObjEventArgs.IDSelect)
        End Select
 
    End If
End Sub
 
Public Sub GetCompteByID(ByVal IdCompte As Integer)
    Try
        ' REcherche et obtention du Compte relier a la recherche
        EcritureRecurrenteFacade.ObjCompte.GetByID(IdCompte)
        EcritureRecurrenteFacade.ObjCompte.Entity = EcritureRecurrenteFacade.ObjCompte.SelectedTEntity
        RadGridEdit.Rebind()  ' BUG LINE
        'RadGridEdit.DataBind()
    Catch ex As Exception
        Throw ex
    End Try
End Sub

Before, with the LinqDataSource, after using «DataBind» in «GetCompteID». The RadGrid_ItemDataBound is called for insert the «Compte» value in my row cells. 
   Private Sub RadGridEdit_ItemDataBound(sender As Object, e As GridItemEventArgs) Handles RadGridEdit.ItemDataBound
        'Ajouter la validation de confirmation
        'Le code à été mis ici pour l'ajout du script afin de permettre de désactiver les événements
        If TypeOf e.Item Is GridDataItem Then
            Dim dataItem As GridDataItem = CType(e.Item, GridDataItem)
 
            ' Permet d'inscrire la valeur de la recherche lors de insertion d'une nouvelle ligne.
            If (EcritureRecurrenteFacade.ObjCompte.Entity IsNot Nothing) AndAlso (EcritureRecurrenteFacade.ObjCompte.Entity.ID > 0) AndAlso (ViewState("extract") IsNot Nothing) Then
                If RadGridEdit.MasterTableView.EditMode = GridEditMode.InPlace Then
                    If TypeOf e.Item Is GridDataInsertItem AndAlso e.Item.OwnerTableView.IsItemInserted Then
                        Dim insertItem As GridDataInsertItem = DirectCast(e.Item, GridDataInsertItem)
                        TryCast(insertItem("CompteNumero").Controls(0), Telerik.Web.UI.RadNumericTextBox).Text = CStr(EcritureRecurrenteFacade.ObjCompte.Entity.Numero)
                        TryCast(insertItem("Description").Controls(0), TextBox).Text = EcritureRecurrenteFacade.ObjCompte.Entity.Description
                    ElseIf TypeOf e.Item Is GridDataItem AndAlso e.Item.IsInEditMode Then
                        Dim editItem As GridEditableItem = DirectCast(e.Item, GridEditableItem)
                        TryCast(editItem("CompteNumero").Controls(0), Telerik.Web.UI.RadNumericTextBox).Text = CStr(EcritureRecurrenteFacade.ObjCompte.Entity.Numero)
                        TryCast(editItem("Description").Controls(0), TextBox).Text = EcritureRecurrenteFacade.ObjCompte.Entity.Description
                    End If
                End If
            End If
 {...}
End sub

But with ODS (object data source) after my Rad RadWindows closes, I receive a same message error.

DataBinding: 'Telerik.Web.UI.GridInsertionObject' does not contain a property with the name 'CodeComplementaireNumero'.


Thank you if u can help me, and sorry for my bad english :/
Good Day
Mathieu B.B
Andrey
Telerik team
 answered on 05 Jul 2013
1 answer
37 views
Hi ,

i am able to search a word in radEditor but i want that word should be in view 
is there any thing like ScrollIntoView.?

Thanks
Sumit
Slav
Telerik team
 answered on 05 Jul 2013
1 answer
126 views
you can create a combobox columns with header but load the data with a webservice?

I load the record in combobox with this code:


<WebMethod()> _
Public Function GetLuogoNome(ByVal context As RadComboBoxContext) As RadComboBoxData
    Dim data As DataTable = GetCittadinanza(context.Text)
 
    Dim comboData As New RadComboBoxData()
    Dim itemOffset As Integer = context.NumberOfItems
    Dim endOffset As Integer = Math.Min(itemOffset + ItemsTipoGruppoPerRequest, data.Rows.Count)
    comboData.EndOfItems = endOffset = data.Rows.Count
 
    Dim result As New List(Of RadComboBoxItemData)(endOffset - itemOffset)
 
    For i As Integer = itemOffset To endOffset - 1
        Dim itemData As New RadComboBoxItemData()
        itemData.Text = data.Rows(i)("descrizione").ToString()
        itemData.Value = data.Rows(i)("idrecord").ToString()
        result.Add(itemData)
    Next
    REM ottengo il messaggio dei record selezionati
    comboData.Message = GetStatusMessage(endOffset, data.Rows.Count)
    comboData.Items = result.ToArray()
    Return comboData
End Function
Private Function GetLuogo(ByVal text As String) As DataTable
    REM SELECT * FROM Tab_categorie WHERE CONTAINS(descrizione, @text)
    REM per indici full text
    Dim conString = ConfigurationManager.ConnectionStrings("Receptionstring")
    Dim strConnString As String = conString.ConnectionString
    Using scope As New Transactions.TransactionScope
        Using db As New SqlConnection(strConnString)
            db.Open()
            Using sqlcmd As New SqlCommand("get_cittadinanza", db)
                sqlcmd.CommandType = CommandType.StoredProcedure
                sqlcmd.Parameters.AddWithValue("@textsearch", SqlDbType.VarChar).Value = text
                Dim adapter As New SqlDataAdapter(sqlcmd)
                Dim data As New DataTable()
                adapter.Fill(data)
                Return data
            End Using
        End Using
        scope.Complete()
    End Using
Hristo Valyavicharski
Telerik team
 answered on 05 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?