Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
126 views
Flter support sql code generation from expressions, how i can generate expressions from saved sql code?
Nikolay Rusev
Telerik team
 answered on 17 Jun 2010
1 answer
118 views
Hi...I'm having problems with the labels, for one reason the chart don't show the labels for all the bars....attached is an image of my problem.
hope you can help me =)

Regards!
Ves
Telerik team
 answered on 17 Jun 2010
3 answers
207 views
First of all,
every time i think i understand how RadAjaxManager and RadAjaxManagerProxy works, i find that it does not work as i understood it.
that's why i am here now.

I have a master page, that hold a header user control in it. this header user control has a login user control with a login link that opens a modal tooltip with a dynamically created user control with a user name and password fields.

i put a radajaxmanager in the master page, then a proxy in the header user control, the login user control, and the login dialog user control.

But still, when i click login the page refreshes!!!!

i tried to track this down, but as i said, i am not sure what is wrong and if it is me, or something else.

can you help please? why the login button causes a post back? and how can i trace this? and know what is causing the post back?

 

Iana Tsolova
Telerik team
 answered on 17 Jun 2010
3 answers
105 views
how can I get the insert item to display right above the footer instead of beneath it when I'm using insertitemdisplay=bottom on GridTableView  of the radgrid

also by default when tabbing into the grid it goes to the insert row before the rest which is confusing if you have the insert row at the bottom
Daniel
Telerik team
 answered on 17 Jun 2010
5 answers
250 views
I cannot use the resource(resx) file to translate (localize) the radupload component recommended on documentation, however assign the properties to localize, it works.

Unfortunately when i publish the website, those properties does not work anymore.

Does anyone know some server configurations that could influence this?

ps: i am using q2 2008

Gilberto
Genady Sergeev
Telerik team
 answered on 17 Jun 2010
2 answers
141 views
Hi,

We are using RadEditor (Full Version) in our WIKI in german language (MOSS 2007) At the beginning we used Radeditor light and then switched to full version. For some reason we have now the problem that when somebody is using ä, ö, ü in Wiki links f.e. [[Aufwände]] the editor is saving this as [[Aufwnde|Aufwände]] and is producing a site called Aufwnde, when you click on the linked word.

With the light editor we hadn´t such a problem. What do we have to do to solve this problem?

Thank you for any suggestions, 
Lothar  
Sandra Eibensteiner
Top achievements
Rank 1
 answered on 17 Jun 2010
1 answer
243 views
I have a 5 level hierarchy and need to align all the columns from master to detail, all in a straingt line. I am having only the Headers for the MasterTableView and hiding the Headers for the DetailTables. The Columns are not aligning even after i compensated for the 19 pixel width for the expand-collapse buttons on each Hierarchical level. The problem appears to be due to the Table border width for the nested tables. The Detail table border still appears after i apply the below style.  Somebody Please advise. Thanks in Advance
.rgDetailTable
        {
         border-style: none;
          }
Princy
Top achievements
Rank 2
 answered on 17 Jun 2010
2 answers
314 views
Hi there,

I have a two-level hierarchical grid with a mastertable and some detailtables. Each row in the detail tables has a column with an asp:Image that has an onclick event. The event opens a RadMenu as seen in the attached screenshot.

Here is the menu:
<Telerik:RadContextMenu ID="RadContextMenu1" runat="server" OnClientItemClicked="OnMoveGroupClicked" 
         EnableRoundedCorners="true" EnableShadows="true" AppendDataBoundItems="true" DataSourceID="MilestoneGroupsDS" DataFieldID="pk_miletonegroup_id" DataTextField="milestonegroup_name"> 
    <Items> 
        <Telerik:RadMenuItem Text="Move to Group:" Enabled="false" /> 
    </Items> 
</Telerik:RadContextMenu> 

Here is the column:
<telerik:GridTemplateColumn UniqueName="move_to_group"> 
                    <ItemTemplate> 
                        <asp:Image ID="MoveToGroupImg" runat="server" CssClass="cursor_hand" ToolTip="Click to move to another group" ImageUrl="~/Img/folder_arrow.png" onClick="showMenu(event)" /> 
                    </ItemTemplate> 
</telerik:GridTemplateColumn> 

And the javascript:
function showMenu(e) { 
        var contextMenu = $find("<%= RadContextMenu1.ClientID %>"); 
         
        if ((!e.relatedTarget) || (!$telerik.isDescendantOrSelf(contextMenu.get_element(), e.relatedTarget))) 
        { 
            contextMenu.show(e); 
        } 
         
        $telerik.cancelRawEvent(e); 
    } 

Now, when the user clicks an item in the pop up menu I need to know the index of the row where the image was clicked and which detailtable it happened in. Anyone got an idea on how I could achieve that?

