Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
93 views
Hello,

I created my first skin for RadUpload (Q2 2009), and i put them in my App_Theme folder as follow:

App_Themes
- Green
- - Upload
- - - logo.gif
- - - ruProgress.gif
- - - ruSprite.png
- - Upload.css
- - Upload.Grn.css
and set the properties of the control in the page to (besides setting the theme of the page)

<telerik:RadUpload ID="radUploader" Localization-Select="Select File" runat="server" Skin="Grn" EnableEmbeddedSkins="false"  EnableEmbeddedBaseStylesheet="false"  EnableFileInputSkinning="true" ControlObjectsVisibility="none" 
                                ReadOnlyFileInputs="true" MaxFileInputsCount="5" > 
                                <Localization Select="Select File" /> 
</telerik:RadUpload> 

I increased the width of the font of the button and hence the width of the button too,
when i ran the page, i got the font bigger and the sprite image is used properly, but the problem with the width, when i traced the style used i found that my theme styles were included but they were overridden by the embedded styles!!!! even that i disabled them.

can you help please?

P.S. i cannot remove the Telerik_StyleSheet links, since there are other styles for other telerik controls that i still need them.
P.S2 if needed I can attach the CSS files and a screen shot.





Basel Nimer
Top achievements
Rank 2
 answered on 26 May 2010
1 answer
568 views
I have two radgrids on a form with autogeneratecolumns turned off viewstate turned on I am also using the needdatasource event.  The grid is being populated in the background via a datatable that is loaded from another method.  The data is loaded based on what value the user chooses from a drop down list.  When the value is selected the datatables are then populated and the grid is rebound.  I am calling the RadGrid.Rebind() method from within the drop down's selecteditemchanged method.

When a user tries to filter using the filter control or they try to sort a column they receive an error stating that "Cannot find column"  This error occurs for every column and in both grid boxes I have searched everywhere and cannot find a solution to this.  I have included some code snippets (both grids are pretty much exactly the same in code so I only included one grid) and the error stack trace.  I have double checked to make sure that the datasource column names match the sortexpression and the DataKeyField for each column.  I made sure not to call Databind from the Page_load leaving the grid binding up to needdatasource.  I am thinking that it might be caused by me calling rebind from the dropdown's selectedindex change method but how can I force the grids to rebind without calling the ReBind method since the needdatasource is not being triggered on postback.

Cannot find column Firstname.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IndexOutOfRangeException: Cannot find column Firstname.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[IndexOutOfRangeException: Cannot find column Firstname.]
   System.Data.DataTable.ParseSortString(String sortString) +4826462
   System.Data.DataView.CheckSort(String sort) +32
   System.Data.DataView.set_Sort(String value) +128
   Telerik.Web.UI.GridEnumerableFromDataView.PerformTransformation() +5029
   Telerik.Web.UI.GridEnumerableFromDataView.TransformEnumerable() +41
   Telerik.Web.UI.GridTableView.GetEnumerator(Boolean useDataSource, GridEnumerableBase resolvedDataSource, ArrayList dataKeysArray) +171
   Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource) +861
   Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +786
   System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +57
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +114
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +31
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142
   Telerik.Web.UI.GridTableView.PerformSelect() +38
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
   Telerik.Web.UI.GridTableView.DataBind() +353
   Telerik.Web.UI.GridSortCommandEventArgs.ExecuteCommand(Object source) +325
   Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e) +191
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
   Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) +61
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
   Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) +165
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
   System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +118
   System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +135
   System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

            <telerik:RadGrid ID="TrkEmpGrid" runat="server" AutoGenerateColumns="False" GridLines="None" 
                OnNeedDataSource="TrkEmpGrid_NeedDataSource" AllowFilteringByColumn="True" AllowSorting="True">  
                <GroupingSettings CaseSensitive="false" /> 
                <MasterTableView DataKeyNames="EmployeeKey" Width="100%">  
                    <RowIndicatorColumn> 
                        <HeaderStyle Width="20px"></HeaderStyle> 
                    </RowIndicatorColumn> 
                    <ExpandCollapseColumn> 
                        <HeaderStyle Width="20px"></HeaderStyle> 
                    </ExpandCollapseColumn> 
                    <Columns> 
                        <telerik:GridBoundColumn DataField="EmployeeKey" DefaultInsertValue="" HeaderText="EmployeeKey" 
                            SortExpression="EmployeeKey" UniqueName="Employee_Key" DataType="System.Int32" 
                            ReadOnly="True" Visible="false">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="Lastname" DefaultInsertValue="" HeaderText="Lastname" 
                            SortExpression="Lastname" UniqueName="Lastname">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="Firstname" DefaultInsertValue="" HeaderText="Firstname" 
                            SortExpression="Firstname" UniqueName="Firstname">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="EmployeeID" DefaultInsertValue="" HeaderText="Employee ID" 
                            SortExpression="EmployeeID" UniqueName="EmployeeID">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="AssignedTracks" HeaderText="Tracks" ReadOnly="True" 
                            SortExpression="AssignedTracks" UniqueName="AssignedTracks">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="ShiftName" HeaderText="Shift" ReadOnly="True" 
                            SortExpression="ShiftName" UniqueName="ShiftName">  
                        </telerik:GridBoundColumn> 
                    </Columns> 
                </MasterTableView> 
            </telerik:RadGrid> 
        </div> 
