Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
123 views
hi dear telerik team : 
how can i disable CousesValidation of refresh and upload and open file in file explorer toolbar?
Peyman
Top achievements
Rank 1
 answered on 18 Oct 2011
2 answers
117 views
Hi,
I encounter the toolbar display as blank in my project (please refer the attached image).
The following are the souce in my aspx page.

  <table cellspacing="0" cellpadding="0" width="100%">
        <tr>
            <td>
                    <table>
                        <colgroup>
                            <col width="30%" />
                            <col width="35%" />
                            <col width="35%" />
                        </colgroup>
                        <tr>
                            <td>
                                <asp:label id="lblTest1" text="Test 1" runat="server"></asp:label>
                            </td>
                            <td>
                                <telerik:radcombobox id="selTest1" runat="server">
                                </telerik:radcombobox>
                            </td>
                            <td>
                            </td>
                        </tr>
                       <tr>
                            <td>
                                <asp:label id="lblTest2" text="Test 2" runat="server"></asp:label>
                            </td>
                            <td>
                                <telerik:radtextbox id="txtTest2" maxlength="100" runat="server">
                                </telerik:radtextbox>
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3">                             
                                <telerik:radeditor id="txtRadEditor1" runat="server">
                                    <tools>
                                        <telerik:editortoolgroup>
                                            <telerik:editortool name="FontName" />
                                            <telerik:editortool name="FontSize" />
                                        </telerik:editortoolgroup>
                                        <telerik:editortoolgroup>
                                            <telerik:editortool name="Bold" />
                                            <telerik:editortool name="Italic" />
                                            <telerik:editortool name="Underline" />
                                            <telerik:editortool name="StrikeThrough" />
                                        </telerik:editortoolgroup>
                                        <telerik:editortoolgroup>
                                            <telerik:editortool name="AjaxSpellCheck" />
                                        </telerik:editortoolgroup>
                                        <telerik:editortoolgroup>
                                            <telerik:editortool name="JustifyLeft" />
                                            <telerik:editortool name="JustifyCenter" />
                                            <telerik:editortool name="JustifyRight" />
                                            <telerik:editortool name="JustifyFull" />
                                            <telerik:editortool name="JustifyNone" />
                                        </telerik:editortoolgroup>
                                        <telerik:editortoolgroup>
                                            <telerik:editortool name="Undo" />
                                            <telerik:editortool name="Redo" />
                                        </telerik:editortoolgroup>
                                        <telerik:editortoolgroup>
                                            <telerik:editortool name="Indent" />
                                            <telerik:editortool name="Outdent" />
                                        </telerik:editortoolgroup>
                                        <telerik:editortoolgroup>
                                            <telerik:editortool name="InsertOrderedList" />
                                            <telerik:editortool name="InsertUnorderedList" />
                                        </telerik:editortoolgroup>
                                    </tools>
                                    <content>
                                    </content>
                                </telerik:radeditor>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:label id="lblTest3" text="Test 3" runat="server"></asp:label>
                            </td>
                            <td>
                                <telerik:radnumerictextbox id="txtTest3"
                                    runat="server">
                                </telerik:radnumerictextbox>
                            </td>
                            <td>
                            </td>
                        </tr>
                   </table>
            </td>
        </tr>
    </table>

The RadEditor's toolbar is look fine if the RadEditor put at 1st row of the Table (above the Test 1). However, if put the RadEditor between the row of Test 2 and Test 3. The toolbar will display blank (refer the attached image).

The editor is using the custom skin:
<telerik:radeditor style="border: 1px solid #b8b8b8; padding-left:4px" font-names="Arial" font-size="11px" forecolor="#474747" height="150px" width="99%" editmodes="Design" maxhtmllenght="1000" toolbarmode="ShowOnFocus" runat="server"/>

All help welcome.

Thanks.

Best Regards,
Cheng Lim



                              
Rumen
Telerik team
 answered on 18 Oct 2011
1 answer
71 views
Hello,

I have a radmenu in aspx page and i am adding radsitemap dynamically to radmenuitem.
I am adding radsitemapnodes to radsitemap.
I am using IE9, if i run my application in compatible mode then it works fine.
OR
If i add <meta http-equiv="X-UA-Compatible" content="IE=8" />  in the HEAD section then also it works fine.
In the above two scenarios i was able to see radsitemapnodes with bullets on the left side.
But, if i open my application in normal mode in IE9,then whenever i hover on the menuitem i can see the text of the radsitemapnodes but
the bullets are invisible.
if i click on the menu or if i do some click action on the menu then all bullets are visible .From then i was able to see the bullets in the
Radsitemap.

