Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
171 views
Hi there, we are using the standard ColorPicker with the color box showing next to an arrow to bring up the palette options. We have tried changing the style of the button to increase the height but it does not work as expected. We would like the color box and button to be taller so ti matches our forms better. Is there a way to do this? The button seems like it might be an image which is not sizable?
 Thanks for any help you guys can provide!
Stephen Holland-Chang
Top achievements
Rank 1
 answered on 24 Mar 2010
2 answers
203 views
I am using quite often GridNumericColumn and in some cases I would like to disable mouse wheel scrolling feature.
When in edit mode, the mouse wheel increases or decreases the content number.  I want to disable that feature.  I want users explicitly enter the number through the keyboard only.  Can someone help me how?

Thanks,
Chris
Christopher Borys
Top achievements
Rank 1
 answered on 24 Mar 2010
2 answers
165 views
I have need to update the ClientDataKeyNames on ItemDataBound.

My Aspx page has:

<MasterTableView ClientDataKeyNames="MyName" >

My Code behind has:

protected void grdMasterList_ItemDataBound(object sender, GridItemEventArgs e)
{
  //  Need to update ClientDataKeyNames here
}

How can I update ClientDataKeyNames so it gets reflected in the aspx page?

Thanks.
Steve
Top achievements
Rank 1
 answered on 24 Mar 2010
5 answers
546 views
Our client want data from radeditor is store in database (sql)
then read that data from sql into microsoft word??

How can we read data from sql to msword.??

If any tool for that then,
 please can you tell me what tool i have to use for it?


Fikret
Top achievements
Rank 1
 answered on 24 Mar 2010
1 answer
167 views
Hi,
Im using the self referencing grid. By default all the rows are in expanded state but i want to collapse all rows and expand only on click.
I want to use Plus/Minus image instead of default button. But the plus/minus image appears only for parent row amd for the rest normal button is shown.

Following is the aspx grid definition

    <telerik:RadPageView ID="RadPageView2" runat="server">  
        <table border="0" visible= "false" width="100%">  
 <LNWCon:LNGrid ID="grdOrganization" EnableAJAX="True" ShowHeader="true" runat="server"   
Width= "97%" GridLines="None" OnColumnCreated="grdOrganization_ColumnCreated" OnItemCreated="grdOrganization_ItemCreated" 
           OnNeedDataSource= "grdOrganization_NeedDataSource" OnItemDataBound = "grdOrganization_ItemDataBound" OnItemCommand="grdOrganization_ItemCommand" Skin="Black" AutoGenerateColumns="False" > 
           <MasterTableView HierarchyDefaultExpanded="true" HierarchyLoadMode="Client" NoDetailRecordsText="No Records To Display" EnableNoRecordsTemplate="false" 
               DataKeyNames= "FolderId,ParentFolderId" Width="100%" HorizontalAlign="Right" ExpandCollapseColumn-ButtonType="ImageButton" ExpandCollapseColumn-CollapseImageUrl="../Images/minus.png" ExpandCollapseColumn-ExpandImageUrl="../Images/plus.png"  ExpandCollapseColumn-Visible="true"> 


Any help is appreciated.

Regards,
L.N.K
Martin
Telerik team
 answered on 24 Mar 2010
4 answers
133 views

How could I use the example livedata with WCF client-side databinding?
Something like
aspx file

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head id="Head1" runat="server">  
    <title></title>  
    <%--Scripting--%> 
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">  
 
        <script type="text/javascript">  
        //<![CDATA[
        function pageLoad(sender, args)
        {
            setInterval("updateGrid()",1000);
        }
        function updateGrid()
        {
            var tableView = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
            tableView.dataBind();
        }
        //]]> 
        </script> 
 
    </telerik:RadCodeBlock> 
</head> 
<body> 
    <form id="form1" runat="server">  
    <div> 
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
        </telerik:RadScriptManager> 
        <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" AllowPaging="True" 
            AllowSorting="True">  
            <MasterTableView> 
                <Columns> 
                    <telerik:GridBoundColumn DataField="ProductID" HeaderText="ProductID" DataType="System.Int32">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="ProductName" HeaderText="ProductName" DataType="System.String">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="UnitPrice" HeaderText="UnitPrice" DataType="System.Decimal" 
                        DataFormatString="{0:C}">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="ReorderLevel" HeaderText="ReorderLevel" DataType="System.Int32">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridCheckBoxColumn DataField="Discontinued" HeaderText="Discontinued" DataType="System.Boolean">  
                    </telerik:GridCheckBoxColumn> 
                    <telerik:GridBoundColumn DataField="Date" HeaderText="Date" DataType="System.Int32">  
                    </telerik:GridBoundColumn> 
                </Columns> 
            </MasterTableView> 
            <ClientSettings> 
                <DataBinding SelectMethod="GetDataAndCount" Location="~/Service.svc" 
                    SortParameterType="Linq" FilterParameterType="Linq">  
                </DataBinding> 
            </ClientSettings> 
        </telerik:RadGrid> 
    </div> 
    </form> 
</body> 
</html> 

And the service.svc

