Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
140 views
Hello,

I have a splitter control in the RadAjaxPanel to split the overview and the detail / edit of the selected item from the grid.
I have 2 panes, one of them is for grid of the overview, second one is for used to show details and edit the selected item from the grid.
I show the details when an item is selected from the grid of the overview. There is a button to show the edit for for the current item.
When i click on the edit button Splitter is collapsed to hide the grid and i show the edit form. After the submit action of the form Splitter is expanded and details are there for the current item again.
*Problem is here right now*
When i click on another item from the grid, I got the details of it but first pane is disappeared.

I removed the RadAjaxPanel, but still same problem is there. Do you have any ideas ?

Thank you
Svetlina Anati
Telerik team
 answered on 05 Aug 2009
1 answer
132 views
I'm having a problem when an ajax called is made and the update occurs.  I'm using JQuery Tabs in the left margin of the page and when the ajax call is made, the tabs get messed up even though they're not involved in the panel being updated.  Also causes the crumbtrails to be moved a little on the page.  

The page where you can see this happening is:

http://216.205.129.69/category/pressure-gauges/process-gauges.aspx .  

Go to that page and notice how the tabs look at first.  Then select one of the six filter drop down boxes in the middle of the page above the product list. You'll see the ajax do it's job but once that happens, look at what happens to the JQuery tabs and the crumbtrail.

I'm guessing it has something to do with CSS or JS files being reloaded, but I can't figure out how to fix it.  Appreciate your time and help with this.  I'm using the 2009.01.0311.35 version of the Telerik controls.

Thanks,
Kevin

Nikolay Rusev
Telerik team
 answered on 05 Aug 2009
6 answers
184 views
Hi,

I have set the menu width to be 100%. This ensures that the menu stretches to the entire page width. However, I have only 4 menu items. By default, they appear to be left justified and I am not able to get it center justified and increase their width so that it looks a bit more consistent and nice (e.g. the same implementation as the menu on your website homepage).

Is there a way to accomplish this?

Regards,
Saurabh
Atanas Korchev
Telerik team
 answered on 05 Aug 2009
1 answer
111 views
Hi All,
I have Loading Panel control in my page. I have RadGrid. There are search button on top of the grid and some grid command item.  I want to show the loading panel next to AJAX initiator, button, etc. Following is my code. But Loading Panel is always show on top and centre of Panel "Panel1". How do i positioning my Loading Panel?

<
telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
                         <ClientEvents OnRequestStart="RequestStart"></ClientEvents> 
                            <AjaxSettings> 
                               <telerik:AjaxSetting AjaxControlID="rgFCCOffice"
                                   <UpdatedControls> 
                                       <telerik:AjaxUpdatedControl ControlID="Panel1" 
                                           LoadingPanelID="RadAjaxLoadingPanel1" /> 
                                   </UpdatedControls> 
                               </telerik:AjaxSetting> 
                               <telerik:AjaxSetting AjaxControlID="rtbtnFilter"
                                   <UpdatedControls> 
                                       <telerik:AjaxUpdatedControl ControlID="Panel1" 
                                           LoadingPanelID="RadAjaxLoadingPanel1" /> 
                                   </UpdatedControls> 
                               </telerik:AjaxSetting> 
                            </AjaxSettings> 
                        </telerik:RadAjaxManager> 
 
<asp:Panel ID="Panel1" runat="server"
                        <telerik:RadGrid ID="rgFCCOffice"  runat="server" AllowPaging="True" AllowSorting="True" 
                            AutoGenerateColumns="False" Skin="Office2007" 
                            Width="97%" ShowStatusBar="True"  
                            AutoGenerateEditColumn="false"  
                            onneeddatasource="rgFCCOffice_NeedDataSource"  
                            onitemdatabound="rgFCCOffice_ItemDataBound"  
                            oninsertcommand="rgFCCOffice_InsertCommand"  
                            onupdatecommand="rgFCCOffice_UpdateCommand" ShowFooter="false"  
                             AllowMultiRowSelection="True" CellPadding="1" CellSpacing="1"
                             
                        </telerik:RadGrid> 
                        </asp:Panel> 
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" Width="75px"
    <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' style="border:0;" /> 
    </telerik:RadAjaxLoadingPanel> 
