Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
96 views
We had an older version of RadEditor installed in our SharePoint 2010 environment and decided to update to the latest version since we're patching SP up to current as well.  I uninstalled the old version and installed the Telerik Web Parts for SharePoint 2010 Q3 2014 which is supposed to include the new version of the RadEditor web part.  The install finished successfully but it didn't install RadEditor.  It did install all the other web parts though.  Any thoughts on how to resolve this issue? 
Mike
Top achievements
Rank 1
 asked on 29 Oct 2014
4 answers
357 views
I have been digging around a bit looking for a good example of how to take a radcombobox and populate it using a webmethod and jquery combined... I think I am just missing something rather simple.. Any suggestions?

This is NOT a mvc project, but a traditional asp.net web forms


// This cancels the default RadComboBox behavior
function itemsRequesting(sender, args) {
    if (args.set_cancel != null) {
        args.set_cancel(true);
    }
    if (sender.get_emptyMessage() == sender.get_text())
        sender.set_text("");
}
 
function getSites(sender, args) {
    var url = baseUrl + "TagManagement/Tags.aspx/GetSiteList";
     
    $.ajax({
        async: false,
        type: "POST",
        url: url,
        data: "{}",
        contentType: "application/json; charset=utf-8",
        dataType: "json",
        success: function (msg) {
            if (msg.d == null) {
                alert("The filter set returned no records");
                } else {
 
                fillCombo(sender, msg);
 
            }
        }
    }).complete(function () {
        $.unblockUI();
 
    });
 
return false;
 
}
 
function fillCombo(combo, result) {
    combo.clearItems();
 
    var items = result.d || result;
     
    // This just lets user know that nothing was returned with their search
    if (items.length == 0) {
        var comboItem = new Telerik.Web.UI.RadComboBoxItem();
        comboItem.set_text("Nothing found");
        comboItem.set_value("null");
        combo.get_items().add(comboItem);
        combo.set_text("");
    }
 
    for (var i = 0; i < items.length; i++) {
        var item = items[i];
 
        var comboItem = new Telerik.Web.UI.RadComboBoxItem();
        comboItem.set_text(item.Text);
        comboItem.set_value(item.Value);
        combo.get_items().add(comboItem);
    }
}

The Control :
<telerik:RadComboBox ID="RadComboBoxTransferSites" runat="server" CheckBoxes="true" EnableLoadOnDemand="true" OnClientItemsRequesting="getSites"
                                  EnableCheckAllItemsCheckBox="true" DataTextField="SiteName" DataValueField="SiteUID"
                                  EmptyMessage="Please Select...">
                              </telerik:RadComboBox>

The web method:
[WebMethod]
public static List<SiteList> GetSiteList()
{
    var siteList = (List<SiteList>)HttpContext.Current.Session["SiteList"];
    return siteList.ToList();
}
Wired_Nerve
Top achievements
Rank 2
 answered on 29 Oct 2014
7 answers
249 views
I have a RadComboBox with a Template.
The RadComboBox is bound to a DataSource, which returns a list of Items and Pictures. I need to add a -Choose Here- to the first item in the ComboBox. I set AppendDataBoundItems to True and I get my -Choose Here-, I also get a Blank Template item in the next line down. Then my Databound items start appearing.

I have tried a few suggestions but nothing has worked. I have tried binding the item in code behind in the on Databound event etc.

 <telerik:RadComboBox ID="RCB_Items" runat="server" AccessibilityMode="True"   
                AppendDataBoundItems="True" AutoPostBack="True" DataSourceID="User_Items_DS"   
                DataTextField="ItemName" DataValueField="ItemID" Skin="WebBlue" Visible="False"   
                Width="250px" HighlightTemplatedItems="true">  
                  
                <ItemTemplate>  
                    <span style="vertical-align: middle;text-align:left; float: left; width: 100px;">  
                    <%#DataBinder.Eval(Container.DataItem, "ItemName")%></span>  
                    <span style="vertical-align: middle; float: none;">  
                    <img alt="" border="1" height="50"   
                        src='~/images/<%#DataBinder.Eval(Container.DataItem, "ItemId")%>'   
                        width="50" /></span>  
                </ItemTemplate>  
                          </telerik:RadComboBox>  
 
Code Behind:  
Protected Sub RCB_Items_DataBound(ByVal sender As ObjectByVal e As System.EventArgs) Handles RCB_Items.DataBound  
        Dim myItem As New RadComboBoxItem  
        myItem.Text = "-Choose Here-" 
        myItem.Value = "-1" 
        cb_Items.Items.Insert(0, myItem)  
        cb_Items.Items(0).DataBind()  
    End Sub 
