Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
99 views
Hi there,

Iam using a Rad grid which has three hierarchial levels when iam trying to export data to excel it is exporting only parent data not the child data on searching of forums i found like hierarchyDefaultexpanded=true in source page with this onpage load the first level of the child getting expanded and on exporting it is sending the data with the first child only not the remaining two childs.What i want is like on page load the child shouldn't be expanded and on click of export button all childs must be exported.Here is the code iam using
gviewFormBlok.MasterTableView.HierarchyDefaultExpanded = true;
        gviewFormBlok.ExportSettings.ExportOnlyData = true;
        gviewFormBlok.ExportSettings.IgnorePaging = true;
         
          gviewFormBlok.ExportSettings.OpenInNewWindow = true;
  
        
          
  
          
        gviewFormBlok.MasterTableView.ExportToExcel();
Can you suggest me on how to achieve requirement and iam using Q3 2009 sp1 version
Mira
Telerik team
 answered on 20 Jul 2011
2 answers
97 views
We're working on a customized advanced form & running into what appears to be some strange behavior. For example, there are a couple of checkboxes in the advanced insert form which fire CheckChanged events, but the events are only fired every other time a user interacts with the checkbox (initial change fires event, second change does not, third does, etc). So, seems like perhaps the checkboxes are somehow only firing the events when their state has changed from their value when the form was created. Is this a state maintenance issue?

I have enabled ViewState on both the RadScheduler and then on the checkbox controls themselves (when they didnt appear to be inheriting that from the scheduler). Also, the scheduler is inside an AJAX update panel.

Thanks for your help!

Sean
Peter
Telerik team
 answered on 20 Jul 2011
2 answers
219 views
Hello,

I have a RadButton on my page which has an OnClientClicking function tied to it.  If I click the button with my mouse, this code is executed as expected.  However, at some points in my page I need to programmatically call the click event.  When I do this, the OnClientClicking is not being called.  OnClientClicked is fired, but I was hoping that the clicking event would be as well.  Is this the intended behavior of the RadButton, or is there something else other than 'click' that I need to call to get this event to fire?  Or is there a way to cancel an event in the 'onclientclicked' function so I can just use that and not the clicking event?  Below is a sample of what I'm talking about (not my exact code but hopefully should give you an idea of what is occuring). 

Thanks!
Richard

// button definition
<telerik:RadButton onclientclicking='Clicking' runat='server' text='Test' id="myButton" />

// javascript
function Clicking(sender, args)
{
   if (!confirm('Ok to continue this action?'))
       args.set_cancel(true);
}

// this function programically causes a click
function ProgramClick()
{
   var btn = $find('myButton');
   btn.click(); // the Clicking event will not be fired.
}
Richard
Top achievements
Rank 1
 answered on 20 Jul 2011
3 answers
104 views
If you add a table to a RadEditor in Firefox, and set its alignment to center, the drag handles remain left or right aligned with the edge of the editor, depending on where it was located prior to setting the alignment to center.

Please see the attached picture for an example.

I can only reproduce this in Firefox. I am using Firefox version 3.6.10, and Telerik version 2010.2.826
Rumen
Telerik team
 answered on 20 Jul 2011
2 answers
107 views
I have a grid tied to an EntityDataSource and can show the columns fine. One of the columns is a guid and I want to show a related table value instead of the guid. I include the related table in the EDS definitions. How do I refernce in the column? The following does not work. Thanks.

<telerik:GridBoundColumn DataField="it.Facility.FacilityName" DataType="System.String"

    FilterControlAltText="Filter Facility column" ReadOnly="True"

    HeaderText="Facility" SortExpression="Facility"

    UniqueName="Facility">
</
telerik:GridBoundColumn>

 

Genti
Telerik team
 answered on 20 Jul 2011
