Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
92 views
Hi

I am writing a web appication rather than a web site so I have information available to me that I would not normally know.
For instance in this case, I have got 4 files on a client disk - 3 images and 1 video.

On the web page I already know where the files are stored and what the filenames are before I draw the page.
All I want to do is to pre-populate the 4 radupload edit boxes with the filenames amd paths so that all the user has to do when they open the page is to click the Upload button and all 4 files can then be uploaded.

I cannot find any obvious way to do this with the radupload control?

Can anybody steer me in the right direction here?

Thanks
Mick
Kevin
Top achievements
Rank 2
 answered on 07 Feb 2012
0 answers
62 views
Hi,

I'm trying to use a RadMenu to select some hierarchical data. I feed the data from a DataTable fine and the hierarchy works when specified, however I would actually like this data to populate at the 3rd tier of the menu. i.e. I'd like the structure as follows:

Category -> Shop -> heirachical data for Shop
-> Fuel -> heirachical data for Fuel

Both shop and fuel data use the ID to ParentID relationship and can be combined into a single DataTable with the differentiating factor being a dummy column with either "shop" or "fuel" (ofc this data could be provided as 2 tables instead). I would like Category to be the root - this is static and does not need to come from the datasource, tho I could add another dummy column "Category" to the query if required.

Is there a way to populate from the 2 data sources at the Shop and Fuel level (shop and fuel are also static and can be specified in advance)?

Any help with this would be greatly appreciated.

Cheers,
Christian
Christian
Top achievements
Rank 1
 asked on 07 Feb 2012
5 answers
127 views
I notice a problem in the Rad-editor when trying to select a link and open the Hyperlink pop-up, sometimes the "properties" option shows up but the data from the link is not being passed to the hyperlink popup. This issue is happening in our app and also in the rad editor demo page.

I have prepared a video demonstrating this Issue. What can I do to "fix" this problem?
http://screencast.com/t/gVgnxdGahUb

Thanks in advance.
Douglas
Top achievements
Rank 1
 answered on 07 Feb 2012
1 answer
98 views
I have a tree that looks like this:

Each entry is follow by the letter 'e'. Clicking on the text of the node displays the assets to which the nodes is pointing. Clicking on the 'e' bring up the definition of the node in a pop up window. Unfortunately when the user clicks on a 'e' in different node than is displayed the display changes to that node (a bad thing) and the pop-up is displayed. Is there any way of preventing the clicks of the 'e' from displaying the assets.

Here is the definition of the tree
<telerik:RadTreeView ID="RadTreeView1" runat="server" CheckBoxes="True" MultipleSelect="True"
    EnableViewState="true" ShowLineImages="False" EnableEmbeddedSkins="False" Skin="tree_2"
    OnNodeClick="RadTreeView1_NodeClick" OnNodeDataBound="RadTreeView1_NodeDataBound">
   <NodeTemplate>
        <small>
            <asp:Label ID="lblnodeText" Text='<%#Eval("Title") %>' runat="server" /><asp:Label
                ID="lblCatId" Text='<%#Eval("Id") %>' runat="server" Visible="false"></asp:Label><asp:Label
                    ID="lblisCustomer" Text='<%#Eval("isCustomer") %>' runat="server" Visible="false"></asp:Label><asp:Label
                        ID="Description" runat="server" Text='<%#Eval("description") %>' Visible="false" /><asp:HiddenField
                            ID="DescriptionVisible" runat="server" Value='<%#Eval("descriptionVisible") %>' />
        </small>
        <small><a href="javascript:Popup_Window('category_detail','<%# Eval("id") %>')" style="text-decoration: none;">
            <span style="color: #BBBBBB">e</span></a></small></NodeTemplate>
</telerik:RadTreeView>
Bozhidar
Telerik team
 answered on 07 Feb 2012
2 answers
93 views
Hi everybody,

I am desperate now... I MUST understand something...

