Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
332 views
Hi All,
I want to open a PDF file in a  Rad Window.I have gone through some forum replies and unfortunately in almost all replies the solution is to set the below 2 properties in RadWindow.
VisibleOnPageLoad="true" ShowContentDuringLoad="true".

If I set VisibleOnPageLoad property , as name suggests when the parent page loads RadWindow will also get displayed.
My requirement is when the parant page loads,RadWindow should be hidden and when I click on a link Radwindow should open with the PDF.

RadWindow Code:
  <telerik:RadWindow ID="TestWindow" runat="server" EnableEmbeddedSkins="True" Skin="Windows7" 
                   Modal="True" Width="900" Height="500" KeepInScreenBounds="True" Overlay="True" 
                   DestroyOnClose="false" VisibleStatusbar="false" VisibleTitlebar="true" 
                    ShowContentDuringLoad="true"
                   >
                    <ContentTemplate>
                                               
                    </ContentTemplate>
                  </telerik:RadWindow>

I am opening Radwindow using javascript code

 function showRadWnd() {
                         window.radopen("RadExport.pdf", "Test");
                        return false;
        }
Please help me.

A2H
Top achievements
Rank 1
 answered on 03 Dec 2012
1 answer
811 views
I'm attempting to use client side API to hide the title, another way i'm trying to do it is by setting the title attribute to false and neither are working. 

 function launchRadWindow(url)
    {
        var oWnd = $find("<%= DialogWindow.ClientID %>");
        oWnd.show();
        oWnd.setSize(640, 480);
        oWnd.setUrl(url);
        oWnd.minimize();
        oWnd.maximize();
        oWnd.restore();
        
    }
<telerik:RadWindow VisibleOnPageLoad="False" ID="DialogWindow" runat="server" Height="480px" Width="640px" VisibleStatusbar="False" NavigateUrl="false" IconUrl="false" Skin="Default" Behaviors="Close, Minimize, Maximize, Move, Resize" Overlay="True"> </telerik:RadWindow>
Princy
Top achievements
Rank 2
 answered on 03 Dec 2012
3 answers
178 views
Hi,

I have a screen that will give search result ( Invoice no(s) ) and need to be binding in check box list.

this is the check box that i added in aspx page. but  I would like to show dynamically based on search result ( no of invoice no(s))

  <asp:TableCell CssClass="fls">
<telerik:RadButton ID="chkSearchResult" ToggleType="CheckBox" runat="server" Text="HQ09504">
       <ToggleStates>
            <telerik:RadButtonToggleState Text="HQ09504" PrimaryIconCssClass="rbToggleCheckboxChecked" />
           <telerik:RadButtonToggleState Text="HQ09504" PrimaryIconCssClass="rbToggleCheckbox" />
      </ToggleStates>
</telerik:RadButton>
</asp:TableCell>

Please give me sample code to generate check boxes at run time.

Thanks in advance.
Princy
Top achievements
Rank 2
 answered on 03 Dec 2012
3 answers
301 views
I have a data bound combobox. How can I set the selected value to the last item from my database?

Thanks, Marty
Princy
Top achievements
Rank 2
 answered on 03 Dec 2012
1 answer
260 views
I am using two columns in my EditFormSettings, and I want to set the width of the text box on the edit to 90%.  I have tried using  multiple properties on the ItemStyle, like ItemStyle-CssClass="NameOfCssClassThatHas90%Width" and ItemStyle-Width="90%" without any success.  The textbox that shows up only has about 40% width.

Any Suggestions?  As I have about 20 controls in the edit form, using a code-behind isn't my preferred method, and I didn't see how to use a ColumnEditor Class.  Can one columneditor class be attached to multiple GridBoundColumns?

I am trying to create a professional looking application, and without changing that width, it just doesn't look good.

Here is my code for the column, if you are interested.  You will notice this is an "email" type form.

 

 

<telerik:GridBoundColumn DataField="cRegarding" EditFormColumnIndex="0" MaxLength="150"

 

 

 

FilterControlAltText="Filter cRegarding column" HeaderText="Subject"

 

 

 

SortExpression="cRegarding" UniqueName="cRegarding" ></telerik:GridBoundColumn>

 

Shinu
Top achievements
Rank 2
 answered on 03 Dec 2012
21 answers
1.0K+ views
I have a RadGrid that i'm putting into default edit mode following the documentation here: http://www.telerik.com/help/aspnet/grid/grddefaulteditmodeforgriditemsoninitialload.html