Josh
Top achievements
Rank 1
Veteran
 answered on 29 Oct 2014
2 answers
308 views
I have custom actions that I need to perform on a grid, so I can't use the built-in item commands "Update and Cancel" which trigger the OnBatchEditCommand correctly. As soon as I use CommandItemTemplate tags, I lose that functionality which triggers the OnItemCommand. In code behind, the e.CommandArgument of the OnItemCommand is empty so I can't get a handle on the old and new values to perform tasks.

Please help.

Thanks,
Fahd
fahd
Top achievements
Rank 1
 answered on 29 Oct 2014
7 answers
568 views
Hi,
I want to open a multiple RadWindows from my page one after the other. How can I do it ?

For example: I have login.aspx page with "Forget Password ?" link.
When user click that link, I want to open recover password Model pop-up which is radwindow and the page is recoverpassword.aspx. Once user can specify require details and entered detail is correct then I have to close the "recover password" pop-up which is recoverpassword.aspx page, then I want to open "security question" pop-up which is my SecurityQuestion.aspx. If user provide correct data for question then I want to close that pop-up Radwindow which is my SecurityQuestion.aspx after performing some operation.
In these operations, I dont want to refresh my login.aspx page.

Any help ?

Thanks
srivalli kothapalli
Top achievements
Rank 1
 answered on 29 Oct 2014
2 answers
85 views
How to change the direction of item placement in a multi-column combobox?

Let's say I have these items:

A, B, C, D, E, F, G, H, I

With default settings, items are place like this:

A  B  C
D  E  F
G  H  I    

How I want to place them is:

A  D  G
B  E  H
C  F  I

Thanks
Ned
Top achievements
Rank 1
 answered on 29 Oct 2014
1 answer
99 views
Hi, Can anyone tell me if either RadDropDownList or RadComboBox allows you to define a template for the selected item? I see that RadComboBox in the silverlight suite has a SelectionBoxTemplate option... that's essentially what I'd like to have for a dropdown in asp.net ajax - the ability to view the details of the selected item in the DropDownList without having to open the list to see the templated list items that have the details. 

Thanks in advance!
Nencho
Telerik team
 answered on 29 Oct 2014
2 answers
130 views
Greetings,

After upgrading Telerik version to '2014.2.724.35', I am facing issue with the 'RadComboBox'. The checkbox is displayed in one row and text in another row.

Thanks,
Aman
Aneliya Petkova
Telerik team
 answered on 29 Oct 2014
1 answer
162 views
I add Style Sheet in page design:

<style type="text/css">
     
        .RadGrid td .ajax__calendar td
        {
            padding: 0;
        }
</style>

And Use the Radgrid Control as following Code:
 <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                                            <ContentTemplate>
<telerik:RadGrid ID="gvTabularFormat" runat="server" AutoGenerateColumns="False"
                                                                Skin="Windows7" Width="720px" AllowPaging="false" ShowHeader="true" ShowFooter="true"
                                                                AllowSorting="false" OnItemDataBound="gvTabularFormat_OnItemDataBound">
                                                                <ClientSettings>
                                                                    <Scrolling FrozenColumnsCount="0" AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true">
                                                                    </Scrolling>
                                                                </ClientSettings>
                                                                <MasterTableView TableLayout="Auto">
                                                                    <NoRecordsTemplate>
                                                                        <div style="font-weight: bold; color: Red;">
                                                                            No Record Found.</div>
                                                                    </NoRecordsTemplate>
                                                                    <Columns>
                                                                        <telerik:GridTemplateColumn>
<ItemTemplate>
<table id="tblDate0" cellpadding="0" cellspacing="0" border="0" runat="server" visible="false">
                                                                                    <tr valign="top">
                                                                                        <td valign="top">
                                                                                            <asp:TextBox ID="txtDate0" SkinID="textbox" Font-Size="13px" Text="" Width="67px"
                                                                                                runat="server" />
                                                                                        </td>
                                                                                        <td valign="top" align="left">
                                                                                           <img src="~/Images/calendar.gif" alt="Click here to get date" width="19" height="20"
                                                                                                    vspace="0" border="0" id="imgFromDate0" runat="server" />
                                                                                        </td>
                                                                                        <td>
                                                                                            <AJAX:CalendarExtender ID="CalendarExtender0" runat="server" TargetControlID="txtDate0"
                                                                                                Format="dd/MM/yyyy" PopupButtonID="imgFromDate0" EnabledOnClient="true">
                                                                                            </AJAX:CalendarExtender>
                                                                                            <AJAX:FilteredTextBoxExtender ID="FilteredTextBoxExtender0" runat="server" Enabled="True"
                                                                                                TargetControlID="txtDate0" FilterType="Custom, Numbers" ValidChars="_/">
                                                                                            </AJAX:FilteredTextBoxExtender>
                                                                                           </td>
                                                                                    </tr>
                                                                                </table>
 </ItemTemplate>
                                                                            <FooterTemplate>
                                                                                <asp:Label ID="lblT0" runat="server" Style="width: 99%; text-align: right;" Text="&nbsp;"
                                                                                    BorderColor="Silver" BorderWidth="1px" SkinID="label" />
                                                                            </FooterTemplate>
                                                                        </telerik:GridTemplateColumn>
