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

I am making a Telerik Radgrid with EntityDataSource control as its Datasource.

The current table has a Many-To-Many relationship with a second table. I wanted to show the list of Title (field) of the second table on a repeater inside a GridTemplateColumn.

Is it possible to fill the repeater with the list of object from the second table? If it is, then how?

Thanks a lot.

Tsvetina
Telerik team
 answered on 05 Dec 2011
1 answer
97 views
Hello, I am trying to export to pdf using a radeditor, however, when i open the file with adobe reader i get this message:

"Adobe Reader could not open 'Certificate.pfd' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and was wasn't correctly decoded)"

i am assigning to the radeditor.content the html code:

<h1>
<span class="titulo" id="ctl00_ContentPlaceHolder1_Label1">Aplicaciones por tipo</span>
</h1>
<p>
<span id="ctl00_ContentPlaceHolder1_Label2">Aqu&iacute; encuentra las aplicaciones agrupadas por tipo</span>
</p>

Any suggestions?
this is how my radeditor is defined:
 <telerik:RadEditor ID="redCertificate" runat="server" Width="90%" Height="800px"
                Language="es-ES"
                ContentFilters="PdfExportFilter, DefaultFilters">
                <exportsettings openinnewwindow="true" filename="Certificate">
                <Rtf PageHeader="RadEditor content" />
                <Pdf PageTitle="Sample page title" />
            </exportsettings>
                <content></content>
            </telerik:RadEditor>

thanks in advance
Shinu
Top achievements
Rank 2
 answered on 05 Dec 2011
2 answers
59 views
Hi. I have a weird issue where I am trying to enable an HTML button with JQuery from TabStrip. The button is enabled on Chrome and Firefox but only appears enabled when you mouse off the TabStrip in IE7 (or IE7 standards mode under IE8 & IE9). This is a rather urgent problem that needs resolving. Below is the code I'm using. Thanks.

Daniel
<telerik:RadScriptManager runat="server" ID="RadScriptManager1">
    <Scripts>
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
    </Scripts>
</telerik:RadScriptManager>
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
 
    <script type="text/javascript">
        window.$ = $telerik.$;
 
        function OnClientTabSelected(sender, eventArgs) {
            $("#Button1:button").removeAttr("disabled");
        }
         
    </script>
 
</telerik:RadCodeBlock>
<telerik:RadTabStrip ID="RadTabStrip1" runat="server" OnClientTabSelected="OnClientTabSelected" MultiPageID="RadMultiPage1">
    <Tabs>
        <telerik:RadTab runat="server" Text="Root RadTab1">
        </telerik:RadTab>
        <telerik:RadTab runat="server" Text="Root RadTab2">
        </telerik:RadTab>
        <telerik:RadTab runat="server" Text="Root RadTab3">
        </telerik:RadTab>
    </Tabs>
</telerik:RadTabStrip>
<telerik:RadMultiPage ID="RadMultiPage1" runat="server">
    <telerik:RadPageView ID="RadPageView1" runat="server">
        RadPageView1</telerik:RadPageView>
    <telerik:RadPageView ID="RadPageView2" runat="server">
        RadPageView2</telerik:RadPageView>
    <telerik:RadPageView ID="RadPageView3" runat="server">
        RadPageView3</telerik:RadPageView>
</telerik:RadMultiPage><br />
<br />
<input id="Button1" type="button" value="button" disabled="disabled" />


Daniel
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 05 Dec 2011
4 answers
195 views
Hi There,

I am facing an issue and not able to figure out what is happening. Here is the scenario.

I have a
MasterPage->ContentPage->RadGrid
MasterPage->ContentPage->RadWindow

I have enabled drag drop functionality on the RadGrid.
Once an Item is dropped a RadWindow(Modal Popup) opens where the user can select a MSDD (stored in the database).
This Rad Popup window has a user control which also has another RadWindow which opens on click of an image and the user can configure a MSDD on this window.

The problem starts when the 2 Popup is used to save new or delete existing MSDD in subsequent calls.
When I reach to the main page I have code which rebinds the grid which contains the newly added MSDD but for mentioned scenario the RadGrid completely disappears as it cannot find any data for that grid on the AjaxRequest method on the server.

It is really difficult to explain the exact issue so I thought of creating a sample project which could re-create the problem, but I was not successful in that.

I cannot attach the sample project due to file type limitaion on this site.
So I am really not sure if its possible to show what I am trying to achieve.

If required I can paste the code for each page.

Thanks,
Nilesh

Nilesh
Top achievements
Rank 1
 answered on 05 Dec 2011
1 answer
83 views
Hi, I have a RadGrid, created entirely programatically, I need to add the equivalent to

<Telerik:GridTemplateColumn UniqueName="Assigned" HeaderText="Assigned">
                    <ItemTemplate>
                        <Telerik:RadButton ID="rbAssigned" runat="server" ToggleType="CheckBox" ButtonType="ToggleButton"
                            AutoPostBack="false" Skin="Forest" EnableEmbeddedSkins="true" EnableEmbeddedBaseStylesheet="true"
                            OnClientLoad="ButtonLoad" CommandName="Select" OnCheckedChanged="ToggleRowSelection">
                            <ToggleStates>
                                <Telerik:RadButtonToggleState PrimaryIconCssClass="rbToggleCheckboxChecked" Selected="true" />
                                <Telerik:RadButtonToggleState PrimaryIconCssClass="rbToggleCheckbox" />
                            </ToggleStates>
                        </Telerik:RadButton>
                    </ItemTemplate>
                    <ItemStyle Width="50px" />
                </Telerik:GridTemplateColumn>

How can I do this? I didn't find any example
Shinu
Top achievements
Rank 2
 answered on 05 Dec 2011
