Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
85 views
In FireFox the image size is visible when drag handle is dragged.
How can this be accomplished in IE?

BR,
Marc
Rumen
Telerik team
 answered on 28 Oct 2011
1 answer
43 views
Here is a sample page:  See the environment information in the UL tag in the markup sample.
Steps to reproduce in IE8:
. Select Image Manager Icon
. Click Cancel button on the image manager dialog
Notice the Scroll bar vanishes.  How can I fix this?  Thanks.

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager ID="ScriptManager1" runat="server" />
        <telerik:RadSplitter ID="splitterOuter" Height="99.9%" Width="99.9%" ResizeMode="Proportional"
            runat="server">
            <telerik:RadSplitBar ID="spVertical2" CollapseMode="Both" runat="server" />
            <telerik:RadPane ID="paneRightOuter" Scrolling="Y" runat="server">
                <telerik:RadSplitter ID="spHorizontalOuter" ResizeMode="AdjacentPane" LiveResize="true"
                    Width="100%" Orientation="Horizontal" runat="server">
                    <telerik:RadPane ID="rPaneTop" runat="server" Scrolling="None">
                        <div>
                        <h2>Environment:</h2>
                            <ul>
                                <li>RadEditor.dll Version 7.3.1.0 </li>
                                <li>TeleriK.Web.UI Version 2011.1.315.40</li>
                                <li>Telerik.Web.Design Version 2011.1.315.40 </li>
                                <li>jQuery-1.4.2.js </li>
                                <li>Visual Studio 2010 </li>
                                <li>IE8 </li>
                            </ul>
                        </div>
                    </telerik:RadPane>
                    <telerik:RadSplitBar ID="spHorizontalInner" AdjacentPanesNames-BottomPaneName="rpPaneBot"
                        runat="server" CollapseMode="Both" />
                    <telerik:RadPane ID="rpPaneBot" Scrolling="none" runat="server">
                        <telerik:RadEditor runat="server" ID="RadEditor1" Height="400px" SkinID="DefaultSetOfTools">
                            <Tools>
                                <telerik:EditorToolGroup Tag="FileManagers">
                                    <telerik:EditorTool Name="ImageManager" />
                                </telerik:EditorToolGroup>
                                <telerik:EditorToolGroup>
                                    <telerik:EditorTool Name="Bold" />
                                    <telerik:EditorTool Name="Italic" />
                                    <telerik:EditorTool Name="Underline" />
                                    <telerik:EditorSeparator />
                                    <telerik:EditorTool Name="ForeColor" />
                                    <telerik:EditorTool Name="BackColor" />
                                    <telerik:EditorSeparator />
                                    <telerik:EditorTool Name="FontName" />
                                    <telerik:EditorTool Name="RealFontSize" />
                                </telerik:EditorToolGroup>
                            </Tools>
                            <ImageManager ViewPaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations" />
                            <Content>
               The tight integration with ASP.NET AJAX and the powerful new capabilities make Telerik's WYSIWYG Editor a flexible and lightweight component, turning it into the fastest loading Web Editor. Among the hottest features are:
                <ul>
                    <li><em>Single-file, drag-and-drop deployment</em></li>
                    <li><em>Built on top of ASP.NET AJAX</em></li>
                    <li><em>Unmatched loading speed with new semantic rendering </em></li>
                    <li><em>Full keyboard accessibility</em></li>
                    <li><em>Flexible Skinning mechanism</em></li>
                    <li><em>Simplified and intuitive toolbar configuration</em></li>
                    <li><em>Out-of-the-box XHTML-enabled output</em></li>
                </ul>
                            </Content>
                        </telerik:RadEditor>
                    </telerik:RadPane>
                </telerik:RadSplitter>
            </telerik:RadPane>
        </telerik:RadSplitter>
    </div>
    </form>
</body>
</html>

Rumen
Telerik team
 answered on 28 Oct 2011
1 answer
104 views
Hi,

I've got a page with a RadAjaxManager on with an OnResponseEnd method. It had a single Formview on the page, ajaxified by the RadAjaxManager. In this scenario, the OnResponseEnd method of the RadAjaxManager was called when the Formview updated, as expected.

I've now placed a RadTabStrip on the page, with an associated RadMultiPage control. I've added a RadPageView to the RadMultiPage, and placed my Formview in the RadPageView. Now, the Formview still appears to be ajaxified by the RadAjaxManager, but the OnResponseEnd javascript method is never fired.

Any ideas?

Thanks,

Matt
Maria Ilieva
Telerik team
 answered on 28 Oct 2011