Does anybody aware of this issue.
Is this the issue with IE9?
Is there any workaround for this?

Please assist.

Thanks,
LV
Kate
Telerik team
 answered on 18 Oct 2011
0 answers
79 views
Hi

This code is not working

<script type="text/javascript">
    /* Using radopen */
    function ShowExisting1() {
        //Show an existing window
        window.radopen(null, "RadWindow1");
        //First argument is the URL. Since no url is provided, the NavigateUrl property set on the server will be used.
    }
    /* Using RadWindowManager.open */
    function ShowExisting2() {
        //Call existing global function to obtain a reference to the window manager
        var oManager = GetRadWindowManager();
        //Show a particular existing window
        oManager.open(null, "RadWindow2");
    }
    // using RadWindow.show
    function ShowExisting3() {
        var oWnd = $find("RadWindow1");
        oWnd.show();
    }
    /* Show new window */
    function ShowNewWindow() {
        //Show new window
        //not providing a name as a second parameter
        // creates a new window
        var oWindow = window.radopen("http://www.google.com", null);
        //Using the reference to the window its clientside methods can be called
        oWindow.setSize(400, 400);
    }
</script>
    <form id="form1" runat="server">
    <div>
    <telerik:RadScriptManager runat="server" ID="rcm"></telerik:RadScriptManager>
      <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
    <Windows>
        <telerik:RadWindow ID="RadWindow1" runat="server" NavigateUrl="http://www.google.com">
        </telerik:RadWindow>
        <telerik:RadWindow ID="RadWindow2" runat="server" NavigateUrl="http://www.telerik.com">
        </telerik:RadWindow>
    </Windows>
</telerik:RadWindowManager>
       
the client-side code for opening windows

        <button onclick="ShowExisting1();return false;" class="Button" style="width: 190px" id="btnclick" runat="server">
    Show window (using radopen)</button>
call the various client-side functions

<br>
<button onclick="ShowExisting2();return false;" class="Button" style="width: 190px" >
    Show window (using open)</button>
<br>
<button onclick="ShowExisting3();return false;" class="Button" style="width: 190px">
    Show window (using show)</button>
<br>
<button onclick="ShowNewWindow();return false;" class="Button" style="width: 190px">
    Show new window</button>
    </div>
    </form>


Please provide some useful links.

Thanks
Manish
Manish
Top achievements
Rank 2
 asked on 18 Oct 2011
5 answers
209 views
I am binding with objects and paging my data, relying on PageSize and PageIndex properties of the RadGrid to determine what rows to pull. When I change the page size I step into RadGrid1_PageSizeChanged and verify that e.NewPageSize is correct. I then step into RadGrid1_NeedDataSource and the PageSize is still set to the old value. I was thinking of using Session or ViewState variables to store the values as a work around but shouldn't the PageSize be set to the new page size right after the PageSizeChanged event?

Here is my VB:

Protected Sub RadGrid1_PageSizeChanged(sender As Object, e As Telerik.Web.UI.GridPageSizeChangedEventArgs) Handles RadGrid1.PageSizeChanged
    RadGrid1.CurrentPageIndex = 0
    Session("LeadsPageSize") = e.NewPageSize
    RadGrid1.Rebind()