I have a grid with some data Bind to a DataTable. Here is my ItemDataBound Event (column4 is the GridBoundColumn's UniqueName):

Protected Sub gridAllergies_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles gridAllergies.ItemDataBound
        If (TypeOf e.Item Is GridEditableItem AndAlso CType(e.Item, GridEditableItem).IsInEditMode) Then
            Dim editedItem As GridEditableItem = CType(e.Item, GridEditableItem)
            Dim allergie As clsAllergie = CType(CType(e.Item.DataItem, DataRowView).Row, clsAllergie)
            Dim editor As GridDropDownListColumnEditor = CType(editedItem.EditManager.GetColumnEditor("column7"), GridDropDownListColumnEditor)
            editor.DataSource = ExecuteSql("Select '' as gral_numero ,'' as gral_description union all Select gral_numero, gral_description " & _
                                              " from phfgrall where pram_sequence = " + GetStr(GSite_phfgrall) + " order by gral_description").Tables(0).DefaultView
            editor.DataBind()
            Dim txtbx As TextBox = CType(editedItem("column4").Controls(0), TextBox)
            If Not allergie.NoGroupe = "" Then
                editor.SelectedValue = allergie.NomGroupe
            End If
 
            Dim update As LinkButton = CType(editedItem.FindControl("UpdateButton"), LinkButton)
            If (update IsNot Nothing) Then
                update.Attributes.Add("onclick", "return Validate('" + txtbx.ClientID + "')")
            End If
        End If
    End Sub

Where I want you to look is the last part "update.Attributes.Add("onclick""return Validate('" + txtbx.ClientID + "')")"

Now let's see my JS function:

function Validate(txt)
 {
         var txtbx = document.getElementById(txt)
          alert(txtbx.value);
          return true
 }

So you can see that the only things this is doing is showing the value of the textbox after clicking on Update. This work fine! Example: If the current value is "toto" and I change it to "tata" and press Update, it will show "tata".

After that, it fire the update event and enter in the UpdateCommand event. So here is my code:

Protected Sub gridAllergies_UpdateCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles gridAllergies.UpdateCommand
    Dim editItem As GridEditableItem = TryCast(e.Item, GridEditableItem)
    Dim txtbx As TextBox = CType(editItem("column4").Controls(0), TextBox)
    Debug.WriteLine(txtbx.Text)
End Sub

The thing I CAN'T understand is why txtbx.Text is equal to "toto" instead of "tata" ?

I'm on that since 2 days ago and now I don't know what to do to get the new value...

I hope someone will be able to tell me why this is happening.
Jocelyn
Top achievements
Rank 1
 answered on 07 Feb 2012
7 answers
89 views
When I load a RadEditor on a page and set the toolbar to ribbon mode, the page is reloaded after all other resources load.

I have a simple website that demonstrates it.  I created a default Website project in VS2010 (.net 4) and put a simple page with only the editor on it. 

This is the page:
<%@ Page Language="C#" %>
 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<script runat="server">
 
</script>
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
      <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
      </telerik:RadScriptManager>
     
      <telerik:RadEditor ID="RadEditor1" Runat="server" ToolbarMode="RibbonBar">
      </telerik:RadEditor>
     
    </div>
    </form>
</body>
</html>


This is the log from fiddler (i've bolded the requests to the page):

GET http://localhost:54342/WebSite1/WebResource.axd?d=OD1l_xmfOmVY9FyF0plxjBWzTB-uOBDk-H6lFyMIhw6_zj-Ab4FJlo-8QzX1aCjCjDDPZQTgi83U50y5Olp9jTWE9e6piGxw_pu_-0A8iu-8FEUGAuQHkkNBFZnXvuNcQCUw4XdprFo1pzMtDN1mntZi1srlAa-lbVoKMNIBLUnlilZgCDXAGEJdB5j7HQXj0&t=634459980520000000
200 OK (image/gif)
 
GET http://localhost:54342/WebSite1/Default2.aspx
200 OK (text/html)
 
GET http://localhost:54342/WebSite1/WebResource.axd?d=EBOMX2yC5wHqhLKZz2MS392EHe5F5mmAnkF2wQC68w9Ihg-fDMwhv2fGbrU4IZHRce1zQWexdNvKCukOWYrN-TYaw2r13FvhbeYpIlHmA5CyhvQnkfmzffUb1pfBS--DeVycfPu2C6A4u7HbBfvtHw2&t=634459980520000000
200 OK (text/css)
 
GET http://localhost:54342/WebSite1/WebResource.axd?d=KeQPgqRBe01nM-n7Fn9JisRJwmcxervG5UvyfYah_fnqS413cwx8JusKE-6Z2QgnYNo9VAzqiUnN6tNf9rXe0BQkINdxoQZk4zZ4A6qdb0Y6PyPBO0O5cpoHjziHc-xnhG8ZR6w7y0-u20DifbQMaJug9K1nX4ohz3I8QmqoVLA1&t=634459980520000000
200 OK (text/css)
 
GET http://localhost:54342/WebSite1/WebResource.axd?d=vuZz5XZkbSPpQ8MNEgeIG2HMVsHYKOD_tSnU7u7MuvG9mdpD3-hk5q9IHraikPNosU-lDA1Oj-xGaSzE5--nFxYIUX0U1Y1TLZwXu9szZR2ohGjLzj_3Ujx28wGHhYNQz93ltXQdLtSftR2nxQVa2g2&t=634459980520000000
200 OK (text/css)
 
GET http://localhost:54342/WebSite1/WebResource.axd?d=7t2kSD67M4WdR_N-bC5aP33pVkTuaMOyIUwGo9t6hPRkzVrcEk9BgqDX49CYvaITz-EHR4XKbhwwAr6Dr7CKQtU6TH38oh2RjjWV07J6b2U9fyVIg_u7mYITFooiuz_nIy_xZOXk2hKxz3sUOV9tQ7agauNUXXonsetaPJnPHT41&t=634459980520000000
200 OK (text/css)
 
GET http://localhost:54342/WebSite1/WebResource.axd?d=QBvNsPRBB-BMk7UAXbB1TnSqva689HfQlNxZaF2LRHtz41DlCpWwMkVUD4FJ5IZLC30UGTgU0B6QQCaCW8XZHkG4FKuwXm2WnFuBnXxiJJMDQl9lb847k6K0lk66cDw9CF0FwhvLYTXiIIH5uySsT0pi7trYF0ndOwWhQG7LLUo1&t=634459980520000000
200 OK (text/css)
 
GET http://localhost:54342/WebSite1/WebResource.axd?d=4yk8LGWSJssAweeFTif-v1cJQ4WRxdrREzc98wNNX08P9h2qATxxYzIw6RJ_HQPhWlCL--fyPhQeutmeKWFB74kXCZ6ZLD4qmac8nVbMb817JzyxksF7f7xRh0vB4C9rk1gxS2gx7uxKCP6YfIM7Hg2&t=634459980520000000
200 OK (text/css)
 
GET http://localhost:54342/WebSite1/WebResource.axd?d=NrRSW8-jwz2aTCVUnnvGP22M5lMxWGkMpfLwWfV3VRRFEDk2COQKGu_AAgZ3UmwAwHG5xjE_x6wDoirkFF4cUnf-ijEa60PL6rY73LHXAoAGvmk6XYlES1r-icNQ3NhxdBXouDrXn-0SHomLOXAQlXfXRlHhXhEy2PXeCR8f_Aw1&t=634459980520000000
200 OK (text/css)
 
GET http://localhost:54342/WebSite1/WebResource.axd?d=yc4GP9Lr_reQjs3anI2DhY5JKTMUVyLrhYY4w16uj493zPkuQseh8ra040f-jXz4xNZxzZVYDcRwn1OW5t7urS2ciPBkQyC_-qqZz_XdjYI1&t=634516631326038000
200 OK (application/x-javascript)
 
GET http://localhost:54342/WebSite1/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3ae71d0a15-7471-4384-9905-78bdf2047cba%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2011.2.712.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3adb70bfda-5025-40e2-ae2f-653debb88509%3a16e4e7cd%3af7645509%3a24ee1bba%3a874f8ea2%3adc7e0bd%3a63b115ed%3a1569bb5f%3a1c565fc%3a8547b8b2%3a30f1f089%3af46195d3%3a19620875%3a490a9d4e%3aa675b4ab
200 OK (application/x-javascript)
 
GET http://localhost:54342/WebSite1/WebResource.axd?d=UHqSlPkSE8D7ktN0m5TuJLFZjJIMBZBire2iONj6fwuf8e33Zm484irbsQgPNtJH4P-WfcwvJQTkabOWFabJNNTbMh5s-KeUBP9sumy7rFazuLHTL93PEPvxaapoOo0mWz3K6SdpWZBfUJEdg2RJgZBp9vY03y3I3eFXY1UPdzUG6jVkJYAEztjhrTN8w-vW0&t=634459980520000000
200 OK (image/png)
 
GET http://localhost:54342/WebSite1/WebResource.axd?d=-LJtVS9M2Qqhhtc8DrglJp3SkA7ghV5l4iNaigp0rS0ybSACQKoJLecSzZOeLZ1jZvZmpIrfnZxuzIVVbvBSXU-GHcnLuUbE2Ww8NSkqTCp1jvz5r8Gy8Wur49ezEPTkmVpyVYjrwArp7d06kFcBWPo4opt-3tP4hM4SWnPvBYc1&t=634459980520000000
200 OK (image/png)
 
GET http://localhost:54342/WebSite1/WebResource.axd?d=UI8bnCm8XYpaKJUQcfIBn4i7ZNengZ4D86MirI9b_7Dte55go8a3HrjPv1SJ58_rlkcZrim3tI8D31JkvAx5ZB3LNTYvPDS23R2HBAQiMkgRo-bWBUzvTtZT2mjB-23tKHF7wGaeKrnONNTnHlYJCpGOSCnn2K3m7ltxHWTegiU1&t=634459980520000000
200 OK (image/png)
 
GET http://localhost:54342/WebSite1/WebResource.axd?d=H0kZ-9ODGkHOwdeuyUo5YOoH-6I9XYn24zfJnP7NnS9asazZ-EGqxWwC6lQ5uakzNgzQdOWjzgxmClZN2iJI8ZF5SXnV8qhApMdzv0YleW5W8trGT3uOXUbzzevf3awVu-vsl9portO_Q7bwAbuG7wqohbuSlI93TS24SOqggnk1&t=634459980520000000
200 OK (image/png)
 
GET http://localhost:54342/WebSite1/WebResource.axd?d=DAW4dWJ17yTVWP3uH5LqB5csbFMN8urSN9HmN23csEf7w9t_h7R7o56Crhdih3o2LXrb7vPo2WC3g0qx3QhWcsTkrvDPqcVl9BVuY-dZgjO7dK5cWvqvlQ0ko5sgU9aNXdYR7Ak7dOQvyj_749vqtgadlajbLHljAtn8AVtxtfaUHpI6YjSNzH22QWdrAyPo0&t=634459980520000000
200 OK (image/png)
 
GET http://localhost:54342/WebSite1/WebResource.axd?d=cFk1UuU3-B7HHWb91HrbEt9kL-orAsryNCotk6OvOTMmp5dTAmdmLEcavvX89ImOT8HhWxCAnQyIoR0nEiaAxe1C5_9Y18Lxl641qj7A4XOcarigMa1pB1u1twPjK4hzgZ57RfQBStmXzmyRO_umu-jDa8XuNQYFhVbDJobGWGw1&t=634459980520000000
200 OK (image/gif)
 
GET http://localhost:54342/WebSite1/WebResource.axd?d=i5GlqYIJASeLJjuZbnxYqfYxH81gR44zzOSMT9FPjS-CEzYmFjrRCiTLq6M9Fr174x5Hgwu9Hm8fdXd5V0ZwS4i_NQdylxqTFaCw4bp0Sq3Qvm4axhPPSdyhXJtDWThOaK80nHarE_UMmu_MB17Gi-iMIo-s1MECZN0hmJ4KklU1&t=634459980520000000
200 OK (text/css)
 
GET http://localhost:54342/WebSite1/WebResource.axd?d=YR3dsbQ7CFnxcVMNfFn2junvXa4PE5WrvQL4cBpm0gdxtieOhzrmgGR65Z3HapgYeYKw3E8Yupwp1Xca9WDv21X8HlMRqBmeqdnLVJJVOADSiDLuRcCFklaQYCQec_HiPDlHeW7c6vR5HFh6WtEQcohbeXxDqy_vHHHNimHkNNc1&t=634459980520000000
200 OK (image/gif)
 
GET http://localhost:54342/WebSite1/Default2.aspx
200 OK (text/html)

I've verified that no other request to that page is being made.  If I take the ribbon out, it works fine.

Thanks for your help.
Rumen
Telerik team
 answered on 07 Feb 2012
3 answers
135 views
Hello,

Is there a way to get Listview with RadBinaryImage and Jquery-Lightbox, where the ImageURL is not given just (RBI) DataValue?

I found examples,  howto use lightbox with simple asp-image, but is there a way too, to make it with Images from DB- RadBinary images?

Thanks for your help.

Zoltán 
Vasil
Telerik team
 answered on 07 Feb 2012
1 answer
124 views
Hello,
               We are using RadEditor.dll 7.2.0.0 .  I want to create one Thumbnail img from a 605x442 unit size.
 In the image manager  i did as follows:
Clicked on  the Create Thumbnail icon. The Create Thumbnail sub-window appears. It has the following values filled-in: -- New image name: SpaceRequiredToTransport60People.jpg -- Width: 24 -- Height: 24 (This doesn't make sense. The "large" image is not square.) -- Dimension Unit: Pixel -- Constrain Proportions: checked

But the created image was not cleared one.Its being too small . i am using IE 8.0 & chrome. I checked in both browsers , but its appeares same.

 Do we have any setting in web.congif file for this thumbnamil creation. ????

Thank you,
Rumen
Telerik team
 answered on 07 Feb 2012
3 answers
145 views
Hello...

I have a question about EditForm Style in Grid.

it's hard to explain my case , then i attached two image files

what i want to knows  is that remove line and space (pic2.gif ) like pic1.gif
No set pic1.gif
pic2.gif ,  bordercolor = white , and as faked.

below is source code of pic2.gif.

<EditFormSettings>
   <EditColumn ButtonType="ImageButton" CancelImageUrl="/Images/Grid/Cancel.gif" InsertImageUrl="/Images/Grid/Insert.gif"
     UpdateImageUrl="/Images/Grid/Update.gif"  />
   <FormMainTableStyle BorderStyle="Dotted" BorderWidth="1" Width="100%" />
    <FormTableStyle BorderColor="White" BorderStyle ="Dotted" />
    <FormTableAlternatingItemStyle BorderColor="White" BorderStyle ="Dotted"  />
</EditFormSettings>

thanks regards.
Mira
Telerik team
 answered on 07 Feb 2012
1 answer
34 views
Hi, the editor is not working properly when switched to full screen mode in IE 9 - please see the attached pictures from Firefox and IE 9. What is wrong?
Dobromir
Telerik team
 answered on 07 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?