3 answers
198 views
I using following code to implement checkAll functionality using a header template checkbox.it works fine for the current page when pagination is enabled.i need to check all checkboxs in all the pages


 function CheckHeaderCheckBoxIfNeeded(radGrid) {
                var checkHeaderCheckBox = true;
                var dataItems = radGrid.get_masterTableView().get_dataItems();
              
                for (var i = 0; i < dataItems.length; i++) {
                    var dataItem = dataItems[i];
                    var row = dataItem.get_element();
                    var ckeckBox = row.children[0].children[0];
                    if (!ckeckBox.checked) {
                        checkHeaderCheckBox = false;
                    }
                }


                SelectCheckBox(checkHeaderCheckBox);
            } 
Jayesh Goyani
Top achievements
Rank 2
 answered on 28 Oct 2011
2 answers
115 views
I spent a few hours ripping my hair out over this one - but it appears that there is a bug in the NodeCheck event in RadTreeView. It may be specific to Firefox/Mozilla, and i've tried the no-cache fix, with no luck.

As an example, create a TreeView with checkboxes=true, and populate it with say 10 nodes in the Page_Load event. Add a NodeCheck server side event (the function can be empty).  Wrap the TreeView in an AjaxPanel, and run the project.

<telerik:RadAjaxPanel ID="rap2" runat="server">
<telerik:RadTreeView runat="server" ID="tv1" CheckBoxes="true"  onnodeexpand="tv1_NodeExpand" onnodecheck="tv1_NodeCheck"  >
</telerik:RadTreeView>
</telerik:RadAjaxPanel>

protected void Page_Load(object sender, EventArgs e)
{
    if (!Page.IsPostBack)
    {
        tv1.Nodes.Clear();
        for (int i = 0; i < 10; i++)
        {
            tv1.Nodes.Add(new RadTreeNode(i.ToString()));
        }
    }
}

Check off all the boxes, and hit refresh on the browser (CTRL-R or F5). When the page reloads, either none of the nodes will be checked, or only the first node will be checked. It appears that the ViewState is not being saved after a NodeCheck event.

The hack solution i have for the time being is to add in an OnClientNodeChecked handler with the following:
function ClientNodeCheck() {
    var tree = $find("<%= tv1.ClientID %>");
    tree.UpdateState()
}


Could you please confirm if this is in fact a bug, and if there will be a fix for this in an upcoming release?

Thanks,

N.
Princy
Top achievements
Rank 2
 answered on 28 Oct 2011
1 answer
72 views
Hi,

               I have three values in Combo box.
                 1.If i select Value "A" in combo, I want to show the grid column order of "Col1","Col2" and "Col3".
                 2.if i select Value "B" in combo, I want to show the grid column order of "Col2","Col3" and "Col1".
                 3.if i select Value "C" in combo, I want to show the grid column order of "Col3","Col2" and "Col1".

and again if i select "A" from any of the "B" or "C", it should be restored.

i have tried in server side.But when the value go to "A" from either of the value, the grid hasnt been restored,

radGridProjectDisplay.MasterTableView.SwapColumns(

 

"PROJECT_NAME", "MKT_PROD");

 

and it is working fine in one shot.if you go back and flip flop combo value ,
it is not working as expected.

Please give me solution as soonas possible.

Thanks,
Priya
Shinu
Top achievements
Rank 2
 answered on 28 Oct 2011
2 answers
177 views
I am using the latest version of RadControls (2011.2.712.40) and am running into a confusing issue. I have a grid defined with a GroupByExpression like so:
<GroupByExpressions>
    <telerik:GridGroupByExpression>
        <GroupByFields>
            <telerik:GridGroupByField FieldAlias="Status" FieldName="RealStatus" SortOrder="Descending" />
        </GroupByFields>
        <SelectFields>
            <telerik:GridGroupByField FieldAlias="Status" FieldName="RealStatus" />
        </SelectFields>
    </telerik:GridGroupByExpression>
</GroupByExpressions>

When the page loads the grid looks exactly how I want it to, however when I hit the "Add" link (auto-generated in the Command header along with a Refresh link) I get "Too many spaces in field definition: ' RealStatus Status DESC'."

Since the page initially loads fine and only postbacks cause it to die I have no clue what could cause this. If I don't have the SortOrder specified postbacks function as expected (albeit in the wrong order) which is even more confusing.

Any ideas?
digitall
Top achievements
Rank 1
 answered on 28 Oct 2011
3 answers
93 views
 why the splitter work well in IE ,But Can't Work In Firefox. The Splitter can't expand in firefox......

More Information ,please see the attachments....
trampt
Top achievements
Rank 1
 answered on 28 Oct 2011
1 answer
69 views
We are migrating to 2011 version from 2009 version and in 2009 version we are using TexBoxBlurHandler in Javascript to apply some rules in blur event , in 2011 it seems not available .. we are getting error. does anyone know is there any equivalent for TextBoxBlurHandler in 2011 Input control?
Shinu
Top achievements
Rank 2
 answered on 28 Oct 2011
1 answer
253 views