<script type="text/javascript"
    function RequestStart(sender, eventArgs) { 
        var divElementStyle = document.getElementById("<%=RadAjaxLoadingPanel1.ClientID%>").style; 
        divElementStyle.position = 'absolute'
        //position the loading panel 
        divElementStyle.left = eventArgs.get_eventTargetElement().offsetLeft + "px"; 
        divElementStyle.top = eventArgs.get_eventTargetElement().offsetTop + "px"; 
    } 
   </script> 
Pavlina
Telerik team
 answered on 05 Aug 2009
2 answers
164 views

Below is the code i have created and wanted to group it based on "name" column. But i am not able to group it and normal values are being rendered in the grid...

 RadGrid radGrid1 = new RadGrid();  
        radGrid1.ID = "radgrid1";  
          
 
 
          
        radGrid1.DataSourceID = "SqlDataSource1";  
        radGrid1.GridLines = GridLines.None;  
 
        GridTableView gridTableView = new GridTableView(radGrid1);  
        gridTableView.GroupsDefaultExpanded = true;  
        gridTableView.DataSourceID = "SqlDataSource1";  
 
        GridGroupByExpression expression = new GridGroupByExpression();  
        GridGroupByField gridGroupByField = new GridGroupByField();  
        gridGroupByField = new GridGroupByField();  
        gridGroupByField.FieldName = "name";  
        gridGroupByField.HeaderText = "Name";  
        expression.SelectFields.Add(gridGroupByField);  
 
        gridGroupByField = new GridGroupByField();  
        gridGroupByField.FieldName = "name";  
        gridGroupByField.HeaderText = "Name";  
        expression.GroupByFields.Add(gridGroupByField);  
 
        gridTableView.GroupByExpressions.Add(expression);  
        this.Controls.Add(radGrid1); 

Thanks a million in advance.
Ali Akbar
Top achievements
Rank 1
 answered on 05 Aug 2009
1 answer
49 views
When I install and deploy the Rad Editor for MOSS control, the RadEditorList.ascx file only gets copied to one of the nodes in the web farm, resulting in erratic behaviour depending on which server a user goes to.  Our manual solution is simply to copy the file into place after the deploysolution, but, as a developer, I'm curious why this is happening.

Here's how we are deploying the solution:
%STSADM% -o addsolution -filename .\RadEditorMOSS.wsp
%STSADM% -o deploysolution -name RadEditorMOSS.wsp -immediate -allowGacDeployment -url https://OUR.URL.HERE

Stanimir
Telerik team
 answered on 05 Aug 2009
1 answer
45 views
Hi ,

                I am using Telerik Grid..I am using Multi Heading Column for my grid.

 

 

<telerik:GridTemplateColumn UniqueName="ContactName" InitializeTemplatesFirst="false" >

 

 

 

 

 

 

<ItemStyle HorizontalAlign="Center" />

 

 

 

 

 

 

<HeaderStyle HorizontalAlign="Center" />

 

 

 

 

 

 

<HeaderTemplate>

 

 

 

 

 

 

<table id="Contact" cellspacing="0" style="width: 100%;">

 

 

 

 

 

 

<colgroup>

 

 

 

 

 

 

<col />

 

 

 

 

 

 

<col />

 

 

 

 

 

 

</colgroup>

 

 

 

 

 

 

<tr>

 

 

 

 

 

 

<td colspan="2" align="center" style="width: 100%; text-align: center;">

 

 

 

 

 

 

<%= Header.Value%>...............Header is dynamic...in my case..it is from database..

 

 

 

</td>

 

 

 

 

 

 

</tr>

 

 

 

 

 

 

<tr>

 

 

 

 

 

 

<td style="width: 50%" align="center">

 

 

 

 

 

Contactname

 