Everything works great, except when I have a GridHyperlinkColumn. I will get the error: Column 'FileName' does not belong to table DefaultView.
My HyerlinkColumn code looks like this:
<telerik:GridHyperLinkColumn HeaderText="View Hyperlink" DataTextFormatString="View Hyperlink"
                   DataNavigateUrlFields="FileName" UniqueName="FileName2" DataNavigateUrlFormatString="http://www.xyz.com/{0}"
                   ShowFilterIcon="false" DataTextField="FileName" AllowFiltering="false" >
               </telerik:GridHyperLinkColumn>


protected void RadGrid1_PreRender(object sender, EventArgs e)
{
    if (!IsPostBack)
    {
        foreach (GridItem item in RadGrid1.MasterTableView.Items)
        {
            if (item is GridEditableItem)
            {
                GridEditableItem editableItem = item as GridDataItem;
                editableItem.Edit = true;
            }
        }
        RadGrid1.Rebind(); // It fails with the error here, when the Grid is rebinding.
    }

The error will fail when the grid is rebinding. I'm assuming it's trying to put the HylinkColumn into edit mode, but I don't know enough about the RadGrid to tell it to skip it in the foreach loop.
Alan
Top achievements
Rank 1
 answered on 03 Dec 2012
1 answer
85 views
Hi,

I am using radfilter control to filter my grid. I want to traverse each group and filter of each group programmatically. Currently I am using "RadFilter1.RootGroup.Expressions" method but it shows only root group and it's filter. How do I traverse other group and it's filter. Please help.

Thanks
Alex
Top achievements
Rank 1
 answered on 02 Dec 2012
0 answers
73 views
Hi,
The issue appeasers in RTL direction on some IE8/IE9 that Silver Light is not installed. As I checked JS function "_createLabel" of below code throws this issue:
b.Modules.IFrame=function(p,l){var q=0;
var g=0;
var i=null;
var t="RadUrid";
var k=b;
var h={};
a.extend(this,fileInputAdded:
function(x){
   var v=r();
       a(v).change(a.proxy(s,this)).addClass("ruFileInput");
     if(p._getIsRightToLeft()&&$telerik.isIE){
            var w=$telerik.$("<span></span>").addClass("ruRtlWrap");
            w.append(v);
           v=w[0];
      }
     a(x).append(v);
     var u=p._createLabel(a(v).attr("id"));
     a(x).append(u);
}
...

When direction is RTL, _createLabel throws js error " d("<label>").attr("for",e).html   is null".
I get this on version Q3 2011.

Now I have set it's direction to LTR.
Is it possible to fix issue without upgrading to new version?
mohsen
Top achievements
Rank 1
 asked on 01 Dec 2012
1 answer
99 views
I cant seem to be able to access btnCreateVersion inside of the RadGrid--> MasterTableView -->DetailTables -->GridTableView

I am adding security and need to be able to access the button and make it visible if the user has access to it.

What is the best was of doing this

<CommandItemTemplate>
                                         <asp:ImageButton ID="btnCreateVersion" runat="server" CommandName="CreateVersion" ImageUrl="~/Image/epi_add.png"
                                             Height="14px" Visible="true"></asp:ImageButton>
                                         <asp:LinkButton ID="lblCrtEpi" runat="server" Text="Create Versions" CommandName="CreateVersion" Visible="true"></asp:LinkButton>  
                                     </CommandItemTemplate>
Jayesh Goyani
Top achievements
Rank 2
 answered on 01 Dec 2012
2 answers
98 views
I have this markup which executes:
<telerik:RadAjaxManager ID="ramTicket" runat="server" OnAjaxRequest="ramTicket_AjaxRequest" DefaultLoadingPanelID="ralpPrivate">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="ramTicket">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="panTicketList" />
                <telerik:AjaxUpdatedControl ControlID="panTicket" />
                <telerik:AjaxUpdatedControl ControlID="panTotalTickets" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
 
<telerik:RadCodeBlock runat="server">
    <script type="text/javascript">
        // The subscribed close function for the Ticket window
        function OnTicketClose(sender, args) {
            var ramTicket = $find('<%= ramTicket.ClientID %>');
            ramTicket.ajaxRequest('Rebind: ' + args);
        }
    </script>
</telerik:RadCodeBlock>
and fails to fire the server method ramTicket_AjaxRequest. I've verified that the OnTicketClose function fires with Firebug.

A related point, the loading panel appears as it should, but never goes away.

What is preventing the request?
Matthew
Top achievements
Rank 1
 answered on 30 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?