Radoslav
Telerik team
 answered on 26 May 2010
1 answer
192 views
Hi there.

I added a new field to my entity not mapped to Database, when i displayed the field using RadGrid, i have no problem, i assigned the value and is displayed sucessfully, the problem is when i try to filter the value..., I'm created a combo box into the filter, but when the selectindex changed:

 

<telerik:RadScriptBlock ID="RadScriptBlock3" runat="server">

 

 

<script type="text/javascript">

 

 

function StatusIndexChanged(sender,args) {

 

 

var tableView=$find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");

 

tableView.filter(

"NivelAdecuacion",args.get_item().get_value(),"EqualTo");

 

}

 

</script>

 

 

</telerik:RadScriptBlock>

 


An error is throw: The member XXX.NivelAdecuacion not admit SQL Conversion.

I supose that is due to the field is not mapped into Database table, is an added field, can anybody tell me how to solve this, please...

Thanks in advance
Yavor
Telerik team
 answered on 26 May 2010
1 answer
119 views
Is there a way to hide the input area of the combbox box until the user clicks the dropdown toggle button?

I'm setting the  DropDownWidth="70px" which is fine, but I only want the dropdown button to show when the control is not in use.

Thanks,

Ken
Kalina
Telerik team
 answered on 26 May 2010
1 answer
88 views
I am using Telerik radeditor 5.6.2 and some of the icons in the editor are missing. Though its showing me the text for the icon when I hover my mouse on that but its not showing me icon.I am using it with Sharepoint 2007,AJAX 3.5 windows 2003....


MOSSlinkManager
MOSSTemplateManager
MOSSInsertTable
MOSSInsertTableElement
ToggleSource
MOSSHelp

are missing
Any suggestions would really be appreciated.

Thanks,
Stanimir
Telerik team
 answered on 26 May 2010
1 answer
94 views
<telerik:RadGrid ID="RGDataMain" runat="server" AutoGenerateColumns="False" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" DataSourceID="LDSDataTransaction" PagerStyle-AlwaysVisible="true" GridLines="None" Skin="Default"> 
            <PagerStyle AlwaysVisible="True" /> 
            <MasterTableView AllowFilteringByColumn="true" AllowPaging="true" AllowSorting="true" AutoGenerateColumns="false" EnableColumnsViewState="false"> 
                <Columns> 
                    <telerik:GridDateTimeColumn DataField="DatePurchased" HeaderText="DatePurchased" ItemStyle-Width="139px" FilterControlWidth="139px" DataType="System.DateTime"> 
                    </telerik:GridDateTimeColumn> 
                    <telerik:GridBoundColumn DataField="Title" HeaderText="Title" ShowFilterIcon="false" CurrentFilterFunction="Contains" FilterDelay="2000"> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="FormatName" HeaderText="Format" ShowFilterIcon="false" CurrentFilterFunction="Contains" FilterDelay="2000"> 
                    </telerik:GridBoundColumn>                     
                    <telerik:GridBoundColumn DataField="RightsOrgName" HeaderText="RightsOrg" ShowFilterIcon="false" CurrentFilterFunction="Contains" FilterDelay="2000"> 
                    </telerik:GridBoundColumn> 
                </Columns> 
            </MasterTableView> 
        </telerik:RadGrid> 

