Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
114 views
Hi

Is this a default behaviour? I have a blank page with a YouTube video embeded via object script etc (just copied the object script directly from the YouTube video page).

This video displays on the page on it's own, however when I open the page in a RadWindow the YouTube clip does not play or even show.

Is this normal? Is there a security issue? Anyway to fix?

Update: It works in IE8 (after I enabled intranet settings). This site is sitting on my local via IIS so my url is something like http:/testlocal/video.aspx etc... Will it magically work once the site is live?
Georgi Tunev
Telerik team
 answered on 17 Nov 2009
1 answer
135 views
Hi,

I have a question i'm busy making a treeview in a template and in that treeview i have a imagebutton and i use  a contextmenu.

Now i want to know if it is possible to open the contextmenu when i click on the imagebutton next to the rightclick event.

In the screenshot i attached the button i is pointed out with red lines.

I hope you can help me.

It's needed for usability reasons.

Kind regards,
Yana
Telerik team
 answered on 17 Nov 2009
1 answer
79 views
In my page i use rad editor.
while page load i am creating a template writing for users. Then users write some fields in this template.
But i have some problem with this.
Users shouldn't edit some html fields in this template such as

<tr>
   <td>
      This area is read only
   </td>
</tr>

When they finish their job i will replace this read only content with another writing.
How can i make read only html field in rad editor ?

Thanks for advice.

Regards,
Fatih ÖZKAN


Rumen
Telerik team
 answered on 17 Nov 2009
1 answer
100 views
Hi,

I am using RadStyleSheetManager in my Web Application as below.

protected

 

void Page_Load(object sender, EventArgs e)

 

{

Form.Controls.Add(

new Telerik.Web.UI.RadStyleSheetManager());
}
in web.config

 

<

 

httpHandlers>

 

<

 

add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" />

 

</

 

httpHandlers>

It's combining css request well, but not js request. Please help me out if i am missing something or not using RadStyleSheetManager properly.

Also can i use this setting for whole application. Can i combine our local css into this request?

Kindly reply ASAP.

Regards
Devanand Jha

 

Paul
Telerik team
 answered on 17 Nov 2009
2 answers
148 views
Hi

I have a database with a company and a persons table. The person table has an FK to the CompanyID in the company table.
A person can be connected to a company (or not)
In my company grid, I have a separate grid (not a detailsgrid!) in a nested template
On expand, the template is shown and the connected persons grid is shown

For the persons grid on the nested template I have an ordinary RADGrid and I have a delete column and i replaced the text with an image. But for the delete function actualy I need to have two types of delete

option 1 deletes the complete person in the person table (normal delete function in the grid)
option 2 clears only the FK to the company and makes it a stand alone person, not connected to a company

I was considering a second delete column with a imagebutton which click event I can catch directly in VB code behind but I don't know how to.

Anyone an idea how to approach this?

Rick Rehorst
Top achievements
Rank 1
 answered on 17 Nov 2009
1 answer
161 views
*** EDIT ***
I realized that you need to use the

DataValueField

In order to populate that value correctly not the

DataKeyField


I would like to transfer both the ListItem Value and Text between 2 list boxes.

Is this possible using the standard RadListBox control?

The Value would contain a record id and the text...well some text...

Thanks
Peter
Shinu
Top achievements
Rank 2
 answered on 17 Nov 2009
3 answers
190 views
I'm trying to load a chart on a virutal path using the new routing function in .NET 3.5 SP1.  I keep getting the Error loading RadChart image error.  It works fine when I put the chart on a page that isent virtual.  I think with the virtual path the link to the image is getting lost somewhere.  When I right click the red X and look at the path its telling me its looking for the ChartImage.axd inside of my virtual path.  How can I fix this?
Vladimir Milev
Telerik team
 answered on 17 Nov 2009
1 answer
140 views
Hi,

I had a javascript prompt box which is being displayed upon some business validations and when the user clicks ok, I was trying to fire click event of a button to perform insert operation but I am unable to find the ID of the button, I am registering the javascript in code behind using scriptmanager.registerstartupscript, my web page has a master page, radgrid, update panel, radloadingpanel.
below is the code where i am trying to pull the ID of the button.
Dim js As String  
        js = _ 
                       "       var promptpromptComments=prompt(Validation failed, still want to proceed','Comments...');" & _  
                       "       if(promptComments!=null && promptComments!='')" & _  
                       "       {" & _  
                       "        document.getElementById('<% InsertRecord.ClientID %>').click;"  & _  
                       "        document.getElementById('InsertCmtsHdnFld').value=promptComments;" & _  
                       "       } " & _  
                       "       else" & _  
                       "       {" & _  
                       "       alert('insert has been terminated');" & _  
                       "       }"  
 
        ScriptManager.RegisterStartupScript(Me, GetType(Page), "PromptScript", js, True) 
Also I am unable to find the hidden field id as well

I am doing this so as to perform an insert operation based on the response from user. Hence trying to fire a click event and perform insert operation in it.

I am registering the javascript in insert command event. I must be missing something eay here but unable to find it, Anyhelp would be greatly appreciated.

Shinu
Top achievements
Rank 2
 answered on 17 Nov 2009
2 answers
85 views
I need to find the update event for other recreate user control(on click of OK button) similar to update user control(as on click of UPDATE button) in the grid from the code behind. Concerned image file illustrating this has been attached with this post.

 if (e.CommandName == RadGrid.UpdateCommandName)
            {
                UserControl userControl = (UserControl)e.Item.FindControl(GridEditFormItem.EditFormUserControlID);
                RadTextBox txtOrderValue = userControl.FindControl("txtOrderValue") as RadTextBox;


These user controls are loading in grid as the user hits concerned image buttons in the grid.



Thanks,
Awadh
Awadh .
Top achievements
Rank 1
 answered on 17 Nov 2009
0 answers
167 views
hi

I know this is not a proper place to post my thread.Am sorry.

I have this code and i am not to get the retun value from the proc. I did a breakpoint on the function and the invoice variable is empty.

What is worng with this code? Thanks

ALTER PROCEDURE [dbo].[spGetName]
@prodID as nvarchar(50)
AS
BEGIN
Declare @invoiceID as Nvarchar(50)
Set @invoiceID = Replace(replace(Replace(replace(CONVERT(Nvarchar(50),Getdate(),120),'-',''),' ' ,''),':',''),'.','')
Insert into dbo.Invoice(invoiceID,ProdID) values(@invoiceID,@prodID)
Return @invoiceID
END



 Shared Function Invoice(ByVal prodID As String) As String
        Dim Invoice As String
        Using sqlcmd As New SqlCommand("spGetName", getConn)
            sqlcmd.CommandType = Data.CommandType.StoredProcedure
            sqlcmd.Parameters.Add(New SqlParameter("@prodID", SqlDbType.NVarChar, 50)).Value = prodID 
            Invoice = sqlcmd.Parameters.Add(New SqlParameter("@Return_Value", SqlDbType.NVarChar, 50)).Direction = ParameterDirection.ReturnValue
     sqlcmd.ExecuteNonQuery()       
 End Using
        getConn.Close()
        Return Invoice
    End Function

 

L
Top achievements
Rank 1
 asked on 17 Nov 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?