Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
54 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
54 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
127 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
103 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
90 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
7 answers
160 views
Hi, Telerik Team,

    Could I create(add)  RadSplitter and RadPane in client side by javascript not service-side?
   
Thanks very much!
Jguo
guo jun
Top achievements
Rank 1
 answered on 05 Aug 2009
3 answers
237 views
I've just started experimenting with JQuery to see how I might use it on my web sites. Most of my pages use Ajax and have controls on it that perform a partial postback. This causes a problem with JQuery as the event that sets up all the nice attributes and animations isn't run after a partial postback.

What you end up with is all the JQuery stuff working when the page is first loaded but stops working after a partial postback. All I wanted to do as an experiment was add some rounded corners to <div> elements. Looked good on first load but choose something from an ajaxified combobox and everything goes square again.

I also downloaded the telerik example project that animated a combobox by sliding the items as you hovered over them but when I ajaxified it to say populate another dropdown list after selecting an item the sliding stopped.

I've searched around for a way around this but to no avail as yet. Just wondered if anyone here knew how to get round this. It just might be that JQuery is not suitable in thsi scenario yet.

Thanks for your help.

Dimo
Telerik team
 answered on 05 Aug 2009
5 answers
243 views
I am using an Object Datasource that is calling a SQL Server stored procedure.  It returns 10 records.  Two of the columns are datetime columns.  When using the DateTime Column in RadGrid, I can filter just fine on the dates.  HOWEVER, one record has a NULL value.  When I try to filter the column using the IsNull option in the filter drop down menu, NO records are returned.  I have looked into my options in the typed dataset tableadapter, but it will not allow me to change the NullValue to anything other than Throw Exception.

Any ideas on how to resolve this issue?

Thanks,

Terry Webster
Sebastian
Telerik team
 answered on 05 Aug 2009
4 answers
223 views
I want to set up my RadComboBox dropdown where it does not appear unless they click the dropdown image. I also have to LoadonDemand because I will be using Linq to read a XML file with over 3000 airport Codes. Additionally I will have several of these in a repeater. At least 2 for round trip and many more for a multiple stop itinerary

So if the user types text in the textbox I want the dropdown to stay closed. If they click the dropdown I want to Load Items on Demand and I will filter those by the text they have entered in the textbox. also if the drop down is aleady OPEN and they modify the text refilter the Items. I know this is different because it is usually one way or the other. Is this possible?
Veselin Vasilev
Telerik team
 answered on 05 Aug 2009
1 answer
260 views
Hi,

Is there a way to set data format for a GridTemplateColumn???

Thanks,
Mahesh
Shinu
Top achievements
Rank 2
 answered on 05 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?