I have the search form and RadGrid on the same page. I'm databinding the RadGrid using the button click in the codebehind. The search works, but when I click an Edit button in a row, the RadGrid disappears. If I click my search forms button again, the RadGrid reappears with the correct row in Edit Mode.

I think I'm missing data binding the RadGrid to an additional event handler, but I'm not sure. I've tried several events and it didn't change.

Here's my super-simplified code.
ASPX

 

 

<telerik:radscriptmanager runat="server"></telerik:radscriptmanager>

 

Column Name:

<asp:DropDownList ID="DropDownList1" runat="server">

 

 

<asp:ListItem Value="PROD_DIET_SUPP_NAME">Product Name</asp:ListItem>

 

 

<asp:ListItem Value="PRODUCT_CODE">Product Code</asp:ListItem>

 

 

<asp:ListItem></asp:ListItem>

 

 

</asp:DropDownList>

 

 

Function:

<asp:DropDownList ID="DropDownList4" runat="server">

 

 

<asp:ListItem Value="Contains">Contains</asp:ListItem>

 

 

<asp:ListItem Value="StartsWith">Starts With</asp:ListItem>

 

 

<asp:ListItem></asp:ListItem>

 

 

</asp:DropDownList>

 

 

Search Term:

 

<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><br />

 

 

 

<asp:Button ID="Button1"

 

 

runat="server" Text="Search" onclick="Button1_Click" />

 

 

 

<telerik:RadGrid ID="RadGrid1" runat="server"

 

 

AllowSorting="True"

 

 

AllowAutomaticDeletes="True"

 

 

AllowAutomaticInserts="True"

 

 

AllowAutomaticUpdates="True"

 

 

EditMode="EditForms"

 

 

GridLines="None"

 

 

AutoGenerateColumns="False"

 

 

>

 

 

<MasterTableView

 

 

DataKeyNames="PRODUCT_CODE"

 

 

CommandItemDisplay="TopAndBottom">

 

 

<norecordstemplate>

 

No products have been entered matching your search crieteria. Try removing one of more keywords from your search and try again.

</norecordstemplate>

 

 

<Columns>

 

 

 

<telerik:GridEditCommandColumn UniqueName="EditCommandColumn"

 

 

ButtonType="imagebutton" />

 

 

 

<telerik:GridBoundColumn

 

 

DataField="PRODUCT_CODE"

 

 

DataType="System.Char"

 

 

HeaderText="Product Code"

 

 

ReadOnly="True"

 

 

SortExpression="PRODUCT_CODE"

 

 

UniqueName="PRODUCT_CODE" />

 

 

 

<telerik:GridBoundColumn EditFormColumnIndex="0"

 

 

DataField="PROD_DIET_SUPP_NAME" HeaderText="Name"

 

 

SortExpression="PROD_DIET_SUPP_NAME"

 

 

UniqueName="PROD_DIET_SUPP_NAME" />

 

 

 

 

</Columns>

 

<

 

EditFormSettings ColumnNumber="1" CaptionFormatString="Edit details for {0}" CaptionDataField="PROD_DIET_SUPP_NAME">

 

</

 

EditFormSettings>

 

 

</MasterTableView>

 

 

</telerik:RadGrid>

 

 

 



CODEBEHIND

 

public

 

partial class search4 : System.Web.UI.Page

 

{

 

protected void Page_Load(object sender, EventArgs e)

 

{

}

 

protected void BindData()

 

{

 

 

DataClassesDataContext dc = new DataClassesDataContext();

 

 

string strWhere = "1=1";

 

 

string strKeyword = "";

 

 

string strColumn = "";

 

 

string strFunction = "";

 

strKeyword = TextBox1.Text;

strColumn = DropDownList1.SelectedValue;

strFunction = DropDownList4.SelectedValue;

 

string strOrderBy = "PROD_DIET_SUPP_NAME ASC";

 

 

if (!string.IsNullOrEmpty(TextBox1.Text))

 

{ strWhere = strColumn +

"." + strFunction + "(\"" + strKeyword + "\")"; }

 

 

var products = from m in (dc.PRODUCTs.Where(strWhere)

 

)

 

select new { m.PRODUCT_CODE, m.FORM_CODE, m.PROD_DOSAGE_CODE, m.PROD_DIET_SUPP_NAME, m.PROD_TYPE_CODE, m.SOURCE_PROD_CODE, m.PROD_PROD_INF_NOTES, m.PROD_IS_VERIFIED, m.PRODUCT_STATUS, m.LAST_VERIFIED_DATE, m.PROD_VERSION_CREATED, m.PROD_VERSION_NO, m.PROD_GENERIC_PROD, m.DATE_OF_RECIPT };

 

products = products.OrderBy(strOrderBy);

RadGrid1.DataSource = products;

RadGrid1.DataBind();

 

}

 

protected void Button1_Click(object sender, EventArgs e)

 

{

BindData();

}

 

}

Shinu
Top achievements
Rank 2
 answered on 28 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?