Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
89 views
Version: 2009.2 701

Problem:
    The CommandItem appears twice if you have the following settings:

1).CommandItemDisplay="Top"  -MasterTableView
2) AllowScroll="True" - ClientSettings -->Scrolling
3) AllowPaging="False"

Question:
Has anyone else ran into this problem? 

Work-Around: Set AllowPaging="True"

Update: Here is enough code to re-produce the problem:

 <telerik:RadGrid ID="grd" runat="server" DataSourceID="datasource" GridLines="None"
AllowSorting="True" PageSize="5000" AllowAutomaticInserts="True" AllowAutomaticDeletes="True"
AllowAutomaticUpdates="True">
<HeaderContextMenu EnableTheming="True">
<CollapseAnimation Type="None" Duration="0"></CollapseAnimation>
</HeaderContextMenu>
<PagerStyle AlwaysVisible="True"/>
<MasterTableView Caption="Some text here" datakeynames="1,2"
datasourceid="datasource" CommandItemDisplay="Top"
PagerStyle-Position="Top" PagerStyle-AlwaysVisible="true">
<Columns></Columns>
<EditFormSettings EditFormType="Template" >
<EditColumn UniqueName="EditCommandColumn1"></EditColumn>
<FormTemplate>
<%--Removed--%>
</FormTemplate>
</EditFormSettings>
<PagerStyle AlwaysVisible="False" Position="Top" />
</MasterTableView>
<ClientSettings>
<Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="600px" />
</ClientSettings>
<FilterMenu EnableTheming="True" Skin="Office2007">
<ExpandAnimation Duration="0" Type="None" />
<CollapseAnimation Duration="0" Type="None" />
</FilterMenu>
</telerik:RadGrid>

 

 

Rosen
Telerik team
 answered on 13 Jul 2009
1 answer
125 views
Hi,
I am using RadEditor which is Used by largely Turkish End-Users to provide them to create PDFs. Therefore, HTML window is not shown. But I have problems with Tables and Turkish Character when I export the content to PDF files. I guess third party HTML2PDF tool that radeditor using, does not support Turkish and not good at Converting Tables.  Do you have any idea about how can I walk around these?
Many Thanks in Advance
Kind Regards.
Aytaç Utku TOPAL
Rumen
Telerik team
 answered on 13 Jul 2009
1 answer
341 views
Hello,

I'm currently working on a Sharepoint Webpart containing the RadGrid. This Grid is able to Filter items

RadGrid1.AllowFilteringByColumn = true

I've read an article to change the FilterMenu with this code:

GridFilterMenu menu = RadGrid1.FilterMenu; 
                    int i = 0; 
                    while (i < menu.Items.Count) 
                    { 
                        if (menu.Items[i].Text == "NoFilter" ||  
                            menu.Items[i].Text == "Contains" || 
                            menu.Items[i].Text == "EqualTo" || 
                            menu.Items[i].Text == "GreatherThan" || 
                            menu.Items[i].Text == "LessThan"
                        { 
                            i++; 
                        } 
                        else 
                        { 
                            menu.Items.RemoveAt(i); 
                        } 
                    } 

My Question now is - Is is possible to change the visible names of the Fliter Menu Items.

NoFilter should be displayed as "Geen Filter"
Contains should be displayed as "Bevat"
EqualTo should be displayed as "Gelijk aan"
GreatherThan should be displayed as "Groter dan"
LessThan should be displayed as "Minder dan"

Is there a way to achieve this, because the client I'm working for has a Dutch-only policy on their software.
I Hope you're able to help me.

Paul

Paul
Top achievements
Rank 1
 answered on 13 Jul 2009
2 answers
311 views
Hi
Currently, I am using InPlace edit mode to let user adding new records in RadGrid.  Users need to click "Add" in the CommandItemTemplate to show the controls in the EditItemTemplate.  AFter user click Update, the record is added and the EditItemTemplate is closed.  Users need to click "Add" again to add the second record.  How can I make the Grid remain in "Insert Mode" after adding a new record?

I have tried 

    protected void radLines_InsertCommand(object source, GridCommandEventArgs e)
    {
            /* codes to add record */
            RadGrid grid = source as RadGrid;
            grid.MasterTableView.IsItemInserted = true;
            grid.Rebind();
    }

but the EditItemTemplate is still closed.

Regards
Edwin
Edwin
Top achievements
Rank 1
 answered on 13 Jul 2009
1 answer
74 views
Dear All,
I want to drag persons from grid view to scheduler and then make new appointment (i am using RadGridView) I can drag persons but i dont know how to insert new appointment when I am dropping them down on scheduler is this possieble??
Princy
Top achievements
Rank 2
 answered on 13 Jul 2009
3 answers
149 views
Hi there,

I am trying to create a custom class which inherits radtimepicker class, and overrides the SelectedDate property of the class. but i am stuck at how to use this class with the radtimepicker control and let that control use the override property.

why i want to do this is because we have lots for classic RadControls in our application now we are migrating them to the new ajax version, previously we were using asp:TextBox with JS to get the time value and to validate the value, with radtimepicker we get all the functionality we want without any extra JS :). the only problem is getting only the time value from the radtimepicker and not the date with that. while searching i found i can do that by using CType(radtimepicker .SelectedDate, DateTime).ToString("tt") but this will take a lot of time to implement :(. if i can just override the SelectedDate property and place the above .ToString("tt") with the GETTER it will be more easy :).

