Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
226 views
Hi Team, 
 My Requirement is to open PDF File in Rad Panel Item. When I do it from design mode it is working fine, but I am unable to add Iframe from code behind.
 
When I used Iframe from design mode : 
                 <telerik:RadPanelBar ID="radSample" runat="server">
                      <Items>
                        <telerik:RadPanelItem>
                          <ContentTemplate>
                           <iframe id="sample123" runat="server" src="~/UpLoadedImages/abc.pdf"></iframe>
                          </ContentTemplate>
                        </telerik:RadPanelItem>
                      </Items>
                    </telerik:RadPanelBar>
  when I used like this it is working fine and pdf is opening in Iframe but now i need to add rad panel items dynamically,
but as per my requirement i may have add number of rad panel items  so for that,     
count = no. of items;
foreach(int i=0 ; i < count; i++)
{
                         RadPanelItem myItem= new RadPanelItem();
 System.Web.UI.HtmlControls.HtmlGenericControl Iframe1 = new System.Web.UI.HtmlControls.HtmlGenericControl();
                        Iframe1.Attributes["src"] = "~/UpLoadedImages/abc.pdf";
                        myItem.Controls.Add(Iframe1);
radPnlBar1.Items.Add(myItem);
}
Now IFrame is adding like a span tag and not working as expected.

Can you help me how to add Iframe control to Rad Panel Item dynamically....


 Thanks in Advance..

 Santhosh.G,
Kate
Telerik team
 answered on 30 Nov 2011
7 answers
265 views
Hello,

Can you please give me a concrete exemple of how can we add templates to nodes server side?
I need to get nodes ( with images and text) using templates  like shown in the given page:
http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/templates/defaultcs.aspx.

Thank You & best Regards,

Hind
Plamen
Telerik team
 answered on 30 Nov 2011
1 answer
92 views
When i double click on an Appointment the "Edit Appointment" menu comes up.

On this menu i have 2 Date Pickers and 2 Time pickers and also 2 combo box (one for users and the other for rooms).

I need all the items above to be read-only, but i can't find anywhere how to achieve this...

Thanks in advance for all the help.
Ivana
Telerik team
 answered on 30 Nov 2011
1 answer
71 views
Hi,
I have placed a radcombobox and asp:panel id="Panel1" inside Advance Form control (AdvanceForm.ascx)
I Intend to make panel1 visible or Invisible based on the radcombobox selection using OnClientSelectedIndexChanged event of radcombobox.

Using telerik find method in javascript, I can easily get the telerik control but cant get asp.net controls.
For Example
function StartDateSelected_AdvancedInsert(sender, args) {
        var $ = $telerik.$;
        var endDatejQueryObject = $("[id$='AdvancedInsertForm_EndDate']");
        var endDatePicker = $find(endDatejQueryObject.attr("id"));
}
Its all good for RadDatePicker but when i change it to 
[id$='AdvancedInsertForm_AdvanceControlPanel']it doesn't return any panel control.



Ivana
Telerik team
 answered on 30 Nov 2011
1 answer
73 views
hi sir,

iam getting an issue of radwindow, when cursor placed on radwindow and dragging...parent page height is growing on....as shown in attached image ...when we inspected that in mozilla 

<div style="position: absolute; left: 0px; top: 0px; background-color: rgb(170, 170, 170); opacity: 0.5; z-index: 3000; width: 1007px; height: 4431px;unselectable="on"; class="TelerikModalOverlay"> </div>
here the height is increasing dynamically...cant we fixed the height to the parent page height.... please give me a solution for this as soon as possible ...i tried very hard for it ... its urgent... 

Thanks 
Rajesh 

Dobromir
Telerik team
 answered on 30 Nov 2011
1 answer
52 views
Hi All

I have a RadTreeView in a Rad Combo box, when a user loads the page I pre select the values to be shown by default.
This is the code I use:

                txtActivityLocation.Items(0).Attributes("nodeValue") = L_ds.Tables(0).Rows(0)("Location_ID").ToString
                txtActivityLocation.Items(0).Value = L_ds.Tables(0).Rows(0)("Location_ID").ToString
                txtActivityLocation.Items(0).Text = L_ds.Tables(0).Rows(0)("Location").ToString

This has stopped workiing. I'm running on 1115

I have debugged an the code is being run with correct data,

I have a working VM that is on 712

Andy
Andy Green
Top achievements
Rank 2
 answered on 30 Nov 2011
3 answers
138 views

Hello, 

I've got a problem with opening a pdf wich is generating by the function ExportToPdf() of the radgrid.

The pdf opens correctly in adobe acrobat reader, adobe viewer, foxit reader and some other pdf programs.
Yet there are some pdf programs which opens a pdf and displays nothing or give an error
with following message. "error rendering page invalid stream filter" like PDF Studio.

Does someone had the same problem. If yes what's the solutions to this problem.

Thanks!!!!
Mira
Telerik team
 answered on 30 Nov 2011
12 answers
519 views
hi, i have a radgrid that i am progratically adding a grouping to. i am trying to change the column widths, but it is not applying the changes, the columns are the size of the data or column headr, which ever is the wider (f the content is a data it's 10 charactes for example)

i have not set a width for the grid itself,

i have even tried this on prerender for the grid:

RadGrid1.MasterTableView.Columns(1).HeaderStyle.Width = System.Web.UI.WebControls.Unit.Pixel(500)

RadGrid1.MasterTableView.Columns(2).HeaderStyle.Width = System.Web.UI.WebControls.Unit.Pixel(500)

RadGrid1.MasterTableView.Columns(3).HeaderStyle.Width = System.Web.UI.WebControls.Unit.Pixel(500)

RadGrid1.MasterTableView.Columns(4).HeaderStyle.Width = System.Web.UI.WebControls.Unit.Pixel(500)



and it is not applied the fist 5 columns are about 20-50px depending on what the data is
Remco
Top achievements
Rank 1
 answered on 30 Nov 2011
2 answers
77 views
Hi,
   I have small problem and expecting solutions from Experts.
I'm trying to use this link as reference
http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/contextmenu/defaultcs.aspx

When user creates a folder in to tree view using Context menu, same folder should be created in server side. Here Problem is, when user creates a new folder it directly goes to Edit mode. when user changes name from New Folder to some name <Name> then i have to track that change and the same change i have to apply at server side folder also. so that Folders which are listed in to Client side and folders in server side will be in sync.

Thank you so much in advance for whoever solves my problem. :)
Vinoth
Top achievements
Rank 1
 answered on 30 Nov 2011
1 answer
71 views
Hi

I write

background

 

: url(/Images/signUp_bg.png) no-repeat;

and the editor rewrites to

 

background

 

: url(/images/signup_bg.png) no-repeat;

Lower caps.

 

The problem is that the company decided to host pour asp.net site on linux servers ruuning virtual windows servers, and the caps are important cause the hosted pages cannot find the images, is there a way to prevent caps formatting for the styles in the rad editor

thanks

Rumen
Telerik team
 answered on 30 Nov 2011
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?