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

I have radgrid. i am using export to excelML from radgrid. i want give caption or header like "Employee Report 2011-2012". how to get set manually in code behind?

Is there any possible way this one?

Thanks,
Dhamu.
Daniel
Telerik team
 answered on 25 Apr 2011
1 answer
439 views
I have a treeview control embeded into a combobox. I am binding the tree to a sqldatasource, Then I select the first child node of the tree and set it as selected and this all works. What I haven't figured out is how to use the selected node of the tree and set the selected text/value of the parent combobox. I'm trying to do this server-side in c#.

Also I would like to have the tree expanded to show the branch of the tree that has the selected node. If the user selects the dropdown then the tree would show the highlighted selected node.

An example would be greatly appreciated.

Thanks,

Marc

 
Shinu
Top achievements
Rank 2
 answered on 25 Apr 2011
1 answer
161 views
Hi,
i have a gouping in radgrid and i don“t want the order he put, its possible to put the same order that came from DB?

this is my code

<telerik:RadGrid ID="gridAreasAndTopic" runat="server" EnableTheming="false" 
OnNeedDataSource="gridAreasAndTopics_NeedDataSource"
 Skin="WebBlue" AutoGenerateColumns="False" ShowFooter="true">
    <MasterTableView AutoGenerateColumns="false" EditMode="InPlace" ShowFooter="True"
                      TableLayout="Auto" GroupLoadMode="Client">
                      <GroupByExpressions>
                           <telerik:GridGroupByExpression>
                                   <SelectFields>
                                        <telerik:GridGroupByField FieldName="areaName" FieldAlias="Area" />
                                  </SelectFields>
                                  <GroupByFields>
                                     <telerik:GridGroupByField FieldName="areaName"></telerik:GridGroupByField>
                                  </GroupByFields>
                             </telerik:GridGroupByExpression>
                       </GroupByExpressions>
              <PagerStyle Mode="NextPrevAndNumeric" />
              <Columns>
             <telerik:GridBoundColumn DataField="idArea" HeaderText="idArea" Visible="false" ItemStyle-Width="0%">
             </telerik:GridBoundColumn>
             <telerik:GridBoundColumn DataField="idTopic" HeaderText="idTopic"  Visible="false" ItemStyle-Width="0%">
             </telerik:GridBoundColumn>
             <telerik:GridBoundColumn DataField="TopicName" Aggregate="Count" HeaderText="TopicName"   ItemStyle-Width="100%">
              </telerik:GridBoundColumn>
              <telerik:GridTemplateColumn>
               <ItemTemplate>
              <asp:ImageButton ImageUrl="~/App_Themes/InsticcLayout/images/box/error.png" runat="server"
                                                                                                        ID="lnkDeleteAreaTopic" Text="Add" OnClick="lnkDeleteAreaTopic_Click" CausesValidation="false">
               </asp:ImageButton>
             </ItemTemplate>
           </telerik:GridTemplateColumn>
</Columns>
<HeaderStyle HorizontalAlign="Center" />
<ItemStyle HorizontalAlign="Left" />
<FilterItemStyle HorizontalAlign="Center" />
<GroupHeaderItemStyle HorizontalAlign="Left" />
</MasterTableView>
 <ClientSettings AllowGroupExpandCollapse="True">
</ClientSettings>
</telerik:RadGrid>
Mira
Telerik team
 answered on 25 Apr 2011
1 answer
340 views
Hi,
I have a grid and button,which is inside a update panel.
My requirement is to update the grid on button click.
but when i click on button grid is not updating.

Is there anything I have to set in webpage.

Please help me
.
Mira
Telerik team
 answered on 25 Apr 2011
3 answers
94 views
Hello, i'm student , i'm learning  web programing
i saw transparent background of telerik demo , but i don't know do this
http://demos.telerik.com/aspnet-ajax/combobox/examples/default/defaultcs.aspx
what's should i do ?
THANK
Kate
Telerik team
 answered on 25 Apr 2011
1 answer
1.2K+ views
Hello Team,
                     I am using Radajax manager,in the OnAjaxRequest event , i am writing server side method that fetches the records from the database. What happens is, Some times the ajax request gets time out and completed before the methods gets processed [ I mean fetch all the records from the backend and complete the necessary things].


How could i accomplish it by increasing the ajax request timeout.

here with i have attachedthe code for your reference. That will gives you some idea what i am talking.