I have use a RadGrid like this, but when you choose a datetime filter on DatePurchased field, it works right. And then you type something in Title and wait for a short time (make the filter works), the Title filtered, but the DatePurchased 's filter goes to NoFilter.
If you use Title first then DatePurchased  It will be OK too.
Any one have some ideas on this?
Shinu
Top achievements
Rank 2
 answered on 26 May 2010
1 answer
111 views
We're using the RadEditor in our SharePoint 2007 solution, it's a good editor. The editor is active as a feature on all sites and will override the standard RTF columns. However, i've found out a strange quirk:

1. When designing new columns on lists, the editor works fine & i can add the wysiwyg column type.
2. But, when designing a new column in a document library i cannot select this column type

When working with document library columns, i can select the 'multiple lines' option, but in the 'additional settings' option list i can't select any options. 

What am i doing wrong here? Is there an additional configuration to set the editor on document library columns as well? 

Regards,

Bert
Stanimir
Telerik team
 answered on 26 May 2010
1 answer
100 views
Hi all.

I just downloaded your amazing pack ASP.NET AJAX controls.

now when i wan't to update my RADGridview. nothing happens. (the update event won't fire)

I heard putting AutomaticUpdates on true could solve it , but it doesn't.

Anyone an idea what the problem is ?


Thanks in advance,

Kristof


this is my code.

     <asp:UpdatePanel UpdateMode=Conditional runat=server ID="pnlupdate"> 
        <ContentTemplate> 
        <telerik:RadGrid ID="RadGrid1" GridLines="None" runat="server" AllowAutomaticDeletes="True" 
            AllowAutomaticInserts="True" PageSize="10" AllowPaging="True" 
            AutoGenerateColumns="False" DataSourceID="ObjectDataSource2"> 
            <ClientSettings EnablePostBackOnRowClick=true> 
                <Scrolling AllowScroll="True" UseStaticHeaders="True" /> 
<Scrolling AllowScroll="True" UseStaticHeaders="True"></Scrolling> 
 
            </ClientSettings> 
<MasterTableView AutoGenerateColumns="False" DataKeyNames="functieID"  
                DataSourceID="ObjectDataSource2" EditMode="PopUp"> 
<RowIndicatorColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</RowIndicatorColumn> 
 
<ExpandCollapseColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</ExpandCollapseColumn> 
 
    <Columns> 
        <telerik:GridBoundColumn DataField="functieID" DataType="System.Int32"  
            HeaderText="functieID" ReadOnly="True" SortExpression="functieID"  
            UniqueName="functieID"> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="functieNaam" HeaderText="functieNaam"  
            SortExpression="functieNaam" UniqueName="functieNaam"> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="FunctieOmschrijving"  
            HeaderText="FunctieOmschrijving" SortExpression="FunctieOmschrijving"  
            UniqueName="FunctieOmschrijving"> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="FunctieAanvrager"  
            HeaderText="FunctieAanvrager" SortExpression="FunctieAanvrager"  
            UniqueName="FunctieAanvrager"> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="FunctieStatus" HeaderText="FunctieStatus"  
            SortExpression="FunctieStatus" UniqueName="FunctieStatus"> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="DatumAanvraag" DataType="System.DateTime"  
            HeaderText="DatumAanvraag" SortExpression="DatumAanvraag"  
            UniqueName="DatumAanvraag"> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="DatumGoedkeuring"  
            DataType="System.DateTime" HeaderText="DatumGoedkeuring"  
            SortExpression="DatumGoedkeuring" UniqueName="DatumGoedkeuring"> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="DatumBeschikbaar"  
            DataType="System.DateTime" HeaderText="DatumBeschikbaar"  
            SortExpression="DatumBeschikbaar" UniqueName="DatumBeschikbaar"> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="ProcentBeschikbaar" HeaderText="ProcentBeschikbaar"  
            SortExpression="ProcentBeschikbaar" UniqueName="ProcentBeschikbaar"  
            DataType="System.Double"> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="FunctieNodigVanaf"  
            DataType="System.DateTime" HeaderText="FunctieNodigVanaf"  
            SortExpression="FunctieNodigVanaf" UniqueName="FunctieNodigVanaf"> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="FunctieNodigTot" DataType="System.DateTime"  
            HeaderText="FunctieNodigTot" SortExpression="FunctieNodigTot"  
            UniqueName="FunctieNodigTot"> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="FunctieTaak" HeaderText="FunctieTaak"  
            SortExpression="FunctieTaak" UniqueName="FunctieTaak"> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="FunctieProcent" DataType="System.Double"  
            HeaderText="FunctieProcent" SortExpression="FunctieProcent"  
            UniqueName="FunctieProcent"> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="eventID" DataType="System.Int32"  
            HeaderText="eventID" SortExpression="eventID" UniqueName="eventID"> 
        </telerik:GridBoundColumn> 
        <telerik:GridCheckBoxColumn DataField="Beschikbaar" DataType="System.Boolean"  
            HeaderText="Beschikbaar" SortExpression="Beschikbaar" UniqueName="Beschikbaar"> 
        </telerik:GridCheckBoxColumn> 
        <telerik:GridEditCommandColumn> 
        </telerik:GridEditCommandColumn> 
    </Columns> 