</td>

 

 

 

 

 

 

<td style="width: 50%" align="center">

 

 

 

 

 

Contactaddress

 

</td>

 

 

 

 

 

 

</tr>

 

 

 

 

 

 

</table>

 

 

 

 

 

 

</HeaderTemplate>

 

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

 

<table cellspacing="0" style="width: 100%;" class="myTable">

 

 

 

 

 

 

<colgroup>

 

 

 

 

 

 

<col />

 

 

 

 

 

 

<col />

 

 

 

 

 

 

</colgroup>

 

 

 

 

 

 

<tr>

 

 

 

 

 

 

<td style="width: 50%" align="right">

 

 

 

 

 

 

 <%# Eval("Contactname") %>
</
td>

 

 

 

 

 

 

<td style="width: 50%" align="right">

 

 

 

 

 

 

 <%# Eval("Contactaddress") %>
</
td>

 

 

 

 

 

 

</tr>

 

 

 

 

 

 

</table>

 

 

 

 

 

 

</ItemTemplate>

 

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

I want to apply sorting for this ...column..How???

If i am using below code for sorting

<asp:LinkButton CssClass="Button" ID="btnContName"  ToolTip="Sort by ContactName"
CommandName='Sort' CommandArgument='ContactName' runat="server" />

In My case.. button text should be dynamic............it will come from database.....

And Export to excel also i am using..When i am exporting to excel it is not displaying header text.....in excel sheet..

My questions are...

1)How to apply sorting in this column.....which has dynamic text.
2)how to export to excel...when we applied sorting??
3)..Header Text will be dynamic..in this columns?????????????????


Thanks in advance..


SANNIDHI

Princy
Top achievements
Rank 2
 answered on 05 Aug 2009
1 answer
124 views
Hi
I have a rad grid in my app and have custom paging enabled but when i try paging it doesnt seem to work my code is as follows
aspx
<telerik:RadGrid ID="grdRepairs" runat="server" Skin="Simple" GridLines="None" OnItemCommand="grdRepairs_ItemCommand"    
                OnSelectedIndexChanged="grdRepairs_SelectedIndexChanged"   
                OnItemDataBound="RadGrid1_ItemDataBound" AllowSorting="True" AutoGenerateColumns="False"   
                AllowPaging="True" AllowCustomPaging="true" VirtualItemCount="10000" onsortcommand="grdRepairs_SortCommand" PageSize="7" Height="250px">  
                <MasterTableView CellSpacing="-1" clientDataKeyNames="ORDERID, PROPREF">  
                    <Columns> 
                        <telerik:GridBoundColumn DataField="ORDERID" DataType="System.Int32" HeaderText="ORDERID" ReadOnly="True" SortExpression="ORDERID"   
                            UniqueName="ORDERID">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="PROPREF" HeaderText="PROPREF" SortExpression="PROPREF" UniqueName="PROPREF">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="FAULTREPORTED" HeaderText="FAULTREPORTED" SortExpression="FAULTREPORTED"   
                            UniqueName="FAULTREPORTED" ItemStyle-Width="300px" HeaderStyle-Width="350px" ItemStyle-Wrap="false">  
                            <HeaderStyle Width="350px" /> 
                            <ItemStyle Width="300px" Wrap="False" /> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="NEARCOMPLETEDATETIME" DataType="System.DateTime" HeaderText="NEARCOMPLETEDATETIME"   
                        SortExpression="NEARCOMPLETEDATETIME" UniqueName="NEARCOMPLETEDATETIME">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="STATUS" HeaderText="STATUS" 
                        SortExpression="STATUS" UniqueName="STATUS">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="CONTRACT" HeaderText="CONTRACT" SortExpression="CONTRACT" UniqueName="CONTRACT">  
                        </telerik:GridBoundColumn> 
                    </Columns> 
                </MasterTableView> 
                <ClientSettings AllowRowsDragDrop="False" Resizing-AllowRowResize="false">  
                <DataBinding EnableCaching="True">  
                </DataBinding> 
                <Selecting AllowRowSelect="True" /> 
                <ClientEvents OnRowContextMenu="RowContextMenu" OnRowSelected="RowSelected" /> 
                <Scrolling AllowScroll="True" UseStaticHeaders="True" /> 
                </ClientSettings> 
            </telerik:RadGrid> 

