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

I have a very strange problem.  Hopefully I can explain it to you.  Unfortunately due to the complexities of my application I doubt I'll be able to provide a sample via a support ticket.

Here's the scenario:

I have a master page, a child master page, a content page and a user-control on the content page.  My main master page simply has a header, main menu, content placeholder and a footer, and is used on every page of my application.  I have several different child masters, but this one in particular has two columns - one for a left vertical menu and one for the content.  I use this combination more often than any other, as most of my pages display a left menu.

In one particular user control, I have a nested radGrid.  The data is displaying properly.  However, whenever I expand a parent item the parent column widths change (even though I specify the columns widths in the HeaderStyle and ItemStyle of the grid).  So, I thought I should add the TableLayout="Fixed" attribute to my MasterTableView.  This solved the column width problem, but now my left menu (which resides in my child master page) disappears.  As soon as I remove the TableLayout="Fixed" attribute the left menu appears again.

Also, if I leave the TableLayout attribute there but simply hide the entire grid, the left menu appears again.  As soon as I make the grid visible again, the left menu disappears.

Needless to say it took me quite some time just to figure out that the TableLayout attribute was causing the problem, but I have no idea how to fix it.  Is there some other way I should be enforcing that the column widths don't change when I expand a parent item?

Hopefully somebody can help me out with this one.

Thanks.

Steven Black
Top achievements
Rank 1
 answered on 30 May 2010
4 answers
555 views
Hi,

Hope someone can help figure this out with me.

I am exporting data from RadGrid to CSV ...

RadGrid1.ExportSettings.OpenInNewWindow =

true;
RadGrid1.ExportSettings.ExportOnlyData =
true;
RadGrid1.ExportSettings.IgnorePaging =
true;
RadGrid1.MasterTableView.ExportToCSV();

I have paging switched on and PageSize set to 10.
I have over 10 pages of data but when I click to export it only exports the first page.

Please can someone help. I'm sure its probably something really simple but I cannot see it.

Many thanks

Talys
Top achievements
Rank 1
 answered on 29 May 2010
4 answers
135 views
Dear Sir
 
i Want to worked on Scheduler control. Its working Fine.
But In case of multiple Provider i want to disable particular Cell. How can i do this.

i just attach my jpg file please see and give me feedback.

Thank you.
Chandan Kumar
Top achievements
Rank 1
 answered on 29 May 2010
3 answers
263 views
Hi Team,

I have a 3-level Grid with usercontrol popups for edit form. When I enter data in the popup for the 1st level (parent grid) and click save, the data is getting validated and the validation summary is being displayed in a radwindow. But if I do the same for the 2nd level (child grid) popup, it is not displaying the validation summary. It just displays the text "*" if there's an error on validation. How can I get it to display the validation summary?

Btw, the RadGrid is enclosed in a RadAjaxPanel. And childgrid's popup controls are also enclosed in a RadAjaxpanel, RajPanelBar. Could this by any chance have anything to do with the validation summary not getting displayed for the childgrid popup?

Please let me know if you need more information. Thanks for your help!
UserControl - Popup1: 
--------------------------- 
<uc1:ContactDtls ID="uctlLocationDtls1" ValidationGroup="ADDRESS" Title="Address" 
runat="server" /> 
<asp:Button ID="btn_Save" runat="server" Text="Save" CommandName="PerformInsert" 
                            Visible='<%# DataItem is Telerik.Web.UI.GridInsertionObject %>' ValidationGroup="ADDRESS" OnClientClick="ShowAlert2()" /> 
                     
UserControl - Popup2: 
--------------------------- 
<telerik:RadTextBox ID="txt_ContactLName" runat="server" Width="100" MaxLength="50"   ValidationGroup = "CONTACT"                                                       onkeypress="return isCharKey(event);" CausesValidation="true"
</telerik:RadTextBox> 
<asp:RequiredFieldValidator ID="rfv_txt_LastName" ControlToValidate="txt_ContactLName" ValidationGroup="CONTACT" ErrorMessage="Last Name required" Text="*" runat="server"></asp:RequiredFieldValidator> 
<asp:Button ID="btn_Save" runat="server" Text="Save" CommandName="PerformInsert" 
Visible='<%# DataItem is Telerik.Web.UI.GridInsertionObject %>' CausesValidation="true" ValidationGroup="CONTACT" OnClientClick="ShowAlert1()" /> 
<asp:ValidationSummary ID="ValidationSummary1" ShowMessageBox="false" ShowSummary="true" runat="server" ValidationGroup="CONTACT" />                                                      
 
Client.aspx: (File containing the Grid) 
--------------------------------------------- 
<script language="javascript" type="text/javascript"
 
     function ShowAlert1() { 
         var valGroup = Page_ClientValidate("CONTACT"); 
         var summary = document.getElementById('divSummary1'); 
         if (!valGroup) { 
             radalert(summary.innerHTML, 400, 100, 'Summary'); 
             return false
         } 
         else 
             return true
     } 
 
     function ShowAlert2() { 
         var valGroup = Page_ClientValidate("ADDRESS"); 
         var summary = document.getElementById('divSummary2'); 
         if (!valGroup) { 
             radalert(summary.innerHTML, 400, 100, 'Summary'); 
             return false
         } 
         else 
             return true
     } 
 
        function isCharKey(evt) { 
             //debugger; 
            var charCode = (evt.which) ? evt.which : event.keyCode 
            if ((charCode > 64 && charCode < 91) || (charCode > 96 && charCode < 123) || charCode == 39 ) { 
                return true
            } 
            else { 
                return false
            } 
        } 
    </script>                                                    

