Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
30 views
I want to use teh "AddNewRecordButton"  because I want to fire off the ItemCommand eventHandler. However, I dont want to have a new row inserted into the grid...I want to run my own function instead...is there a way to do this?


Thanks
Matthew
Top achievements
Rank 1
 answered on 29 Apr 2011
2 answers
131 views
Hello. I'm using the RadEditor control without the toolbars as recommended here:
http://www.telerik.com/community/forums/aspnet-ajax/editor/remove-toolbar.aspx
This works fine, but I'm also trying to show a RadWindow. The style for hiding the
toolbar is causing the RadWindow to not show. I believe the offending style is this.
.RadWindow.RadWindow_Default.rwNormalWindow.rwTransparentWindow 
    { 
        display: none !important; 
    } 

Is it possible to use the RadEditor without a toolbar and show a RadWindow?

Thanks
Scott

Scott Michetti
Top achievements
Rank 1
Iron
 answered on 29 Apr 2011
2 answers
83 views
I need to put a small label between the gridview and the paging buttons of the gridview. I need to display a value in that label that is completely unrealted with the gridview stored proc.This value is coming from a different stored proc. user want to see the value between the gridview and paging buttons, the next and prev buttons. Is it possible to do that.

Any help will be higly apprceciated
Anjali
Top achievements
Rank 1
 answered on 29 Apr 2011
3 answers
202 views

We are using the ListBox control on a common page in our application.  We are using the Move Up, Move Down and Delete features.  This control is used in 508 and non-508 mode.  We are unable to tab into the ListBox no matter what mode we are in.  Is tabbing into this control supported?  Is there a different way to get to the rows of the box without using the mouse?

<telerik:RadListBox ID="rlbFilters" runat="server" AllowDelete="True" 
    AllowReorder="True" Height="100px" Width="450px" OnDeleted="OnCriteriaRemoval" 
    OnReordered="OnCriteriaReorderd" OnClientSelectedIndexChanged="rlbFilters_SelectedIndexChanged"
    AutoPostBackOnReorder="true" AutoPostBackOnDelete="true" Visible="false" >
    <ButtonSettings />
</telerik:RadListBox>


Thank you,
Lindsay

Mike
Top achievements
Rank 1
 answered on 29 Apr 2011
3 answers
77 views
Hi 

I am using several RedHtmlFeild as user controls on my publishing pages and now as i changes the direction of page to rtl, the content inside the RedHtmlFeild is still in ltr direction . What i want is that on editing the page RedHtmlFeild should show content in rtl direction. Please suggest something so that RedHtmlFeild  also supports rtl. Also its urgent.

Thanks
Rajat Jindal
Rumen
Telerik team
 answered on 29 Apr 2011
3 answers
108 views
I use the following method to build a table of all of the current values in a Gridview after any edits may have occured...

private DataTable BuildRenameTableFromGrid()
        {
            int cnt = rgRuleReplace.Items.Count;
            DataTable dt = GetEmptyRenameTable();


            for (int i = 0; i < cnt; i++)
            {
                GridEditableItem editedItem = (GridEditableItem)rgRuleReplace.EditItems[0];
                string val1 = editedItem.OwnerTableView.DataKeyValues[i]["replace_addto"].ToString();
                string val2 = editedItem.OwnerTableView.DataKeyValues[i]["column_name"].ToString();
                string val3 = editedItem.OwnerTableView.DataKeyValues[i]["new_value"].ToString();


                DataRow row;
                row = dt.NewRow();
                row["replace_addto"] = val1;
                row["column_name"] = val2;
                row["new_value"] = val3;
                dt.Rows.Add(row);


            }
            return dt;
        }


Here is the gridview...

 <Telerik:RadGrid ID="rgRuleReplace" runat="server"  
            onitemdatabound="rgRuleReplace_ItemDataBound" 
            EnableLinqExpressions="False" Width="100%" AllowPaging="True" 
            PageSize="10" DataMember="reg_rule_renames" GridLines="None" 
                                    onitemcommand="rgRuleReplace_ItemCommand" 
                                    onprerender="rgRuleReplace_PreRender1"
                                    onneeddatasource="rgRuleReplace_NeedDataSource1" 
                                    EnableViewState="true">
        <MasterTableView DataKeyNames="replace_addto,column_name,new_value" CommandItemDisplay="Top" AutoGenerateColumns="False" HeaderStyle-Height="10px" EditMode="InPlace" DataMember="reg_rule_renames" HeaderStyle-CssClass="gridHeader" AllowAutomaticDeletes="False" AllowAutomaticInserts="False" AllowAutomaticUpdates="False" >
            <Columns>
                <Telerik:GridDropDownColumn UniqueName="replace_addto" DataField="replace_addto" HeaderText="Comparison Item" ListDataMember="replace_addto" ListTextField="replace_addto" ListValueField="replace_addto"/>
                <Telerik:GridDropDownColumn UniqueName="column_name" DataField="column_name" HeaderText="Register Column"  ListDataMember="column_names" ListTextField="column_name" ListValueField="column_name"/>
                <Telerik:GridBoundColumn UniqueName="new_value" DataField="new_value" DataType="System.String" HeaderText="New Value" />
                <%--<Telerik:GridEditCommandColumn ButtonType="LinkButton" EditText="Edit" UniqueName="editbutton" />--%>
                
               


            </Columns>
        </MasterTableView>
        <ClientSettings>
            <Selecting AllowRowSelect="True" />
        </ClientSettings>
    </Telerik:RadGrid>


