Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
162 views
Using the demo located here:
http://demos.telerik.com/aspnet-ajax/input/examples/common/validation/defaultvb.aspx

The validators are allowing a post back with EnableClientScript = true, despite displaying that there is an error case.

Steps to reproduce:

1) New web form application
2) New web form
3) Copy code into aspx and codebehind
4) Add a radscriptmanager, removing the masterpage reference [which i cannot find a copy of], and removing the asp:content panels
5) Override OnLoad and insert a breakpoint
6) Run the form with client mode on, breakpoint is hit despite all the validators triggering.
7) Repeat tests in all browsers - all fail.
What am I doing wrong?

Update for clarification:
The validators fire, but they still cause a postback (is this intentional?) and server side they do not flag Page.IsValid as true or false.
Blair
Top achievements
Rank 1
 answered on 30 Jul 2013
4 answers
613 views
Hi,

I have a RadGrid with EditForm Template for Editing.
for Example:
I want to have:
 * When I double click a row it has to Change Editmode to:
<MasterTableView EditMode="InPlace"
Like this:
function RowDblClick(sender, eventArgs) {
      // insert Code here to change EditMode to EditMode="InPlace"
      // then open the row for editing
      editedRow = eventArgs.get_itemIndexHierarchical();
      $find("<%= RadGrid1.MasterTableView.ClientID %>").editItem(editedRow);
    }

 hence, the Default mode is the EditForm Template, so when I click on Edit button it will open the form for editing.

any Help it will be apperciated,
Thanks
Mahmoud
Top achievements
Rank 1
 answered on 30 Jul 2013
1 answer
105 views
I have a RadListBox with multi-select turned on.  On selection of another list control, in the code-behind of the other list control, I get its value, then select records from a database, and want to select the corresponding items in the RadListBox (called "listWho" below).  When walking thru the code, it is selecting the list box items, but, after postback, the list box shows not selected items.  Why?

Here is the code.  Any help appreciated.  Dan