2 answers
315 views
hi dear telerik team :
i want to copy a textbox text property to another when typing (should be exactly the same)...
so please see the below codes (copy and paste and Test them) :
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="keyup.Default" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
    <script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <style type="text/css">
        fieldset
        {
            width:300px;
        }
        legend
        {
            color:Blue;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <div>
        <fieldset>
            <legend>keyup</legend>
            <asp:TextBox ID="TextBox1" runat="server" onkeyup="onkeyup_TextBox1();"></asp:TextBox>
            <br />
            <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
        </fieldset>
        <br />
        <br />
        <fieldset>
            <legend>keydown</legend>
            <asp:TextBox ID="TextBox3" runat="server" onkeydown="onkeydown_TextBox3();"></asp:TextBox>
            <br />
            <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
        </fieldset>
        <br />
        <br />
        <fieldset>
            <legend>keypress</legend>
            <asp:TextBox ID="TextBox5" runat="server" onkeypress="onkeypress_TextBox5();"></asp:TextBox>
            <br />
            <asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
        </fieldset>
        <br />
        <br />
        <fieldset>
            <legend>Telerik - keyup</legend>
            <telerik:RadNumericTextBox ID="RadNumericTextBox1" runat="server" DataType="System.Int32"
                onkeyup="onkeyup_RadNumericTextBox1();">
                <NumberFormat DecimalDigits="0" />
            </telerik:RadNumericTextBox>
            <br />
            <telerik:RadNumericTextBox ID="RadNumericTextBox2" runat="server"
                DataType="System.Int32" Culture="fa-IR" Width="125px">
                <NumberFormat DecimalDigits="0" />
            </telerik:RadNumericTextBox>
        </fieldset>
    </div>
        <script type="text/javascript">
            function onkeyup_TextBox1() {
                $('#TextBox2').val($('#TextBox1').val());
            }
            function onkeydown_TextBox3() {
                $('#TextBox4').val($('#TextBox3').val());
            }
            function onkeypress_TextBox5() {
                $('#TextBox6').val($('#TextBox5').val());
            }
            function onkeyup_RadNumericTextBox1() {
                var RadNumericTextBox1 = $find("<%= RadNumericTextBox1.ClientID %>");
                var RadNumericTextBox2 = $find("<%= RadNumericTextBox2.ClientID %>");
 
                RadNumericTextBox2.set_value(RadNumericTextBox1.get_value());
            }
    </script>
    </form>
</body>
</html>


for my purpose onkeyup event on regular asp.net textbox controls is ok...
but it does n't work sometimes in telerik input controls!(there is no problem about onkeyup syntax , just when typing in first text box the other one have 1 character less , why ?)

which event should i use for telerik input controls for doing this job?

thanks in advance

Majid Darab
Top achievements
Rank 1
 answered on 20 Jul 2011
2 answers
100 views
Could you please show some examples of creating a context menu from server side code?

Thanks
Kate
Telerik team
 answered on 20 Jul 2011
1 answer
108 views
Hi Dear
I have project and use rad grid & menu to this project and work well.
but after publish project on windows 2003 server and run in IIS, I can log in and use project
and redirect the other page when i click in radmenu items don't navigate to other page
and go to Default page.

Thanks.

Peter
Telerik team
 answered on 20 Jul 2011
6 answers
115 views
Hi,
I’m using the Rad schedular in one of my pages. I'm using the advancedEditForm with no templates. I have one extra customized attribute called location. The problem I’m have is happening during editing an appointment or insert new one specifically when I click on the combos for "startdate", "starttime", "enddate" or "endtime" I get the following JavaScript error "Error: 'iframeShim.style' is null or not an object" when i debug the error i find it is happening in the following line "b.iframeShim.style.top=(RadHelperUtils.IsDefined(c))?(c+"px"):b.style.top; " within the ScriptResource.axd file
I can't undertand why is this error hapening. The telerik dll version I'm using is 2010.1.519.35. Could you pleae helpmeon this matter.
Thanks,
Nasiem
Peter
Telerik team
 answered on 20 Jul 2011
2 answers
227 views
Is it possible that I export multiple radgrid to multiple excel worksheets? I have for example radGrid1, radGrid2, radGrid3 and I want after export have 3 worksheets in one *.xls file. Please help.

Thanks.
sebastian
Top achievements
Rank 1
 answered on 20 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?