CS
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)  
        {  
            if (e.Item is GridDataItem)  
            {  
                TimeSpan ts = new TimeSpan(1, 0, 0, 0);  
                GridDataItem dataItem = (GridDataItem)e.Item;  
 
                if (dataItem["NEARCOMPLETEDATETIME"].Text == string.Empty || dataItem["NEARCOMPLETEDATETIME"].Text == "" || dataItem["NEARCOMPLETEDATETIME"].Text == "&nbsp;")  
                {  
                    dataItem.BackColor = Color.White;  
                }  
                else  
                {  
 
                    if (DateTime.Today > DateTime.Parse(dataItem["NEARCOMPLETEDATETIME"].Text))  
                    {  
                        dataItem.BackColor = Color.Orange;  
                    }  
                    else if (DateTime.Today == DateTime.Parse(dataItem["NEARCOMPLETEDATETIME"].Text))  
                    {  
                        dataItem.BackColor = Color.Red;  
                    }  
                }  
            }  
            if (e.Item is GridPagerItem)  
            {  
                GridPagerItem pagerItem = (e.Item as GridPagerItem);  
                pagerItem.PagerContentCell.Controls.Clear();  
            }  
        }  
 
protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e)  
        {  
            txtTabName.Value = e.Tab.Text;  
            var order = Pilot.Data.tbl_repair_order.LoadByStatus(Classes.Contexts.WEBSSCHEDULE_CONN(), RadComboBox1.SelectedValue, e.Tab.Text);  
            grdRepairs.DataSource = order;  
            grdRepairs.DataBind();  
        }  
                }  
                else  
                {  
 
                    if (DateTime.Today > DateTime.Parse(dataItem["NEARCOMPLETEDATETIME"].Text))  
                    {  
                        dataItem.BackColor = Color.Orange;  
                    }  
                    else if (DateTime.Today == DateTime.Parse(dataItem["NEARCOMPLETEDATETIME"].Text))  
                    {  
                        dataItem.BackColor = Color.Red;  
                    }  
                }  
            }  
            if (e.Item is GridPagerItem)  
            {  
                GridPagerItem pagerItem = (e.Item as GridPagerItem);  
                pagerItem.PagerContentCell.Controls.Clear();  
            }  
        } 
Pavlina
Telerik team
 answered on 05 Aug 2009
1 answer
98 views
Would you please provide examples in using "RadCalendar" and "RadInput" controls integrated with the ASP.NET MVC framework? If you could extend your current documentation at here, that will be great.

Thanks.

Baskin
Sebastian
Telerik team
 answered on 05 Aug 2009
0 answers
85 views
Hello,

I'm adding several RadComboBoxes into a custom made user control. The controls are contained in a panel. When I view the page, I get a JS error on the line 

this._originalText=this.get_inputDomElement().value;

The error is "this.get_inputDomElement() has no properties". So apparantly the get_inputDomElement method return null? The first RadComboBox on the form is working as expected, the second one isn't doing anything; it doesn't even expand.

Any idea what I could be missing here? The version I'm running is 2009.2.701.35.

The code I'm using to add the dropdown (in simplified form, it's not working as such):

 

protected override void OnInit(EventArgs e)

 

    base.OnInit(e);

 

    Panel newPanel = new Panel();

 

    dropdown =

new RadComboBox();

 

    dropdown.ID =

Guid.NewGuid().ToString();

 

    newPanel.Controls.Add(dropdown);
    

this.Controls.Add(newPanel);
}

 

EDIT: sorry, already fixed it. There were some other things going wrong in the user control which probably messed up the RadComboBox. This post may be deleted.

 

Datamex
Top achievements
Rank 2
 asked on 05 Aug 2009
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?