But regardless of what the value of the edited column is the only value retrieved is the original value of the column before it was edited.  Any ideas what I'm missing?
Matthew
Top achievements
Rank 1
 answered on 29 Apr 2011
3 answers
91 views
Hi,

I have customized some of the resx files for the Editor and I see the changes I made when I run in Visual Studio, but I do not see them when I publish the site.  I apologize for this basic question, but do I have to deploy the resx files in the App_GlobalResources folder?  I tried setting as Embedded Resource but this did not work.

Thanks.
Rumen
Telerik team
 answered on 29 Apr 2011
2 answers
100 views

Hi,

 I have added resource control which is showing fine in radschedule  advance form. I need to change end date and time according to selected value from the added resource, however unable to find selected index changed event of added resource!! Do I need to implement AdvancedForm.ascx for that or should I use “AdvancedInsertTemplate” “AdvancedEditTemplate”  with normal dropdown?

If I implement second approach getting issue in “AdvancedInsertTemplate” and “AdvancedEditTemplate” while retrieving reoccurrence rules and parent ID…. 

Peter
Telerik team
 answered on 29 Apr 2011
4 answers
130 views
Hi,

I have a custom style listed in Editor Apply CSS Class dropdown, and it works perfect when i apply styles both in DESIGN and HTML view of the Editor. The only issue is that all our styles are in "Title" case and the Design View of the editor is displaying the styles irrespective of the css class "case sensistive". In short , the DESIGN view is not case sensitive for css class applied for it. This is making a problem when I display in browser because browser is case sensitive for css classes.

Can any one help me to apply "Case sensitive" for the Design view of the editor.

The below class works in editor DESIGN view for both "class = caption" and "class=Caption". But the browser doesn't.
.Caption {
    color: #999999;
    font-family: Arial;
    font-size: 9pt;
    font-style: italic;
}

Thanks,
Akila.
Akila Kumarasamy
Top achievements
Rank 1
 answered on 29 Apr 2011
0 answers
52 views
Hi,

I'm using 2011.1.413.40, I have a Grid and following editing settings:

<EditFormSettings UserControlName="~/Web/Administative/Companies and users/Companies view/NewCompanyWizard.ascx" EditFormType="WebUserControl" PopUpSettings-Modal="true"></EditFormSettings>

problem was that when Grid was in edit/insert mode and overlay was loaded (GridModal_skinName) I could see both scrollbars in browser, which is IE9 (haven't tested other modes or browsers). The size of overlay was bigger than required.

I ended up with following solution (uses jQuery):
add this to your scripts.js file

function customResizeModalBackground() {
    var d = String.format("modalDivId_{0}", this.get_id());
    var b = $get(d);
    if (b) {
        b.style.width = $(window).width();
        b.style.height = $(window).height();
    }
}
  
var popUp;
function PopUpShowing(sender, eventArgs) {
    popUp = eventArgs.get_popUp();
    var popUpWidth = popUp.style.width.substr(0, popUp.style.width.indexOf("px"));
    popUp.style.left = (Math.round(($(window).width() - popUpWidth) / 2 + sender.get_element().offsetLeft)).toString() + "px";
    popUp.style.top = $('#' + sender.ClientID).position().top + "px";
  
    sender.resizeModalBackground = customResizeModalBackground;
}

and tell the Grid to call this function when popup is loaded:

<ClientEvents OnPopUpShowing="PopUpShowing" />

you will get centered popup without scrollbars (checked in IE9, Safari, FF4, Chrome)
what we basically do is override native resizing method with custom one that uses jQuery to provide proper width and height

Enjoy! :)
Shukhrat Nekbaev
Top achievements
Rank 1
 asked on 29 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?