Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
281 views
How do I go about passing a parameter into the PostBackUrl property?

I would be interested in being able to do something like this:

<telerik:RadComboBox ID="combobox" runat="server" AutoPostBack="true" DataTextField="Text"
DataValueField="Value" PostBackUrl="somepage.aspx?somevalue={0}" Width="200px">
</telerik:RadComboBox>

Where {0} would be a property on the model I'm binding to the ComboBox.

Thanks,
Peter
Telerik team
 answered on 16 Apr 2012
6 answers
161 views
I'm trying to use TreeView and GridView with Entity Framework. I have a page with one TreeView, one GridView, each with it's own EntityDataSource. This far it's working.
Now I want to filter the data in the grid, so I configure the Where property of it's datasource to filter where it.CategoryID = @CategoryID. And I bind the parameter @CategoryID to the TreeView.SelectedValue. This doesn't work: All items are shown in the grid regardless which category I select in the tree. :(
If I replace the TreeView with a ComboBox, the filter works ...
Plamen
Telerik team
 answered on 16 Apr 2012
4 answers
215 views
We just discovered an issue with some RadComboBox behavior that doesn't seem quite right. We recently set the MarkFirstMatch="true" property and were running into new errors due to the combo box's SelectedValue="". It seems as though when this property is set to true that the combo box does not default to the first item during page load like it normally does. However, after the page is loaded the SelectedValue is correctly set to the first item in the drop down. 
        protected void btnTest_Click(object sender, EventArgs e) 
        { 
            MessageBox.Show(m_ddltest.SelectedValue.ToString()); 
        } 
 

To recreate this scenario we setup a little test project. Please note that the combo box is never clicked during this test. We simply load it and expect (by default) that the first item in the combo box should be selected by default.

Mark-up
    <telerik:RadComboBox ID="m_ddltest" runat="server" MarkFirstMatch="true"></telerik:RadComboBox> 
    <tst:TstButton ID="m_btnTest" runat="server" OnClick="btnTest_Click" /> 
 

Code in Page_Load where we load up the combo box. If you step through this code you will see that the SelectedValue = ""
        protected void Page_Load(object sender, EventArgs e) 
        {                
           m_ddltest.DataSource = InsuredUnitsFromSession; 
           m_ddltest.DataValueField = "InsuredUnitId"
           m_ddltest.DataTextField = "Name"
           m_ddltest.DataBind(); 
 
           string test = m_ddltest.SelectedValue.ToString(); 
        } 

However, when you click the test button the SelectedValue property is now correctly set. Why is the SelectedValue = "" during the loading of the combo box in Page_Load?
        protected void btnTest_Click(object sender, EventArgs e) 
        { 
            MessageBox.Show(m_ddltest.SelectedValue.ToString()); 
        } 
 

Thanks in advance for your assistance.
Jonathan


FvLent
Top achievements
Rank 2
 answered on 16 Apr 2012
4 answers
69 views
Updated to the new VS extension, running 2012.1.320. Have 2012 Q1 of radcontrols loaded
Created a new project generated with telerik vb web app template.
Added Scheduler Custom Edit template scenario, set as start page, code breaking in RadInputScript.js, line 308, which makes sense as line 307 just wiped it out.
Added scenario for advanced form, set that as start page, getting "Microsoft JScript runtime error: 'bind(...).bind(...).0' is null or not an object. Breaks to Advanced Form.js, line 628.
Switch back to custom edit page as start, and now it does run when I go to advanced options while insert or edit an appointment. So, somehow the borderRightWidth is ok.
Are the scenarios generated via the VS extensions or are they part of the radcontrols install?
Has anyone else tried the scenarios, with no edits, to see if they run? Should they run without any edits? Do they make changes to the web.config file as well as the forms etc. that are added?
Newbie, here, so don't know about the scenarios completeness. Looked like it was a good place to start via the videos...
Thanks for any info provided...
Brenda
Peter
Telerik team
 answered on 16 Apr 2012
3 answers
174 views

I have routes defined for all my pages in .Net. 

RouteTable.Routes.MapPageRoute("UploadPage", "upload/", "~/upload.aspx")

Then when I use the upload control it tacks on the RadUrid, which I don't have a route defined for and it causes an error. 

If I define an additional route.

Like ,

RouteTable.Routes.MapPageRoute("UploadPage", "upload/{radurid}", "~/upload.aspx") 

So it doesn't cause an error, but will it still work correctly, since it's no longer in the request.querystring, but instead pages.routdata.values ?


Bozhidar
Telerik team
 answered on 16 Apr 2012
1 answer
111 views
Good Morning,

We have recently upgraded our RadEditor within our MOSS 2007 sites to version 5.8.14.  The only issue we have at the moment is that when we use the Image Manager from within the editor whereby the Image Manager is showing Thumbnails the images contained in an Image Library, is there a way we can disable this functionality and switch to lists / grid view?

Using thumbnails is proving quite slow for us when the image library contains a large amount of images. 

Any help would be greatly appreciated.

Thanks
Hefin Jones
Stanimir
Telerik team
 answered on 16 Apr 2012
1 answer
67 views
Hello,

I'm testing the radgrid control if it will fulfill my expectations. My question is, is it possible to set the radgrid to MultiSelect but Single Drag & Drop. Because I want to select more then 1 row, but when I've selected for example 6 rows and I try to drag one of them, only that one should move, the other selected rows need to stay in their place. I hope this is possible with this control because achieving to program the drag and drop function took a lot of time. Thank you very much!

Kind regards,
Wesley
Tsvetina
Telerik team
 answered on 16 Apr 2012
1 answer
119 views
Hi,

I have a ComboBox  with no DataSource, in a GridEditForm, that I fill in the ItemRequested Event. I want to programatically select an item but, my combobox is empty until I click on it to fire the Event and then fill it. So is there a way to fill this combobox to select the right item? I am using this because I got alot of item in this combobox.

Here is my event sub:

Protected Sub cboGroupe_ItemsRequested(ByVal sender As Object, ByVal e As RadComboBoxItemsRequestedEventArgs)
    Dim cbo As RadComboBox = DirectCast(sender, RadComboBox)
 
    'get all customers whose name starts with e.Text
    Dim sqlGroupes As LWebStatement = ExecuteSql("Select gral_numero, gral_description " & _
                                            " from phfgrall where pram_sequence = " + GetStr(GSite_phfgrall) + " and (gral_numero like '" & Convert.ToString(e.Text) & _
                                            "%' or gral_description like '" & Convert.ToString(e.Text) & "%')" & _
                                            " order by gral_description")
    Dim itemOffset As Integer = e.NumberOfItems
    Dim endOffset As Integer = Math.Min(itemOffset + 10, sqlGroupes.Tables(0).Rows.Count)
    e.EndOfItems = endOffset = sqlGroupes.Tables(0).Rows.Count
 
    For i As Integer = itemOffset To endOffset - 1
        Dim item As RadComboBoxItem = New RadComboBoxItem(sqlGroupes.Tables(0).Rows(i)("gral_description").ToString, sqlGroupes.Tables(0).Rows(i)("gral_numero").ToString())
        item.Attributes("gral_description") = sqlGroupes.Tables(0).Rows(i)("gral_description").ToString
        item.Attributes("gral_numero") = sqlGroupes.Tables(0).Rows(i)("gral_numero").ToString
        cbo.Items.Add(item)
    Next
 
    e.Message = GetStatusMessage(endOffset, sqlGroupes.Tables(0).Rows.Count)
 
    cbo.DataBind()
End Sub

Thanks.
Cat Cheshire
Top achievements
Rank 1
 answered on 16 Apr 2012
2 answers
338 views
Hi,

I am having a radgrid, in which I have multiple records. I am unable to get How I can update records from there? Please help.
Andrew
Top achievements
Rank 1
 answered on 16 Apr 2012
1 answer
66 views
Hi all,
I want the filter option disabled while editing. How can I accomplish that?
Thanks in advance.
Shinu
Top achievements
Rank 2
 answered on 16 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?