End Sub
Protected Sub RadGrid1_NeedDataSource(sender As Object, e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource
    Dim Customer_id As String = DirectCast(Me.Parent.FindControl("hfCustomer_id"), HiddenField).Value
    If Customer_id = "" OrElse Not IsNumeric(Customer_id) Then
        divLeads.Visible = False
    Else
        Dim StartRow As Int32
        Dim EndRow As Int32
  
        StartRow = RadGrid1.CurrentPageIndex * RadGrid1.PageSize + 1
        EndRow = StartRow + RadGrid1.PageSize - 1
        If EndRow > RadGrid1.VirtualItemCount Then EndRow = RadGrid1.VirtualItemCount
        If StartRow > EndRow Then StartRow = EndRow
  
        Dim objDT As DataTable = Customer.SelectLeadsRangeByCustomer(Customer_id, StartRow, EndRow)
        If objDT.Rows.Count = 0 Then
            divLeads.Visible = False
        Else
            RadGrid1.DataSource = objDT
        End If
    End If
End Sub

What am I doing wrong?

Thanks,
Dan
Dan Lehmann
Top achievements
Rank 1
 answered on 18 Oct 2011
4 answers
117 views
Hi,

I can't align the paragraph in FireFox (I have FF 7.0.1).
I tried different scenarios. It is possible to align headings only.

Try the example on your website. Select the text (paragraph) e.g. 'RadEditor is not simply an HTML1 Editor. It is what Microsoft...' and try the option 'Align left'. It is not possible in FF. IE can do it.

Regards,
Dawid Niedzwiedz
Rumen
Telerik team
 answered on 18 Oct 2011
4 answers
158 views

I have been try to center a dynamically create checkbox column with the checkbox centered. If you create it in design time, it is centered. When I create it dynamically in the Page_Load event I get the checkbox left justified. My code behind is in VB. I created it as follows:

Dim checkBoxColumn As NewTreeListCheckBoxColumn()

treeList.Columns.Add(checkBoxColumn)

checkBoxColumn.DataField = "Accessibility"

checkBoxColumn.UniqueName = "Accessibility"

checkBoxColumn.HeaderText = "Accessibility"

checkBoxColumn.ItemStyle.HorizontalAlign = HorizontalAlign.Center

It works, just not centered. Any ideas as to why I cannot center the checkbox?

Thanks,
Paul

Paul
Top achievements
Rank 1
 answered on 18 Oct 2011
3 answers
187 views
when using GridTemplateColumn, it wont show french characters like(èèèèèèèèèèèèèèèè) nicely(it will display htmlcode), but if with /telerik:GridBoundColumn, they would be fine.

Is this a bug? Is there a solution to overcome this problem ? Thanks for help


 <telerik:GridTemplateColumn DataField="Transcription" HeaderText="Response/Transcription"
                                                                UniqueName="Transcription">
                                        <EditItemTemplate>
                                            <asp:TextBox ID="TextBox2" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.TooltipText") %>' />
                                        </EditItemTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="Label1" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.TooltipText") %>' />
                                            <telerik:RadToolTip ID="RadToolTip1" runat="server" TargetControlID="Label1" Width="150px"
                                                RelativeTo="Element" Position="MiddleRight" ManualClose="true">
                                                <%# DataBinder.Eval(Container, "DataItem.Transcription")%>
                                            </telerik:RadToolTip>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
Marin Bratanov
Telerik team
 answered on 18 Oct 2011
0 answers
77 views
Hi All,

              Am facing problem in filtering .

The scenario is as following  

        when i filter some content with some option like  contains then filtering happens and also if i apply filtering on some other column it is also working but in some cases when am taking like  equal option other column filtering is happening which i was not given with data loading automatically.


          please suggest why this situation arises any coding problem how can i come to know???????

Regards,
Sravan
Magnasys
sravan
Top achievements
Rank 1
 asked on 18 Oct 2011
1 answer
115 views

A loading panel is displayed after canceling a partial postback in javascript on the PageRequestManagers InitalizeRequest event handler. How do I get rid of the loading panel?  Is there any other way to cancel the partial postback?

I have radio buttons in the command section of an ajaxified RadGrid.

<CommandItemTemplate>
  <asp:RadioButton ID="sortByDateOfEntryRadioButton" AutoPostBack="true" 
    OnCheckedChanged="ReOrderTimesheetItems"
    runat="server" Text="Order Of Entry" GroupName="TimesheetItemSortOrder" />
  
  <asp:RadioButton ID="sortByDateOfTimesheetItemDateRadioButton" AutoPostBack="true"
    OnCheckedChanged="ReOrderTimesheetItems" runat="server" Text="Timesheet Date/Time"
    GroupName="TimesheetItemSortOrder" />
</CommandItemTemplate>

I stop the partial post back that occurs when selecting a radio button if the form is dirty. using the javascript below.

The partial postback is sucessfully canceled on the line args.set_cancel(true) but the loading panel is still displayed.

function initRequest(sender, args) {
    var isSortingTimesheetItems = 
    ((args.get_postBackElement().id.indexOf("sortByDateOfTimesheetItemDateRadioButton") != -1)
    || (args.get_postBackElement().id.indexOf("sortByDateOfEntryRadioButton") != -1))
  
    if (isSortingTimesheetItems) {
        // this check has to be done here to stop the partial post back
        if (!FormIsDirty()) {
            args.set_cancel(true);  //stop async request
            return;
        
  }
}
  
function RegisterScriptManagerInitializeRequestEvent() {
    Sys.WebForms.PageRequestManager.getInstance().add_initializeRequest(initRequest);
}

How do I get rid of the loading panel?
Is there any other way to cancel the partial postback?
Maria Ilieva
Telerik team
 answered on 18 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?