</Columns>
                                                                </MasterTableView>
                                                            </telerik:RadGrid>

</ContentTemplate>
                                                                                   </asp:UpdatePanel>
Calender Control is not displaying properly. Also, I attach the screen shot.
Please help me.
I hope Telerik Team help me.
Thanks.

Maria Ilieva
Telerik team
 answered on 29 Oct 2014
2 answers
107 views
I am trying to clear the cleintcertificates on the loading of a radwindow.  What I am trying to do is force users to pick the client certificate agian on the page.  What I have is a radwinow that pops-up with the user agreement.  when they click the agree button it pops-up another radwindow thats sole purpose is to make them pick certificate agian and then it save info and close immediately.  however it is not prompting them for the certificate.  the application is HTTPs and asks for it when they start session and the clearauthenticationcache has worked for me on web pages but for some reason not with radwindow.  Don't know if I need to do something different.

  <tr>
                <td  style="text-align:center">
                    <telerik:RadButton ID="btnAgree" runat="server" ButtonType="LinkButton" Text="Sign Agreement"></telerik:RadButton>
                    <asp:TextBox ID="txtSigned" runat="server" Width="400px" Height="60px" TextMode="MultiLine" ReadOnly="true" Visible="false" Font-Size="X-Small" CssClass="textScolls"></asp:TextBox>
                </td>
            </tr>
        </table>
 
       <telerik:RadWindowManager ID="rdmanager" runat="server" ShowContentDuringLoad="false" CenterIfModal="true" Modal="true" VisibleStatusbar="false" VisibleTitlebar="false" Behaviors="Close" OnClientClose="reloadParent" />
 
  Protected Sub btnAgree_Click(sender As Object, e As EventArgs) Handles btnAgree.Click
        Dim window As RadWindow = New RadWindow()
        window.NavigateUrl = "Sign.aspx"
        window.VisibleOnPageLoad = True
        window.Modal = True
        window.Width = "100"
        window.Height = "100"
        rdmanager.Windows.Add(window)
    End Sub
 
Here is code for the sign RAdwindow
<!DOCTYPE html>
 
<head runat="server">
    <title></title>
         <script type="text/javascript">
             function Clear() {
                 document.execCommand("ClearAuthenticationCache");
             }
 
             function GetRadWindow() {
                 var oWindow = null;
                 if (window.radWindow) oWindow = window.radWindow
                 else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
                 return oWindow;
             }
 
             function reloadParent() {
                 var oWnd = GetRadWindow();
                 oWnd.close();
             }
         </script>
</head>
<body onload="Clear()">
    <form id="form1" runat="server">
        <div>
            <asp:HiddenField ID="HFSign" runat="server" Visible="false" />
        </div>
    </form>
</body>
</html>
 
  Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
        If Page.Request.ClientCertificate.IsPresent Then
            Dim certName As String = Page.Request.ClientCertificate.Item("SubjectCN")
            Dim issue As String = Page.Request.ClientCertificate.Item("Issuer")
 
            HFSign.Value = "Digitally Signed By: " & vbCrLf & " " _
                & certName & vbCrLf & " " _
                & "DN: " & issue & vbCrLf & " " _
                & "cn= " & certName & vbCrLf & " " _
                & "Date: " & Date.Now
 
            SavePage()
        End If
    End Sub
 
 
    Private Sub SavePage()
        sql = "IF Exists (Select intAdminId from tblSignedAgreement where intAdminId = " & GetPersId() & ") Update tblSignedAgreement SET dtsigned = '" & Date.Now & "', strsigned = '" & HFSign.Value & "' where " _
            & "intadminId = " & GetPersId() & " ELSE Insert tblSignedAgreement (intAdminId, dtSigned, strSigned) VALUES (" & GetPersId() & ", '" & Date.Now & "', '" & HFSign.Value & "')"
 
        insertUpdateDelete(sql)
 
        ScriptManager.RegisterClientScriptBlock(Page, GetType(Page), "ReloadScheduler", "reloadParent();", True)
        
    End Sub






















Marin Bratanov
Telerik team
 answered on 29 Oct 2014
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?