I've seen the example in http://www.telerik.com/community/code-library/aspnet-ajax/general/radmenu-as-context-menu-in-hierarchical-radgrid.aspx which uses the OnRowContextMenu event to store the needed data in two hidden fields, but that event isn't useful in my scenario. I've tried to use OnRowMouseOver instead, but the user might hover over other rows before clicking the menu so that wasn't very reliable:

function OnMoveGroupClicked(sender, args) { 
        alert("clicked " + document.getElementById("radGridClickedRowIndex").value + " " + document.getElementById("radGridClickedTableId").value); 
    } 
 
    function OnRowMouseOver(sender, eventArgs) { 
        document.getElementById("radGridClickedRowIndex").value = eventArgs.get_itemIndexHierarchical(); 
        var ownerTable = eventArgs.get_tableView(); 
 
        document.getElementById("radGridClickedTableId").value = ownerTable._data.UniqueID; 
    } 

<input type="hidden" id="radGridClickedRowIndex" name="radGridClickedRowIndex"> 
<input type="hidden" id="radGridClickedTableId" name="radGridClickedTableId"> 

<input type="hidden" id="radGridClickedRowIndex" name="radGridClickedRowIndex"> 
<input type="hidden" id="radGridClickedTableId" name="radGridClickedTableId"> 


Eirik H
Top achievements
Rank 2
 answered on 17 Jun 2010
6 answers
139 views
Hi,

My RadMaskedTextBox is not allowing you to tab out of the input box when the cursor is in the last place of the mask.  Given the control:

<rad:RadMaskedTextBox ID="MyControl" runat="server" Mask="####" Skin="Default" CssClass="SomeClass" ValidationGroup="SomeGroup"> 
</rad:RadMasketTextBox> 


you can enter four digits and click tab and focus will leave the input.  You enter the fifth digit and clicking tab does nothing.  You do not need to enter anything at all to recreate the effect.  Simply put focus to the farthest right possible place and tab will be ignored.  anywhere else in the mask and it works normally.  

This occurs in FF (tested in 3.5.5) and does not occur in IE 7.

This only started when I upgraded to 2009.3.1208
Pavel
Telerik team
 answered on 17 Jun 2010
1 answer
106 views
Hi team,

I have one problem to fix this issue with my simple grid (no hierarchie) using one Dataset as source. The Dataset is preserved using session (week_id, price, discount). The grid generate four ajax pages and pager is working as normal (next previous and go to page). I use Edit Inline or other edit modes are causing same problem the item opened to be updated is always at firt page same level. I have tested other scenarios using codes used in demo but is similar. using last Q. Ajax is registred backside joining a masterpage radscriptmanager. Thanks. Romi

<telerik:RadGrid ID="PlanGrid" runat="server" Skin="Vista"  GridLines="None" Width="100%" OnNeedDataSource="PlanGrid_NeedDataSource" 
                                             AutoGenerateColumns="False" AllowMultiRowEdit="True" ShowStatusBar="true" AllowPaging="True" 
                                            OnUpdateCommand="PlanGrid_UpdateCommand" AllowAutomaticUpdates="True" PageSize="14"> 
                                                 <MasterTableView DataKeyNames="Week" Width="100%" CommandItemDisplay="Top" EditMode="InPlace" > 
                                                               <Columns> 
                                                                <telerik:GridEditCommandColumn  ButtonType="ImageButton" UniqueName="EditCommandColumn"> 
                                                                    <ItemStyle CssClass="MyImageButton" /> 
                                                                </telerik:GridEditCommandColumn> 
                                                                 <telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn"> 
                                                                        <HeaderTemplate> 
                                                                         <asp:CheckBox id="headerChkbox" OnCheckedChanged="ToggleSelectedState" AutoPostBack="True" runat="server"></asp:CheckBox> 
                                                                        </HeaderTemplate> 
                                                                        <ItemTemplate> 
                                                                            <asp:CheckBox id="CheckBox1" OnCheckedChanged="ToggleRowSelection" AutoPostBack="True" runat="server"></asp:CheckBox> 
                                                                        </ItemTemplate> 
                                                                </telerik:GridTemplateColumn> 
                                                                <telerik:GridBoundColumn UniqueName="Week" SortExpression="Week" HeaderText="Week" ReadOnly="true" 
                                                                    DataField="Week" /> 
                                                                <telerik:GridBoundColumn UniqueName="Days_1d"  HeaderText="Price" 
                                                                    DataField="Days_1d" > 
                                                                    <ItemStyle  Width="100px" /> 
                                                                </telerik:GridBoundColumn>  
                                                                 <telerik:GridBoundColumn UniqueName="Days_promo"  HeaderText="Discount(%)" 
                                                                    DataField="Days_promo" DataType="System.Int32"> 
                                                                    <ItemStyle  Width="70px" /> 
                                                                </telerik:GridBoundColumn>              
 
                                                            </Columns> 
                                                               <EditFormSettings ColumnNumber="2" CaptionDataField="Week" CaptionFormatString="Edit properties of Week {0}"> 
                                                                   <FormTableItemStyle Wrap="False"></FormTableItemStyle> 
                                                                    <FormCaptionStyle CssClass="EditFormHeader"></FormCaptionStyle> 
                                                                    <FormMainTableStyle GridLines="None" CellSpacing="0" CellPadding="3" BackColor="White" 
                                                                        Width="100%" /> 
                                                                    <FormTableStyle CellSpacing="0" CellPadding="2" Height="110px" BackColor="White" /> 
                                                                    <FormTableAlternatingItemStyle Wrap="False"></FormTableAlternatingItemStyle> 
                                                                    <EditColumn ButtonType="ImageButton" InsertText="Insert Order" UpdateText="Update week" 
                                                                        UniqueName="EditCommandColumn1" CancelText="Cancel"> 
                                                                    </EditColumn> 
                                                                    <FormTableButtonRowStyle HorizontalAlign="Right" CssClass="EditFormButtonRow"></FormTableButtonRowStyle> 
                                                                </EditFormSettings> 
                                                       
                                                            </MasterTableView> 
                                                <ClientSettings EnableRowHoverStyle="true"> 
                                                    
                                                </ClientSettings> 
                                                <PagerStyle  Mode="NextPrevAndNumeric" /> 
                                                  
                                            </telerik:RadGrid> 
 
 