<telerik:RadListBox ID="listWho" runat="server" DataSourceID="dsScheduleWho" TabIndex="2"
DataTextField="wholist" DataValueField="pk" Height="120px" Width="169px"
Skin="Vista" SelectionMode="Multiple" OnClientLoad="listWho_ClientLoad">
</telerik:RadListBox>
 
 
protected void DistGroup_SelectedIndexChanged(object sender, EventArgs e)
{
   string itemValue;
   DropDownList ddl = sender as DropDownList;
   string DG_cpk = ddl.SelectedValue;
 
   try
   {
       RadListBox rlb = (RadListBox)pageform.FindControl("listWho");
       DataAccess sda = new DataAccess();
       sda.RunSelectCmd("select cpk_users from users inner join DG_Users_Link DUL on users.CPK_USERS = DUL.Cfk_Users and DUL.DELFLAG=0 "
           + "inner join DistributionGroups DG on DUL.Cfk_DistributionGroups=DG.CPK_DistributionGroups and DG.delflag=0 "
           + "where users.DELFLAG=0 and DG.CPK_DistributionGroups=" + DG_cpk);
 
       if (!sda.blNoRecords)
       {
           foreach (DataRow dr in sda.dtResult.Rows)
           {
               itemValue = dr["cpk_users"].ToString();
               RadListBoxItem rlbi = rlb.FindItemByValue(itemValue);
               rlbi.Selected = true;
           }
       }
Dan
Top achievements
Rank 2
 answered on 30 Jul 2013
1 answer
91 views
Hi all,

I was hoping someone can point me in the right direction for a very odd error I have encountered with IE.

We are currently using Telerik.Web.UI v2013.1.417.35 on the .NET 3.5 framework. If I try and ajax-ify
my RadGrid, either using the RadAjaxPanel or RadAjaxManager, I can not get the grid's filters or paging buttons to fire the first time I click them. If I click a second time, they respond as expected. I have tried this in Firefox & Chrome and they work perfectly.

If I remove the ajax enabling controls, the filters and paging work on the first click. 

Any help would be greatly appreciated.

Thanks,
JE
J. E.
Top achievements
Rank 1
 answered on 30 Jul 2013
2 answers
43 views
Hi,

I'm using RadScheduler v2013.1.417.45 to develop a basic room scheduling system.
We have 10 rooms listed across the top and the seven days of the week down the left hand side.

The problem for the users is that the room names only appear at the very top of the page.
We would like to have the room names appear above each day, just above the all days events section.

Is there any easy way of doing this?

Thanks

David
David Popeck
Top achievements
Rank 1
 answered on 30 Jul 2013
0 answers
324 views
Hi All,

I am using RadGrid AutoGenerateDeleteColumn.

Is there any possibility to add a confirmation message before deleting anything from the database. I would like to add a confirmation message from code behind. I have also tried the find the column on columnCreated event but I didn't find that column name. I am setting the autogeneratedeletecolumn = true property on Page_Load event.

Many thanks for your advance responses.


Thanks everyone to read this post. I have found the answer.

<telerik:RadGrid ID="rgList" Width="100%" AllowFilteringByColumn="true" Skin="Metro"
       AutoGenerateDeleteColumn="false" AutoGenerateEditColumn="false" EnableEmbeddedBaseStylesheet="true"
       AllowSorting="True" AllowPaging="True" PageSize="10" ShowHeader="true" runat="server"
       AutoGenerateColumns="true" ShowStatusBar="true">
       <MasterTableView TableLayout="Auto" CommandItemDisplay="Top">
           <CommandItemSettings ShowRefreshButton="false" ShowAddNewRecordButton="false" ShowExportToCsvButton="true"
               ShowExportToExcelButton="true" />         
       </MasterTableView>
       <GroupingSettings CaseSensitive="false" />
       <ClientSettings>
           <Selecting AllowRowSelect="true" />
       </ClientSettings>
   </telerik:RadGrid>

 Protected Sub rgList_ColumnCreated(ByVal sender As Object, ByVal e As GridColumnCreatedEventArgs) Handles rgList.ColumnCreated

        For Each col As GridColumn In rgList.MasterTableView.AutoGeneratedColumns
            If col.UniqueName = Constants.EDIT Then
                TryCast(col, GridBoundColumn).AllowFiltering = False
                TryCast(col, GridBoundColumn).HeaderText = ""
            ElseIf col.UniqueName = Constants.DELETE Then 'hiding Delete column from database
                col.Visible = False
            ElseIf col.UniqueName = "AutoGeneratedDeleteColumn" Then
                Dim gridButtonColumn As GridButtonColumn = col
                gridButtonColumn.ConfirmText = Constants.DELETE_CONFIRM_MESSAGE
            Else
                col.AutoPostBackOnFilter = True
                col.CurrentFilterFunction = GridKnownFunction.Contains
            End If
        Next

    End Sub


Muhammad
Top achievements
Rank 1
 asked on 30 Jul 2013
2 answers
144 views

Hey you all,

I am in trouble with my radcombox controls.

I use to load my radcombobox on demand with the below script :

protected void rbox1_ItemsRequested(object o, Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs e)
        {
                
                    DataTable datatable = new DataTable();
                    datatable = Load.Mydata();
                    foreach (DataRow datarow in datatable.Rows)
                    {
                        RadComboBoxItem item = new RadComboBoxItem();
                        string col1 = datarow["col1"].ToString();
                        string col2 = datarow["col2"].ToString();
                        item.Value = col2;
                        item.Text = col1;
                        item.Attributes.Add("MYColumn", col2);
                        rbox1.Items.Add(item);
                        item.DataBind();
                    }
                 
        }

Now I am using a masterpage in my webapplication. and since, the combobox failed to load several times before loading data in its list( I have to click several times before seeing my data in the dropdown list). 

Please help me to go through this blocking point.

Regards,
PPRINC
Top achievements
Rank 1
 answered on 30 Jul 2013
1 answer
140 views
Hi
I'm trying to use some existing code to change the style when the Content is changed - on the client with JQuery,
I see from the HTML that the Rad Editor control is rendered as a textarea.

This is my jQuery:
$(document).ready(function () {
 
    $('textarea').on('keyup', function () {
        alert("Boo 2");
        inputIsDifferent($(this));
    });
 
});

 

My problem is the Alert(Boo 2) is not popping up, What am I doing wrong.

Andy

Ianko
Telerik team
 answered on 30 Jul 2013
1 answer
82 views
Hello,

I have a rad editor inside a rad dialog.  In IE7 , when the dialog loads for the first time the toolbar is not showing properly.  This only happens in IE7 and that too only when I load it for the first time.  The second time around everything works great.  I am attaching the screen shot of the page.  

Can you please let me know what the issue might be -  Thank you

The html code in the page

<td align="left"><strong>Article</strong> <br />
         <tlrk:RadEditor ID="D0_RadArticle" runat ="server" Width="690px" Height="420px"      ToolsFile="~/XML/Editor/HelpEditor.xml"
           StripAbsoluteImagesPaths="true"/>
 </td>


Javascript in the page -
function Dialog_OnOpen(dialogId)
     {
      if (dialogId == "<%=Dialog1.ClientID%>")
      {
       var editor = $find("<%=D0_RadArticle.ClientID%>");
       if (OI_b.IE)
        editor.setSize("690", "420");
       if (!OI_b.Fx)
       editor.onParentNodeChanged();
       $get("ctl00_Dialogs_Dialog1_C").style.overflow = "hidden";
      }
     }


Ianko
Telerik team
 answered on 30 Jul 2013
1 answer
312 views
<telerik:RadEditor ID="rdEditor" EditModes="Design,Preview"   OnClientLoad="OnRadClientLoad()"
                                StripFormattingOptions="NoneSupressCleanMessage" StripFormattingOnPaste="NoneSupressCleanMessage"
                                Width="100%" Height="400px" runat="server" ToolsFile="../XML/BasicTools.xml">
                              
                                 <Tools>     
                                  
                                  
        </Tools>                             
         
                            </telerik:RadEditor>

rdEditor.Content

The above is what I have used to configure RadEditor and am reading the html from  rdEditor.Content property
For some cases it works fine ie no extra line breaks are added while copying from microsoft word file .docx
 .  But in some case extra line breaks are added . I tried the solution ie adding ContentFilters=none but this remove even the valid line breaks

The strange part is that in preview mode it does not show any line breaks 

Would appreciate a quick response since thew issue is in production enviornment.

Regards
Ianko
Telerik team
 answered on 30 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?