[DataContract]  
public class Product {  
    [DataMember]  
    public int ProductID {  
        get;  
        set;  
    }  
    [DataMember]  
    public string ProductName {  
        get;  
        set;  
    }  
    [DataMember]  
    public decimal? UnitPrice {  
        get;  
        set;  
    }  
    [DataMember]  
    public short? ReorderLevel {  
        get;  
        set;  
    }  
    [DataMember]  
    public bool Discontinued {  
        get;  
        set;  
    }  
    [DataMember]  
    public int Date {  
        get;  
        set;  
    }  
}  
 
public class ResultData {  
    public int Count {  
        get;  
        set;  
    }  
    public List<Product> Data {  
        get;  
        set;  
    }  
}  
 
[ServiceKnownType( typeof( Product ) )]  
[ServiceContract( Namespace = "" )]  
[AspNetCompatibilityRequirements( RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed )]  
public class PosicionService {  
 
    [OperationContract]  
    public ResultData GetDataAndCount( int startRowIndex, int maximumRows, string sortExpression, string filterExpression ) {  
        ResultData result = new ResultData();  
        List<Product> lista = new List<Product>();  
        for ( int i = 0; i < 50; i++ ) {  
            Product producto = new Product();  
            producto.ProductID = 1;  
            producto.ProductName = "Name";  
            producto.UnitPrice = 200;  
            producto.ReorderLevel = 1;  
            producto.Discontinued = false;  
            producto.Date = DateTime.Now.Minute;  
            lista.Add( producto );  
        }  
        result.Data = lista;  
        result.Count = 50;  
        return result;  
    }  
} 

 

I want to use declarative client-side data-binding of RadGrid for ASP.NET AJAX to WCF Web Service but a need to refresh data each 20 seconds and i need to use pagging and sorting functionality.
Thanks

Rosen
Telerik team
 answered on 24 Mar 2010
1 answer
111 views
Hi, I am using GridDropDownColumn in a grid, and getting this error when I click Add:
DataBinding: 'Telerik.Web.UI.GridInsertionObject' does not contain a property with the name 'BenefitCategoryId'.

//my declarative source code
<telerik:GridDropDownColumn DataField="BenefitCategoryId" ListTextField="Description" ListValueField="Id" DataSourceID="CategorySource" HeaderText="Kategory Beskrivelse">
</telerik:GridDropDownColumn>

//DataSoruce soruce code
<mrc:BusinessObjectDataSource runat="server" ID="CategorySource" BusinessObjectName="BenefitCategory"
        BusinessObjectAssembly="BusinessObjects" BusinessObjectNamespace="Company.BusinessObjects">
        <SelectParameters>
            <asp:ControlParameter ControlID="CorporationDropDownList" PropertyName="SelectedValue"
                Name="CorporationId" Type="String" />
        </SelectParameters>
         <InsertParameters>
            <asp:ControlParameter ControlID="CorporationDropDownList" PropertyName="SelectedValue"
                Name="CorporationId" Type="String" />
        </InsertParameters>
    </mrc:BusinessObjectDataSource>

I read below articles, is this problem is solved?
http://www.telerik.com/community/forums/aspnet-ajax/grid/error-on-insert.aspx

How can I solve this problem?

Thanks,
Thaya
Martin
Telerik team
 answered on 24 Mar 2010
1 answer
156 views

Hey everyone,

I'm wondering if anybody has a sample of some jQuery that would set the FocusedDate property for a RadDateInput based on the selection of a date in another RadDateInput.  Currently, I have this working with a postback, but am trying to learn and use jQuery more and more.

The below RadDatePickers are what I would want to do this with.  Currently (with the postback) I am setting the MinDate and the FocusedDate of RadDatePicker2 to the value of RadDatePicker1's selected date when the selection changes. 


<
telerik:RadDatePicker ID="RadDatePicker1" runat="server"   
                       Calendar-FirstDayOfWeek="Monday" > 
</telerik:RadDatePicker> 
                                              
<telerik:RadDatePicker ID="RadDatePicker2" runat="server"   
                       Calendar-FirstDayOfWeek="Monday" > 
</telerik:RadDatePicker> 

Thanks everyone,
Greg

robertw102
Top achievements
Rank 1
 answered on 24 Mar 2010
2 answers
136 views
Hi
I have a radgrid w/ a column whose width say is 50 characters allowed to be displayed out of 1000 characters.

I have to display the column in the expandable row on-row-click which displays all the 1000 characters for a column in that row.

This is similar to editable rows like form but should be only used for displaying the content. Please note, there is no data update.

Would be appreciable to know.

Thanks in advance.
SR
Subbarao
Top achievements
Rank 1
 answered on 24 Mar 2010
4 answers
115 views
Hi,
There is a RadComboBox that has items longer than the width of the combo. After selecting such an item, the beginning of this item should be displayed in the combo. And it is so under most of browsers: FF, Opera, Chrome, Safari and IE7. But under IE8 the ending of the selected item is displayed. I can manually shift it to the beginning (using "Home" key) but it is not a solution, of course.
Is there any way to make IE8 behaving in the same way as other browsers?
I'm using Q3 2009 version of RadControls. Normally I use the "Simple" skin but it behaves in the same way when using the "Default" skin - so it seems that it is not an skin issue.

Regards
Tomasz
James Van Buren
Top achievements
Rank 2
 answered on 24 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?