Pradeep Enugala
Top achievements
Rank 1
 answered on 29 May 2010
2 answers
116 views
Greetings,
    In my MVC application there is a page which uses RadMultiPage with two views.  Each view contains code which uploads data to the Server, like the following:

 

<iframe src='EditPage.aspx' name='hFinderUpload' id='Iframe2' style="width:0;height:0;border:0px solid #fff;" ></iframe>

 

 

<form action="<%=Url.Action("UploadAttachment", "PageContent")%>" method="post" enctype="multipart/form-data" target='hFinderUpload'>

 

 

<fieldset>

 

 

<div id='Div1'>

 

 

<label for='hFinderUploadFile'>File:</label>

 

 

<input type='file' name='hFinderUploadFile'id='File1' size='40' />

 

 

</div>

 

 

<div id='Div2'>

 

 

<input type='submit' id='Submit1' name='hFinderButton' value='Upload File' />

 

 

</div>

 

 

</fieldset>

 

 

</form>

The problem is that when the mouse is passed over the submit buttons, the controller/action url that appears at the bottom of the browser is correct for one but not for the other view.  The view that doesn't work shows Edit?rwndrnd=some decimal number, where some number varies with the execution of the app.  And then ofcourse, the action in the controller does not get called when the browser shows Edit?rwndrnd=somenumber.

Is this something that cannot be done or is this an issue with RadWindow / RadMultiPage ?

Thanks in advance,
Eugene

 

Eugene
Top achievements
Rank 1
 answered on 28 May 2010
2 answers
77 views
I added a custom control, a text box, to the Advanced form. I also added a CustomValidator for the control with a server side function for the OnServerValidate event.  However, my CustomValidator is totally ignored when the form is submitted.  I noticed that the CustomValidator for the default DurationValidator is called but not my added CustomValidator.
Do I need to add my CustomValidator to the Scheduler ValidatorGroup? If the answer is yest, then how should I add my CustomValidator to the scheduler's ValidatorGroup?
Thanks.
Derek Feng
Top achievements
Rank 1
 answered on 28 May 2010
2 answers
153 views
Good morning,

Once you are finished with a RadProjectArea, is there a way to clear the RadURID in the address bar? I have other tasks that I need to complete after adding an attachment, but I can't because of the URID in the Url. Any ideas / suggestions? Thanks

Eric
Eric Moore
Top achievements
Rank 1
 answered on 28 May 2010
3 answers
105 views
I have a pair of RadListBoxes that work together as documented.

I use the contents of the RadListBox2 as the names for some tabs in a RadTabStrip that I configure/use elsewhere in the page. The RadTabStrip is defined during Page_Load. Currently when I look at the RadListBox2.Items, I only see the items that were there before the post-back and none of the newly transferred items, so my RadTabStrip does not contain the newly added items (if I do another post-back, the new items show up because the transfer event fires successfully after the Page_Load).

I suppose I could wait to create the tabs until the OnTransferred event fires, but that requires some code restructuring and seems a bit backwards to me in the page life cycle. Seems like the transfer should be happening during page load.

Does anyone have any suggestions on how to achieve my goals in Page_Load or Page_Init rather than in OnTransferred?

Here is how I have the controls configured:
                <telerik:RadListBox ID="RadListBox1" 
                                    runat="server" 
                                    Height="190px" 
                                    Width="230px" 
                                    AllowTransfer="true" 
                                    TransferToID="RadListBox2" 
                                    TransferMode="Move" 
                                    AutoPostBackOnTransfer="true" 
                                    AllowTransferDuplicates="false" 
                                    AllowTransferOnDoubleClick="true" 
                                    EnableDragAndDrop="false">  
                </telerik:RadListBox> 
                <telerik:RadListBox ID="RadListBox2" 
                                    runat="server" 
                                    Height="190px" 
                                    Width="200px" 
                                    AutoPostBackOnReorder="true" 
                                    AllowReorder="true" 
                                    ButtonSettings-ShowReorder="true" 
                                    ButtonSettings-ReorderButtons="Common">  
                </telerik:RadListBox> 
jrussel21
Top achievements
Rank 1
 answered on 28 May 2010
2 answers
110 views
Hi!  I would like to set my listview up so that when I reach the last page, if the user clicks the increase button, it will take them back to the first page.

Is there a way I can do this using the RadDataPagerSliderField pager?

Thanks!
Angie
Top achievements
Rank 1
 answered on 28 May 2010
4 answers
240 views
Hi All,

I am trying to export to PDF on the grid. This Export to PDF button is displayed on the top the Grid using the Property Display On top.
But this is rendering me as a plain PDF Document, where nothing is  displayed. Along with Export to PDF i even have a button for Export to Excel for which the grid is exported on the excel. I have a Grid with 3 levels of Hireachy.

Iam using the licensed version of the telerik.

Can any one pls let me why Export to PDF is not Working.

One more issue i even buttons for Expand All. when clciked on this button all the child level grids should be expanded. This button is also placed on the top of the Grid. In this iam unable to find the Inner Grid on the Item Command Event.
Can any one pls let me know how to identify the InnerGrid on Item Command Event.

Pls its very urgent .

Any help form you guys really help us in going ahead.

Regards,
Asra
Deepa Balasundaram
Top achievements
Rank 1
 answered on 28 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?