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

I have a radfilter pointed to a radgrid, the columns of radgrid gets created dynamically.
i get error when i click on AddExpression

[ArgumentException: Parameter cannot be null or empty. Parameter name: fieldName] Telerik.Web.UI.RadFilterDataFieldEditorCollection.FindEditorForFieldName(String fieldName) +242 Telerik.Web.UI.RadFilterSingleExpressionItem.SetupFunctionInterface(Control container) +61 Telerik.Web.UI.RadFilter.CreateFilterItems() +420 Telerik.Web.UI.RadFilter.CreateControlHierarchy() +65 System.Web.UI.Control.EnsureChildControls() +146 Telerik.Web.UI.RadFilter.AddChildExpression(RadFilterGroupExpressionItem groupItem, Boolean isGroup) +338 Telerik.Web.UI.RadFilterCommandEventArgs.ExecuteCommand(Object source) +173 Telerik.Web.UI.RadFilter.OnBubbleEvent(Object source, EventArgs args) +186 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +70 Telerik.Web.UI.RadFilterExpressionItem.OnBubbleEvent(Object source, EventArgs args) +131 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +70 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981


 

<telerik:RadFilter runat="server" ID="RadFilter" 
                            ShowApplyButton="true" Visible="false" FilterContainerID="RadGrid"/>


<telerik:RadGrid ID="RadGrid" runat="server" GridLines="None" AllowAutomaticUpdates="True" OnColumnCreated="RadGrid_ColumnCreated"
                             ViewStateMode="Enabled" OnItemCommand="RadGrid_ItemCommand" OnItemDataBound="RadGrid_ItemDataBound" >             
                            <ExportSettings HideStructureColumns="true" />
                            <MasterTableView TableLayout="Fixed" RetrieveDataTypeFromFirstItem="true"
                                CommandItemDisplay="Top" >
                                <Columns>
                                    <telerik:GridTemplateColumn UniqueName="ImageFile" HeaderText="" Visible="false" >
                                        <ItemTemplate>
                                            <asp:Image ID="StatusImage" BorderWidth="0px" AlternateText="Status" runat="server"
                                                Visible="true" />
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" Visible="false" />
                                </Columns>
                                <CommandItemSettings ShowExportToExcelButton="false" ShowAddNewRecordButton="false" ShowRefreshButton="false"/>
                            </MasterTableView>
                            <ClientSettings>
                                <Selecting AllowRowSelect="True"></Selecting>
                                <Scrolling AllowScroll="false"></Scrolling>
                                <ClientMessages DragToGroupOrReorder="Drag to group" />
                            </ClientSettings>
                            <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
                            </HeaderContextMenu>
                        </telerik:RadGrid>

 

Princy
Top achievements
Rank 2
 answered on 05 Aug 2011
1 answer
78 views
I am using the RadTreeView in a asp.net form. I am trying to implement the ContextMenu on each node. The problem that I am having is that the ContextMenu does not display on right click

In my .ascx I define my RadTreeView and menu like this:
<telerik:RadTreeView ID="RadTreeView1" runat="server" EnableDragAndDrop="True" OnNodeDrop="RadTreeView1_NodeDrop"
    OnNodeClick="RadTreeView1_NodeClick" OnContextMenuItemClick="RadTreeView1_ContextMenuItemClick" AllowNodeEditing="true"
    OnNodeDataBound="RadTreeView1_NodeDataBound">
        <ContextMenus>
        <telerik:RadTreeViewContextMenu runat="server" ID="AssetMenu" ClickToOpen="True" Skin="Vista">
            <Items>
                <telerik:RadMenuItem Text="Select Asset" Value="Select">
                </telerik:RadMenuItem>
                <telerik:RadMenuItem Text="View Hierarchy" Value="View">
                </telerik:RadMenuItem>
            </Items>
        </telerik:RadTreeViewContextMenu>
    </ContextMenus>
</telerik:RadTreeView>

In my code behind, after I dynamically populate the RadtreeView, I try to attach the ContextMenu as follows. This is the last thing done in my Code behind:


            foreach (RadTreeNode node in RadTreeView1.GetAllNodes())
            {
                node.ContextMenuID = "AssetMenu";
                node.EnableContextMenu = true;
            }