</MasterTableView> 
    </telerik:RadGrid> 
            <asp:ObjectDataSource ID="ObjectDataSource2" runat="server"  
                DeleteMethod="DeleteFunctie" InsertMethod="AddFunctie"  
                OldValuesParameterFormatString="original_{0}" SelectMethod="GetFuncties"  
                TypeName="FunctieBLL" UpdateMethod="UpdateFunctie"> 
                <DeleteParameters> 
                    <asp:Parameter Name="original_functieID" Type="Int32" /> 
                    <asp:Parameter Name="original_FunctieNaam" Type="String" /> 
                    <asp:Parameter Name="original_FunctieOmschrijving" Type="String" /> 
                    <asp:Parameter Name="original_FunctieAanvrager" Type="String" /> 
                    <asp:Parameter Name="original_FunctieStatus" Type="String" /> 
                    <asp:Parameter Name="original_DatumAanvraag" Type="DateTime" /> 
                    <asp:Parameter Name="original_DatumGoedkeuring" Type="DateTime" /> 
                    <asp:Parameter Name="original_DatumBeschikbaar" Type="DateTime" /> 
                    <asp:Parameter Name="original_ProcentBeschikbaar" Type="Single" /> 
                    <asp:Parameter Name="original_FunctieNodigVanaf" Type="DateTime" /> 
                    <asp:Parameter Name="original_FunctieNodigTot" Type="DateTime" /> 
                    <asp:Parameter Name="original_FunctieTaak" Type="String" /> 
                    <asp:Parameter Name="original_FunctieProcent" Type="Single" /> 
                    <asp:Parameter Name="original_Beschikbaar" Type="Boolean" /> 
                    <asp:Parameter Name="original_eventID" Type="Int32" /> 
                </DeleteParameters> 
                <InsertParameters> 
                    <asp:Parameter Name="FunctieNaam" Type="String" /> 
                    <asp:Parameter Name="FunctieOmschrijving" Type="String" /> 
                    <asp:Parameter Name="FunctieAanvrager" Type="String" /> 
                    <asp:Parameter Name="FunctieSatus" Type="String" /> 
                    <asp:Parameter Name="DatumAanvraag" Type="DateTime" /> 
                    <asp:Parameter Name="DatumGoedkeuring" Type="DateTime" /> 
                    <asp:Parameter Name="DatumBeschikbaar" Type="DateTime" /> 
                    <asp:Parameter Name="ProcentBeschikbaar" Type="Single" /> 
                    <asp:Parameter Name="FunctieNodigVanaf" Type="DateTime" /> 
                    <asp:Parameter Name="FunctieNodigTot" Type="DateTime" /> 
                    <asp:Parameter Name="FunctieTaak" Type="String" /> 
                    <asp:Parameter Name="FunctieProcent" Type="Single" /> 
                    <asp:Parameter Name="beschikbaar" Type="Boolean" /> 
                    <asp:Parameter Name="eventID" Type="Int32" /> 
                </InsertParameters> 
                <UpdateParameters> 
                    <asp:Parameter Name="FunctieNaam" Type="String" /> 
                    <asp:Parameter Name="FunctieOmschrijving" Type="String" /> 
                    <asp:Parameter Name="FunctieAanvrager" Type="String" /> 
                    <asp:Parameter Name="FunctieSatus" Type="String" /> 
                    <asp:Parameter Name="DatumAanvraag" Type="DateTime" /> 
                    <asp:Parameter Name="DatumGoedkeuring" Type="DateTime" /> 
                    <asp:Parameter Name="DatumBeschikbaar" Type="DateTime" /> 
                    <asp:Parameter Name="ProcentBeschikbaar" Type="Single" /> 
                    <asp:Parameter Name="FunctieNodigVanaf" Type="DateTime" /> 
                    <asp:Parameter Name="FunctieNodigTot" Type="DateTime" /> 
                    <asp:Parameter Name="FunctieTaak" Type="String" /> 
                    <asp:Parameter Name="FunctieProcent" Type="Single" /> 
                    <asp:Parameter Name="Beschikbaar" Type="Boolean" /> 
                    <asp:Parameter Name="eventID" Type="Int32" /> 
                    <asp:Parameter Name="original_FunctieNaam" Type="String" /> 
                    <asp:Parameter Name="original_FunctieOmschrijving" Type="String" /> 
                    <asp:Parameter Name="original_FunctieAanvrager" Type="String" /> 
                    <asp:Parameter Name="original_FunctieStatus" Type="String" /> 
                    <asp:Parameter Name="original_DatumAanvraag" Type="DateTime" /> 
                    <asp:Parameter Name="original_DatumGoedkeuring" Type="DateTime" /> 
                    <asp:Parameter Name="original_DatumBeschikbaar" Type="DateTime" /> 
                    <asp:Parameter Name="original_ProcentBeschikbaar" Type="Single" /> 
                    <asp:Parameter Name="original_FunctieNodigVanaf" Type="DateTime" /> 
                    <asp:Parameter Name="original_FunctieNodigTot" Type="DateTime" /> 
                    <asp:Parameter Name="original_FunctieTaak" Type="String" /> 
                    <asp:Parameter Name="original_FunctieProcent" Type="Single" /> 
                    <asp:Parameter Name="original_Beschikbaar" Type="Boolean" /> 
                    <asp:Parameter Name="original_eventID" Type="Int32" /> 
                    <asp:Parameter Name="functieID" Type="Int32" /> 
                    <asp:Parameter Name="original_functieID" Type="Int32" /> 
                </UpdateParameters> 
            </asp:ObjectDataSource> 
        </ContentTemplate> 
         
        </asp:UpdatePanel> 

Martin
Telerik team
 answered on 26 May 2010
1 answer
64 views
Hi all,

I have a page with a grid in it. I'd like to be able to add rows to it on the client side and then use radajax to post the grid in code-behind..

will the rows i add with js be available in the code-behind??

Basically i have a big form with lots of controls.. and a grid with sub grid.. when i post i need to build and entity tree from the results.. is the way i am suggesting the best way to do this?
Veli
Telerik team
 answered on 26 May 2010
5 answers
208 views
Hey,

I've got a RadSplitter with two panes, one left and one right.  The one on the right contains a RadScheduler.  There are some months in the RadScheduler that add an additional row of dates at the bottom, which increases the size it to be bigger than what is defined for my RadSplitter.  Is it possible to dynamically change the height of the Splitter to fit the size of my Pane with the RadScheduler?
Tsvetie
Telerik team
 answered on 26 May 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?