//CODE 
 
    protected void PlanGrid_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e) 
        { 
            this.PlanGrid.DataSource = PlanningData; //is a Dataset
        } 
 
     protected void PlanGrid_ItemPreRender(object sender, EventArgs e) 
        { 
            ((sender as GridDataItem)["CheckBoxTemplateColumn"].FindControl("CheckBox1") as CheckBox).Checked = (sender as GridDataItem).Selected; 
 
        } 
        protected void ToggleRowSelection(object sender, EventArgs e) 
        { 
            ((sender as CheckBox).Parent.Parent as GridItem).Selected = (sender as CheckBox).Checked; 
        } 
        protected void ToggleSelectedState(object sender, EventArgs e) 
        { 
            if ((sender as CheckBox).Checked == true) 
            { 
                foreach (GridDataItem dataItem in PlanGrid.MasterTableView.Items) 
                { 
                    (dataItem.FindControl("CheckBox1") as CheckBox).Checked = true; 
                    dataItem.Selected = true; 
                } 
            } 
            else 
            { 
                foreach (GridDataItem dataItem in PlanGrid.MasterTableView.Items) 
                { 
                    (dataItem.FindControl("CheckBox1") as CheckBox).Checked = false; 
                    dataItem.Selected = false; 
                } 
            } 
        } 
        protected void PlanGrid_UpdateCommand(object source, Telerik.Web.UI.GridCommandEventArgs e) 
        { 
            PlanGrid.MasterTableView.EditMode = GridEditMode.EditForms; 
            GridEditableItem eeditedItem = e.Item as GridEditableItem; 
            GridEditManager editMan = editedItem.EditManager; 
 
            foreach (GridColumn column in e.Item.OwnerTableView.RenderColumns) 
            { 
                if (column is IGridEditableColumn) 
                { 
                    IGridEditableColumn editableCol = (column as IGridEditableColumn); 
                    if (editableCol.IsEditable) 
                    { 
                        IGridColumnEditor editor = editMan.GetColumnEditor(editableCol); 
 
                        string editoreditorType = editor.ToString(); 
                        string editorText = "unknown"; 
                        object editorValue = null; 
 
                        if (editor is GridTextColumnEditor) 
                        { 
                            editorText = (editor as GridTextColumnEditor).Text; 
                            editorValue = (editor as GridTextColumnEditor).Text; 
                        } 
 
                        if (editor is GridBoolColumnEditor) 
                        { 
                            editorText = (editor as GridBoolColumnEditor).Value.ToString(); 
                            editorValue = (editor as GridBoolColumnEditor).Value; 
                        } 
 
                        if (editor is GridDropDownColumnEditor) 
                        { 
                            editorText = (editor as GridDropDownColumnEditor).SelectedText + "; " + 
                                (editor as GridDropDownColumnEditor).SelectedValue; 
                            editorValue = (editor as GridDropDownColumnEditor).SelectedValue; 
                        } 
 
                        try 
                        { 
                            DataRow[] changedRows = PlanningData.Tables[0].Select("Week= " + editedItem.OwnerTableView.DataKeyValues[editedItem.ItemIndex]["Week"]); 
                            changedRows[0][column.UniqueName] = editorValue; 
                            PlanningData.Tables[0].AcceptChanges(); 
                        } 
                        catch (Exception ex) 
                        { 
                            PlanGrid.Controls.Add(new LiteralControl("<strong>Error '" + column.UniqueName + "'</strong> - " + ex.Message)); 
                            e.Canceled = true; 
                            break; 
                        } 
                    } 
                } 
            } 
            editedItem.Edit = false; 
        } 

Yavor
Telerik team
 answered on 17 Jun 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?