Everything works except that the ContextMenu does not display when I right click an item.





Shinu
Top achievements
Rank 2
 answered on 05 Aug 2011
5 answers
169 views
Hi,

in appSettings my web.config has
<add key="Telerik.EnableEmbeddedSkins" value="false" />
<add key="Telerik.EnableEmbeddedBaseStylesheet" value="false" />

which files should I include in page to make ImageEditor appear fully styled?
I have in head:

<telerik:RadStyleSheetManager ID="RadStyleSheetManager2" runat="server">
        <StyleSheets>
            <telerik:StyleSheetReference Name="Telerik.Web.UI.Skins.ImageEditor.css" Assembly="Telerik.Web.UI" />
            <telerik:StyleSheetReference Name="Telerik.Web.UI.Skins.Default.ImageEditor.Default.css" Assembly="Telerik.Web.UI" />
            <telerik:StyleSheetReference Name="Telerik.Web.UI.Skins.ToolBar.css" Assembly="Telerik.Web.UI" />
            <telerik:StyleSheetReference Name="Telerik.Web.UI.Skins.Default.ToolBar.Default.css" Assembly="Telerik.Web.UI" />
            <telerik:StyleSheetReference Name="Telerik.Web.UI.Skins.Dock.css" Assembly="Telerik.Web.UI" />
            <telerik:StyleSheetReference Name="Telerik.Web.UI.Skins.Default.Dock.Default.css" Assembly="Telerik.Web.UI" />
        </StyleSheets>
    </telerik:RadStyleSheetManager>

I don't see tool bar button images, no dialog button images, also some dialogs look a bit "unfinished".

Thank you!
Shukhrat Nekbaev
Top achievements
Rank 1
 answered on 05 Aug 2011
1 answer
199 views

Currently when I call ExtractValues it does not return the values for GridTemplateColumns.
The OnInsertCommand Event handler below shows the code I use to get values from a row in the grid.

Public Sub InsertTimesheetItemCommand(ByVal source As Object, ByVal e As GridCommandEventArgs)
    Dim editableItem As GridEditableItem = DirectCast(e.Item, GridEditableItem)
    Dim values As New Hashtable()
    editableItem.ExtractValues(values) 
End Sub

Below is one of the GridTemplateColumns that does not have its value returned.

<telerik:GridTemplateColumn HeaderText="Job" UniqueName="JobColumn" DataField="JOB_ID" ItemStyle-Width="50px"
    <ItemTemplate
        <asp:Label ID="Label1" runat="server" Text='<%# Eval("Job_Description") %>' /> 
    </ItemTemplate
    <EditItemTemplate
        <telerik:RadComboBox runat="server" ID="JobList" DataTextField="Description" DataValueField="Value" Text="Job"
        </telerik:RadComboBox
    </EditItemTemplate
</telerik:GridTemplateColumn>

Note for this example I want to get the selected value from the combo box displayed in the Hashtable from the extract values method with a key of JOB_ID.

Any help would be much appreciated

Princy
Top achievements
Rank 2
 answered on 05 Aug 2011
5 answers
142 views

Hi, I've been using RADScheduler for a while and not having much of a trouble.
Since I have updated to Q1 2009, i have found the problem when switch between different view in IE7, it shows a message Script may cause browser not responding and etc.... and not showing anything (seems like a script loop), but it's fine in Firefox, Chrome.

here is my code for the Scheduler.