i hope i am able to explain my problem. any example code will be a great help.

Thanks
Nitesh Monga
Veli
Telerik team
 answered on 13 Jul 2009
2 answers
136 views
Imagine a page with a control on it, say a textbox. Imagine the user hovers the mouse over the control and up pops a tooltip which reads ...

  "Enter the information requires (more)"

Further, imagine that the word 'more' is a hyperlink and that, if the user clicks on it, the tooltip resizes and shows a more details set of instructions.

Is this doable?

I've only used tooltips in a fairly simplistic way thus far and like to know whether or nor this is possible before I devote the time to trying to make it happen.

Many thanks

--
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 13 Jul 2009
1 answer
122 views
I've got a radgrid with a master table and a detail table, both of which are updatable using the built in Update/Insert options and databound using ObjectDataSources. The master table displays versioned information--data that changes QoQ for the business.

We want to change the functionality so that when changes are made, a confirmation dialog pops up to ask the user if they want to update the current record--or create a copy of it for the next quarter. And if they choose to create a copy of it, they will then need to enter a new Quarter Date. They want this confirmation fired whenever the "Edit" button is clicked or whenever the (Detail Table) "Expand" button is clicked.

Does anyone have any examples of something like this?

Thanks,

Jamal
Yavor
Telerik team
 answered on 13 Jul 2009
3 answers
121 views
I hve a RadGrid which has GridTemplate Columns that have a label inside them.  The database pulls back an integer, in the code behind I change the value of the int to a string which works great.

However, when I do my grouping the integer shows up in the grouped header and not the string. 

How can I get the string to show up like it does in the grid and not the integer without having to change it in the SQL?

Thanks
Veli
Telerik team
 answered on 13 Jul 2009
1 answer
87 views
I have a grid bound to an objectdatasource (base class datatable) and am trying to fliter using a dropdownlist for a boolean variable (took forever to figure our that the filter required a capitalized "True").

Here is my filter template:
                <FilterTemplate> 
                    Show:  
                    <asp:DropDownList runat="server" ID="ddlFilter" OnSelectedIndexChanged="FilterCombo_SelectedIndexChanged" 
                        AutoPostBack="true">  
                        <asp:ListItem Value="None" Text="All Cases" /> 
                        <asp:ListItem Value="Pediatric" Text="Pediatric only" /> 
                    </asp:DropDownList> 
                </FilterTemplate> 
 

the selectedIndexChanged:
        Protected Sub FilterCombo_SelectedIndexChanged(ByVal sender As ObjectByVal e As System.EventArgs)  
            Dim filterExpression As String 
            If CType(sender, DropDownList).SelectedValue = "Pediatric" Then 
                filterExpression = "([Pediatric] = True)" 
            Else 
                filterExpression = String.Empty  
            End If 
            RadGridCases.MasterTableView.FilterExpression = filterExpression  
            RadGridCases.MasterTableView.Rebind()  
        End Sub 
 
itemcreated (it is the only filter I use):
        Protected Sub RadGridCases_ItemCreated(ByVal sender As ObjectByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGridCases.ItemCreated  
            If TypeOf (e.Item) Is Telerik.Web.UI.GridFilteringItem Then 
                If Not RadGridCases.MasterTableView.FilterExpression Is String.Empty Then 
                    CType(e.Item.FindControl("ddlFilter"), DropDownList).SelectedValue = "Pediatric" 
                End If 
            End If 
        End Sub 

I check on NeedDataSource and the filteringexpression is correct ([Pediatric] = True), but it wasn't filtering.

So I created a test checkbox column:
            <telerik:GridCheckBoxColumn DataField="Pediatric" AllowFiltering="true" /> 
 
and while this set the exact same filteringexpression, it worked. Combining my template and setting the GridCheckBoxColumn visible property to false also works, so no idea what is going on. Also, the sorting does work if any of this filtering is occuring (even if off)

Thanks,
Reuven

Veli
Telerik team
 answered on 13 Jul 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?