Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
124 views
How should I do if I want scheduler client-side data-binding with MS SQL Server?
Could anyone give me a sample?
Thanks!
Boyan Dimitrov
Telerik team
 answered on 16 Jul 2014
2 answers
180 views
I have a grid which uses the pop-up inline insert and edit form.  In it a have a dropdown list that updates a text box in the form after a selection from it.  The problem I have is that I have no alternative to the GetInsertItem method on the grid object.  I have researched for alternatives but so far all examples leads to either the UpdatedCommand or ItemCreated or ItemCommand events, which don't apply to my case.  Here's my code.

Private Sub RGExpenses_ItemCreated(sender As Object, e As GridItemEventArgs) Handles RGExpenses.ItemCreated
    If (TypeOf e.Item Is GridEditableItem AndAlso e.Item.IsInEditMode) Then
        Dim list As DropDownList = CType(CType(e.Item, GridEditableItem
​Description").Controls(0), DropDownList)
        list.AutoPostBack = True
        AddHandler list.SelectedIndexChanged, AddressOf list_SelectedIndexChanged
        SetAmount(list)
    End If
End Sub
 
Private Sub list_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
    'sets Item amount when change selected value
    SetAmount(CType(sender, DropDownList))
End Sub
 
Private Sub SetAmount(ByVal ddl As DropDownList)
    If Not IsNothing(ddl.SelectedItem) Then
        Dim decPAmount As Decimal = cDB.dbConsult(Application("db"), "SELECT TOP 1 Amount FROM Table1)
        If RGExpenses.MasterTableView.IsItemInserted Then
            CType(RGExpenses.MasterTableView.GetInsertItem.FindControl("TB_Amount"), TextBox).Text = decPAmount
        Else
            'here is where I need to find the control, but no method to do so
            CType(RGExpenses.MasterTableView.FindControl("TB_Amount"), TextBox).Text = decPAmount
        End If
    End If
End Sub

So as you can see, there is no problem on insert mode.  Incredibly, the problem is that I have no method for Edit mode to replicate what I'm doing on insert mode.  How can I reference the text box control within the edit form when in edit mode.

Thanks
nfigueroa
Top achievements
Rank 1
 answered on 16 Jul 2014
3 answers
423 views
I would like to add an image (stored in DB) to my PDF export. Now I am exporting PDF using:



grdiView1.MasterTableView.ExportToPdf();



I just want to add a single image to this pdf file from the database. Image will be outside the gridview lets say at the top left of the pdf file....



I hope somebody can help me with this...
Kostadin
Telerik team
 answered on 16 Jul 2014
1 answer
118 views
I have made a toggle JQuery button on the top of my page that when it is droping down the horizontal Radmenu items cut the JQuery dropped div. I have changed the position of div into absolute and made a  z-index but nothing changed. I tried to change the position of Radmenu into static again it didn't work. Is there any  solution to bring the RadItem menu under the JQuery dropped div?
Magdalena
Telerik team
 answered on 16 Jul 2014
5 answers
214 views
Hi,

I'm trying to insert items to destination listbox to desired index. If any item is selected in the destination lisbox then the transfered items should be inserted above the selected item. I'm using allowtransfer property for transferring the items.

In transferring event i used "e.Cancel" to cancel the regular transfer when there is any item selected in the destination listbox. 

e.Cancel = True

For Each item As RadListBoxItem In e.Items
     e.DestinationListBox.Items.Insert(e.DestinationListBox.SelectedIndex, item)
Next

Insert doesn't work. What am I doing wrong? It doesn't give any error but doesn't work either. I have other functionality for which I have to make this happen through code behind itself.

Thanks,
Arjun
ARJUN
Top achievements
Rank 1
 answered on 16 Jul 2014
11 answers
547 views
Hi, 

I'm trying to use the RadComobox Ajax control on the sharepoint webpart. but after opening the dropdown list if I scrolled the page from mouse wheel the list is sticking to a single position. 

I tried this solution but this is not working in my case. 

$(document).ready(function () {

    $(window).scroll(function () {

        var comboBox = $find("RadComboBox1");

        if (comboBox.DropDownVisible)

            comboBox.hideDropDown();

    });

});


Please help..
Hristo Valyavicharski
Telerik team
 answered on 16 Jul 2014
1 answer
116 views
Hi, I have the following data structure: Management Units and Projects. Management Units may have other management units children or may have projects. Projects in turn may have children Projects. For example:

-Management Unit 1
       -Management Unit 1.1
             -Project 1
                 -Project 1.1
                        -Project 1.1.1
                        -Project 1.1.2
                 -Project 1.2
             -Project 2
       -Management Unit 1.2
       -Management Unit 1.3


-Management Unit 2
             -Project 1
             -Management Unit 2.1


How could represent this structure with RadGrid?

Thanks in advance.




Princy
Top achievements
Rank 2
 answered on 16 Jul 2014
3 answers
67 views
Hi,

I am using telerik RAD Editor for SharePoint 2010.

I have enabled the property <tool name="InsertExternalVideo"/> in the Rad Editior configuration.

I am able to see the dialog in the editor, however the youtube or vimeo video content gets stripped off when the publishing page is saved.

Is there any special settings need to be enabled to save the Video content in the page ?
Ianko
Telerik team
 answered on 16 Jul 2014
1 answer
111 views
Hi all,

we are having issues with the RadComboBox in combination with a fancybox. The combobox is shown on the fancybox div and when clicked to open, the items are loaded on demand. But the items are loaded on the page behind the fancybox. So if we set the z-index to a high number, the items are showing, but the scroll isn't functioning correctly.

How come the items are loaded on the page behind the fancybox?
Any help or pointers would be much appreciated!

Thanks in advance.

Willem
Magdalena
Telerik team
 answered on 16 Jul 2014
1 answer
189 views
Hi,

My project worked on my local with windows 8 and iis8.0 . All the pages are working fine on both IE10 and Chrome. I deployed to Windows Server 2008 R2. Then my page becomes like the attached file. I've tried adding  
<meta http-equiv="X-UA-Compatible" content="IE=edge">
 to master page. It is working on compatiblity   view.  Anyone can help me ? Thanks.
Marin Bratanov
Telerik team
 answered on 16 Jul 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?