<telerik:RadScheduler ID="SchedulerTask" runat="server" DataEndField="Sto" DataKeyField="Key" 
                            DataStartField="SFrom" DataSubjectField="SubjectHTML" ShowAllDayRow="False" Skin="WebBlue" 
                            DisplayRecurrenceActionDialogOnMove="True" OnClientAppointmentEditing="AppointmentEditing" 
                            OnClientAppointmentInserting="AppointmentInserting" EnableDatePicker="False" 
                            WorkDayEndTime="21:00:00" CustomAttributeNames="ScheduleImage" ShowFooter="False" 
                            ShowFullTime="False" DayEndTime="18:00:00" DayStartTime="08:00:00" FirstDayOfWeek="Monday" 
                            LastDayOfWeek="Sunday" Culture="English (United Kingdom)" ShowNavigationPane="False" 
                            ShowHeader="True">  
                                <DayView WorkDayEndTime="20:00:00" DayEndTime="21:00:00" /> 
                                <Localization ShowBusinessHours="Show 12 hours..." /> 
                                <WeekView DayEndTime="21:00:00" WorkDayEndTime="21:00:00" /> 
                                <AppointmentTemplate> 
                                    <div> 
                                        <img alt='' src='<%# Eval("ScheduleImage") %>' />&nbsp;<%#Eval("Subject")%></div>  
                                </AppointmentTemplate> 
                            </telerik:RadScheduler> 

any Suggestions?
Peter
Telerik team
 answered on 05 Aug 2011
2 answers
131 views
Hi folks,

Im new to telerik controls and i was wondering the following:

is the latest version of the telerik rad upload control supporting multiple file upload ?
That is in 1 DIALOGUE. So NOT 10 single upload controls... and call it multiple upload control....
I find that there is no way you should call it mutliple file upload if you set 10 single file uploaders after eachother.
Thats just cheating :p

Im not flaming here, i love the controls.

Then, is there a possibility to change the control in source code, so that you can define a file limit depending on the extension ?
Or is this almost not able to archieve ? So fe. I want the user to restrict jpeg files up to 2MB... and then wmv files up to 10MB.

Thx alot in advance, any info you can give me , is much appreciated :)