ClientSide

 <script type="text/javascript" language="javascript">
        <!--
            var gstrPrimaryColor = '#ff6600';
            var gstrSecondaryColor = '#ffdba6';
        
            window.onload = function()
            {
//                setTimeout (function(){
                        var ctrl = window["<%= rdAMErroredRecords.ClientID %>"];
                        ctrl.ajaxRequest("InitialPageLoad");
//                    },
//                    50000);
            }
            function responseEnd(sender, eventArgs) {
             // var vartemp=document.getElementById('<%= hdnServiceRequestEnd.ClientID %>').value;
             //  if(vartemp!=0)
                MakeTableChanges('ErrorRecords');
//               MakeTableChanges('CXErrorRecords');
            }
        
            function MakeTableChanges(tableName){
                var rows = document.getElementById(tableName).getElementsByTagName('tr');
                var n = rows.length;
                for(var i=2; i<n; ++i){
                    var cells = rows[i].getElementsByTagName('td');
                    var tmp = cells[1].innerText;

                    var index = tmp.indexOf('|');
                    
                    if(index == 0){
                        tmp = tmp.substring(1);
                        tmp = '- ' + tmp;
                    }

                    cells[1].className = 'cssField ErroredCol';
                    cells[1].innerText = tmp.replace(/[|]/gi,'\n -');
                }
            }
        -->
        </script>

    </telerik:RadCodeBlock>

<telerik:RadScriptManager ID="rdSMErroredRecords" runat="server" EnablePageMethods="true"   >
    </telerik:RadScriptManager>

<telerik:RadAjaxManager ID="rdAMErroredRecords" runat="server" OnAjaxRequest="rdAMErroredRecords_AjaxRequest"
        ClientEvents-OnResponseEnd="responseEnd"
>
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="rdAMErroredRecords">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlErrorRecords" LoadingPanelID="lpnlErrorRecords" />
                    <telerik:AjaxUpdatedControl ControlID="rdgErroredRecords" LoadingPanelID="lpnlErrorRecords" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>



server Side Code:

 protected void rdAMErroredRecords_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e)
    {
        if (e.Argument == "InitialPageLoad")
            GenerateHTMLReportForErroredRecords();
    }


Please help me on this.

Thanks and Regards!
chithuraj.j
Mira
Telerik team
 answered on 25 Apr 2011
3 answers
107 views

Hi,

                I am using RadGrid,it contains following add,update,delete and multiselect operations,Total no of Columns in my grid is 20.
But am using inline edit ,and i have given MasterTableView width 150%. In edit mode all the controls are coming properly.But while adding, i have mentioned InsertItemDisplay at Bottom.For 20 columns controls are getting overlapped.How to use the mastertableview scroll bar for InsertItemDisplay.

Is it Possible to provide scroll bar for Insert Item display also.
I am using 2008 Q2 release.

Or Is there any Solution in Latest 2011 Q1 Release.


Please Help Me.
Thanks.
Pavlina
Telerik team
 answered on 25 Apr 2011
3 answers
107 views
I want to hide a couple of columns in a grid. At the moment the grid is set to autogenerate columns. Can I hide the columns somehow and also resize the columns.

Thanks

Andrew
Daniel
Telerik team
 answered on 25 Apr 2011
3 answers
182 views
hi,

I have radgrid control and it has template Column, i want to find the control ID(e.g lbl_payable)  inside the rad grid using java script in RowSelected method.

how can i do that ?

thanks in advance morteza
    <telerik:RadGrid ID="RadGrid1" runat="server" onitemdatabound="RadGrid1_ItemDataBound">
    <MasterTableView autogeneratecolumns="False"
                        ClientDataKeyNames="id">
    <RowIndicatorColumn>
        <HeaderStyle Width="20px"></HeaderStyle>
    </RowIndicatorColumn>
 
    <ExpandCollapseColumn>
        <HeaderStyle Width="20px"></HeaderStyle>
    </ExpandCollapseColumn>
        <Columns>
            <telerik:GridBoundColumn DataField="id" DataType="System.Int32" HeaderText="id"
                ReadOnly="True" SortExpression="id" UniqueName="id" Visible="false">
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </telerik:GridBoundColumn>
            <telerik:GridTemplateColumn UniqueName="payable"
                HeaderText="payable">
            <ItemTemplate >
                <asp:Label ID="lbl_payable" runat="server"></asp:Label>
            </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </telerik:GridTemplateColumn>
 
        </Columns>
    </MasterTableView>
    <ClientSettings>
        <ClientEvents OnRowSelected="RowSelected" />
        <Selecting AllowRowSelect="True" />
    </ClientSettings>
</telerik:RadGrid>


javascript code
function RowSelected(sender, eventArgs)
{
// how get lbl_payable
}



Shinu
Top achievements
Rank 2
 answered on 25 Apr 2011
1 answer
94 views
Hi
Please tell me how can I use AutoComplete feature in RadComboBox in RTL languages like (Farsi)

Thanks for your feed backs
Princy
Top achievements
Rank 2
 answered on 25 Apr 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?