1 answer
234 views
I have a RadListBox implemented thusly:

    <telerik:RadPane ID="radPaneLeft" runat="server" Scrolling="None" MinWidth="170" MaxWidth="300"><br>      <telerik:RadSlidingZone ID="radSlidingZone" runat="server" Width="22" Height="0" ClickToOpen="true" DockedPaneId="radSlidingPane"><br>        <telerik:RadSlidingPane ID="radSlidingPane" runat="server" BackColor="#F0F8FF" CssClass="slidingPane" TabView="TextAndImage" IconUrl="~/Images/hierarchy.gif"<br>                                DockOnOpen="true" OnClientDocked="radSlidingPane_Docked" OnClientUndocked="radSlidingPane_Undocked"><br>          <telerik:RadListBox ID="radListBoxStopes" runat="server" Width="100%" Height="100%" AutoPostBack="true" <br>                              OnItemCreated="radListBoxStopes_ItemCreated" OnSelectedIndexChanged="radListBoxStopes_SelectedIndexChanged"><br>            <ItemTemplate><br>              <asp:Panel runat="server"><br>                <asp:Label ID="labelStope" runat="server" Text='<%# Eval("Description") %>' CssClass="muckListPrimary" /><br /><br>                <asp:Label ID="labelUnits" runat="server" Text='<%# Eval("Units", "{0:0 units}") %>' CssClass="muckListSecondary" /><br>                <asp:HiddenField ID="hidFieldMaterial" runat="server" Value='<%# Eval("Material").ToString() %>' /><br>              </asp:Panel><br>            </ItemTemplate><br>          </telerik:RadListBox><br>          <telerik:RadContextMenu ID="radContextMenu_ListBoxStopes" runat="server" OnItemClick="radContextMenu_ListBoxStopes_Click"><br>            <Targets><br>              <telerik:ContextMenuControlTarget ControlID="radListBoxStopes" /><br>            </Targets>          <br>            <Items><br>              <telerik:RadMenuItem Text="Set as desktop" Value="D" /><br>              <telerik:RadMenuItem Text="Open in a new window" Value="W" /><br>            </Items><br>          </telerik:RadContextMenu><br>        </telerik:RadSlidingPane><br>      </telerik:RadSlidingZone><br>    </telerik:RadPane><br>

I would like to be able to double-click on any item in the ListBox and have the ContextMenu appear.  I've tried several approaches to make this work but to no avail.

How would I do it?

Robert



Princy
Top achievements
Rank 2
 answered on 05 Dec 2011
1 answer
369 views
I'm writing to ask how best to align a RadToolBarDropDown item to the far right of the RadToolBar;

Setting dir="rtl" on the RadToolBar itself aligns the RadToolBar to the right - but setting dir="rtl" on the RadToolBarDropDown has no affect;

Thanks in advance for any insight;  Best regards - Rob

<telerik:RadToolBar ID="RadToolBar1" runat="server" Width="100%" 
           Skin="Black">
           <Items>
               <telerik:RadToolBarButton runat="server" Text="Documents">
               </telerik:RadToolBarButton>
               <telerik:RadToolBarButton runat="server" IsSeparator="true">
               </telerik:RadToolBarButton>
               <telerik:RadToolBarDropDown runat="server" Text="Fleet Advantage">
                   <Buttons>
                       <telerik:RadToolBarButton runat="server" Text="Sign Out" >
                       </telerik:RadToolBarButton>
                       <telerik:RadToolBarButton runat="server" Text="Contact Us" >
                       </telerik:RadToolBarButton>
                   </Buttons>
               </telerik:RadToolBarDropDown>
           </Items>
       </telerik:RadToolBar>
Princy
Top achievements
Rank 2
 answered on 05 Dec 2011
1 answer
30 views
Hi,

I have same problem trying to achieve single expand in hierachical grid. I have searched old posts and found same but answers are keep pointing to missing links. Can anybody help regarding this issue ?

http://www.telerik.com/help/aspnet-ajax/grdsingleexpandinhierarchicalgrid.html

Regards,
              ctikiki
Shinu
Top achievements
Rank 2
 answered on 05 Dec 2011
1 answer
160 views
Hi everybody,

I would like to set a default value in the textbox of my radprompt, but I still can't do that :(

The prompt is displayed when user click on an image in my application, and I implement the javascript in behind-code.
Example :

StringBuilder sb = new StringBuilder();
            sb.Append("<script language= javascript ");
            sb.Append("type=\"text/javascript\">");
            sb.Append("function promptEmail");
            sb.Append(this.ClientID);
            sb.Append("(param){radprompt('email:', promptEmailCallBack, 300, 100, param, 'Title');}");
            sb.Append("</script>");
            if (!Page.ClientScript.IsClientScriptBlockRegistered("promptEmail" + this.ClientID))
                Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "promptEmail" + this.ClientID, sb.ToString());

I add an argument to radprompt like
radprompt('email:', promptEmailCallBack, 300, 100, param, 'Title', 'My Default text');

but this display nothing in my textbox :(

Can you please help me?

Thanks
jean
Princy
Top achievements
Rank 2
 answered on 05 Dec 2011
1 answer
49 views
I cannot seem to find an simple explanation as to how to reference a GridDropDownColumn and set its datasource in the ItemDataBound event.  I cannot figure out how to not get 'null' back for this:

GridDataItem dataItem = (GridDataItem)e.Item;
DropDownList ddl = (DropDownList)dataItem.FindControl("Status"); 
OR
DropDownList ddl = (DropDownList)dataItem["Status"].Controls[0]
ddl.DataSource = _WhatEver; <=== ddl is null

J
Shinu
Top achievements
Rank 2
 answered on 05 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?