*edit* so sorry about the crappy title :(, cant adjust it 
Tom
Top achievements
Rank 1
 answered on 05 Aug 2011
1 answer
85 views
I want to get rid of the gray area seen as part of my telerik Editors bottom , it displays data like FONT > Element, also I need to get rid of many buttons ..

In fact I want the control to look just like this one ( I am writing in ) . Please help
Neha
Top achievements
Rank 1
 answered on 05 Aug 2011
5 answers
161 views
Hi,

I recently upgraded my rad grid from classic to Asp.Net AJAX Q1 grid.
Earlier (before upgrading) I could see the pagination properly.
But now (with all the properties same) I am getting the pager at the bottom of the data div after I scroll till the bottom.
Attached are the images [hope the hidden data is not a problem]. Can you please help me getting the pager properly. The aspx code for the grid is :





<
table width="100%" style="border-width: 1px; border-bottom-width: 1px; border-bottom-width: 1px"
                                                class="STArea" cellspacing="0" cellpadding="0" border="1">
                                                <tr class="SSDetails">
                                                    <td style="height: 100%" align="center">
                                                        <div id="divMFile" runat="server" visible="true" style="overflow: auto; height: 280px;
                                                            width: 100%;">
                                                            <telerik:RadGrid ID="rgridMFile" Skin="SDCSkin" runat="server" BorderStyle="Solid" BorderWidth="0px"
                                                                AutoGenerateColumns="False" GridLines="None" Width="100%" Height="95%" OnSortCommand="rgridMFile_SortCommand"
                                                                OnItemDataBound="rgridMFile_ItemDataBound" OnPageIndexChanged="rgridMFile_PageIndexChanged" EnableEmbeddedSkins="false"
                                                                ShowFooter="false" AllowPaging="true" PagerStyle-Mode="NextPrevAndNumeric" AllowSorting="true">
                                                                <HeaderStyle Height="20px" />
                                                                <ClientSettings>
                                                                    <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                                                                    <Selecting AllowRowSelect="true" />
                                                                </ClientSettings>
                                                                <MasterTableView>
                                                                    <Columns>
                                                                        <telerik:GridBoundColumn UniqueName="FNum" DataField="FNum" SortExpression="FNum"
                                                                            HeaderText="File ID">
                                                                            <HeaderStyle HorizontalAlign="Left" Width="10%" Wrap="False" />
                                                                            <ItemStyle CssClass="RadGridRow" Height="100%" Wrap="false" HorizontalAlign="left" />
                                                                        </telerik:GridBoundColumn>
                                                                        <telerik:GridBoundColumn UniqueName="Names" DataField="Names" SortExpression="Names"
                                                                            HeaderText="File Name">
                                                                            <HeaderStyle HorizontalAlign="Left" Width="20%" Wrap="False" />
                                                                            <ItemStyle CssClass="RadGridRow" Height="100%" Wrap="false" HorizontalAlign="left" />
                                                                        </telerik:GridBoundColumn>
                                                                        <telerik:GridBoundColumn UniqueName="FDetail" DataField="FDetail" SortExpression="FDetail"
                                                                            HeaderText="Prod Details">
                                                                            <HeaderStyle HorizontalAlign="Left" Width="20%" Wrap="False" />
                                                                            <ItemStyle CssClass="RadGridRow" Height="100%" Wrap="false" HorizontalAlign="left" />
                                                                        </telerik:GridBoundColumn>
                                                                        <telerik:GridBoundColumn UniqueName="PName" DataField="PName" SortExpression="PName"
                                                                            HeaderText="Prod Name">
                                                                            <HeaderStyle HorizontalAlign="Left" Width="20%" Wrap="False" />
                                                                            <ItemStyle CssClass="RadGridRow" Height="100%" Wrap="false" HorizontalAlign="left" />
                                                                        </telerik:GridBoundColumn>
                                                                        <telerik:GridBoundColumn UniqueName="Groups" DataField="Groups" SortExpression="Groups"
                                                                            HeaderText="Group Name">
                                                                            <HeaderStyle HorizontalAlign="Left" Width="20%" Wrap="False" />
                                                                            <ItemStyle CssClass="RadGridRow" Height="100%" Wrap="false" HorizontalAlign="left" />
                                                                        </telerik:GridBoundColumn>
                                                                        <telerik:GridBoundColumn UniqueName="Modified" DataField="Modified" SortExpression="Modified"
                                                                            HeaderText="LastModifiedBy">
                                                                            <HeaderStyle HorizontalAlign="Left" Width="10%" Wrap="False" />
                                                                            <ItemStyle CssClass="RadGridRow" Height="100%" Wrap="false" HorizontalAlign="left" />
                                                                        </telerik:GridBoundColumn>
                                                                    </Columns>
                                                                </MasterTableView>
                                                            </telerik:RadGrid>
                                                        </div>
                                                    </td>
                                                </tr>
                                            </table>

Also note that I could not change the pager mode as well. The pager itself is not properly visible in the browser window.
Let me know if anything specific needs to be set in Skin CSS.

Regards,
Ripunjay
Tsvetina
Telerik team
 answered on 05 Aug 2011
1 answer
146 views
I'm currently using the 2010.3.1109.40 version of Telerik.Web.UI.dll.

I just moved our application from a 32 bit windows server running IIS6 to a 64 bit windows server running IIS7 and a few things aren't rendering properly anymore. Specifically the menu control. Instead of formatting properly, it now just displays it as <UL><LI> tags. It's like the dll isn't applying the proper styles.

Has anyone else experienced this?

Thanks
Peter
Telerik team
 answered on 05 Aug 2011
5 answers
251 views
Hi,

I am using Grid control to display some data. All columns use filter option. If the column has text data then all filter options are displayed.
I am getting error while filtering on text data column on "IsEmpty" and "IsNull" options. Whenever I click on IsEmpty button on filter menu I get the error as "

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

"
I debugged and found that this error comes when the command name is "Filter" in Item_Command event while on e.CommandName expression. Please guide me on this issue. Its very urgent.

The names of menus shown in FilterMenu are like "EndsWith", "StartsWith". I need to add a blank space between words of filter menu like "Ends With". Please give me code on how do I do this.
Also, the I want to edit the filter menu only for some columns like for text columns I do not want to show "GreaterThan", "LessThan","Between" filters and keep them for numeric columns in same grid. Please guide me on how this can be done.

Thank you.

Prajakta A.



Marin
Telerik team
 answered on 05 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?