Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
165 views

I'm trying to have my controls get updated when the SkinChooser changes value to some other Skin (I'm using the embedded DLL skins provided).

<telerik:RadSkinManager ID="rskmLogin" runat="server" Skin="Material" ShowChooser="True">
    <TargetControls>
        <telerik:TargetControl ControlID="rlb_Online" Skin="Metro" ControlsToApplySkin="RadLabel" />
        <telerik:TargetControl ControlID="rtb_Online" Skin="Bootstrap" ControlsToApplySkin="RadTextBox" />
        <telerik:TargetControl ControlID="rlb_Password" Skin="Metro" ControlsToApplySkin="RadLabel"/>
        <telerik:TargetControl ControlID="rtb_Password" Skin="Bootstrap" ControlsToApplySkin="RadTextBox"/>
        <telerik:TargetControl ControlID="rbn_SignIn" Skin="Glow" />
        <telerik:TargetControl ControlID="rlb_Or" Skin="Metro" />
        <telerik:TargetControl ControlID="rbn_CreateAnAccount" Skin="Glow" />
        <telerik:TargetControl ControlID="rbn_ResetPassword" Skin="Silk" />
        <telerik:TargetControl ControlID="rcb_Skins" Skin="Sunset" />
    </TargetControls>
</telerik:RadSkinManager>

 

in my code behind: 

Private Sub rskmLogin_SkinChanged(sender As Object, e As SkinChangedEventArgs) Handles rskmLogin.SkinChanged
 
    Try
 
        If e IsNot Nothing Then
 
            For Each TrgCtrl As TargetControl In Me.rskmLogin.TargetControls
 
                TrgCtrl.Skin = e.Skin
 
            Next
 
        End If
 
    Catch ex As Exception
 
        Dim ErrorLog As New DC.Errors.Log(ex)
 
    End Try
 
End Sub

 

fairly basic stuff, but my controls don't update with the newly selected skin ... what am I missing?

 

Cheers, Rob.

Eyup
Telerik team
 answered on 24 Sep 2018
5 answers
296 views

Hi, I'm using a treeview control on my application, and in my Dev, Test and UAT environments, I'm seeing the arrows for the expand/collapse icons.  However, on my Prod environment, which theoretically is the same as my UAT environment, I see the plus/minus signs.

Looking at the css coming down as a WebResource, on UAT, I see:

/* START Telerik.Web.UI.Skins.TreeViewLite.css */

 

But on the css that comes down from Prod, I see this:

/* START Telerik.Web.UI.Skins.TreeView.css */

I've gone through my code trying to figure out why, can't see anything.  Also, after looking through documentation on this site, I have added the following lines to my web.config, but with no change:

   <appSettings>

      ...
      <add key="Telerik.Web.UI.RenderMode" value="lightweight" />
   </appSettings>

...

   <system.webServer>

...

      <httpProtocol>
        <customHeaders>
          <add name="X-UA-Compatible" value="IE-Edge" />
        </customHeaders>
      </httpProtocol>
   </system.webServer>

 

Is there any other things I should know about my production environment that might be causing this behavior?

I'm currently using version 2017.1.228.40 of the Telerik assemblies &  running .NET 4.5.1

Thanks,

Phil

Vessy
Telerik team
 answered on 24 Sep 2018
1 answer
125 views

Is there any mechanism in the Spreadsheet classes that would allow me to insert or extract an object file from a spreadsheet?  I cannot seem to locate anything on the matter in the API documentation or on the objects when debugging.

Thanks,

Josh

Peter Milchev
Telerik team
 answered on 24 Sep 2018
1 answer
259 views

I am looking for the most efficient way to load data outside of the main datasource control into the grid edit formTemplate. In the past I have loaded data for a asp gridview on the edit command and would use the findControl to bind to the child datasource. I do not see an example for the FormTemplate mode only for the GridTableView.DetailTables. Is this possible and is there an example on the correct way to do it?

 

Thanks in advance

Attila Antal
Telerik team
 answered on 24 Sep 2018
3 answers
658 views

We're looking for a simple way to turn a workbook to read-only.

Since the workbook includes some 11 sheets, each with a different number of rows and columns we cannot use the spreadsheet range setting (range.set_enabled(false)).

We tried using the workbook.Protected parameter in code-behind, but the "Protected" parameter is somehow not accepted.

Any tips would be appreciated.

Chanan Zass
Top achievements
Rank 1
 answered on 22 Sep 2018
2 answers
597 views

I've search thru all the thread regarding RadAlert not working and I still can't figure out why I get nothing at all, no errors in code, no exceptions triggered, nothing.

Here is my code:

<telerik:RadScriptManager ID="rsmLogin" runat="server" EnableHandlerDetection="false" EnableScriptCombine="false"></telerik:RadScriptManager>
<telerik:RadSkinManager ID="rskmLogin" runat="server" Skin="Default"></telerik:RadSkinManager>
<telerik:RadInputManager ID="rimLogin" runat="server"></telerik:RadInputManager>
<telerik:RadWindowManager ID="rwmLogin" runat="server" EnableShadow="true"></telerik:RadWindowManager>
<script type="text/javascript">
    function callBackFn(arg)
    {
        alert("this is the client-side callback function. The RadAlert returned: " + arg);
    }
</script>
 
<telerik:RadPageLayout ID="rpl_Login" runat="server" GridType="Fluid" Width="248px" Style="margin:2px; align-content:center;">
    <Rows>
        <telerik:LayoutRow style="height:42px; margin-top:8px">
            <Columns>
                <telerik:LayoutColumn style="text-align:center; align-content:center">
                    <telerik:RadButton ID="rbn_SignIn" runat="server" Text="SIGN IN" Font-Size="Large" Width="100"></telerik:RadButton>
                </telerik:LayoutColumn>
            </Columns>
        </telerik:LayoutRow>
    </Rows>
</telerik:RadPageLayout>

 

and code behind 

Private Sub rbn_SignIn_Click(sender As Object, e As EventArgs) Handles rbn_SignIn.Click
 
    Try
 
            Me.rwmLogin.RadAlert("We're sorry, but we could not locate your account based on the credentials provided.", 500, 200, "Login Error", "callBackFn")
 
    Catch ex As Exception
 
        Dim ErrorLog As New DC.Errors.Log(ex)
 
    End Try
 
End Sub

 

I also tried without the callBackFn which was pulled direction from your documentation sample.

Any suggestions?

Cheers, Rob.

 

Rob Ainscough
Top achievements
Rank 1
 answered on 21 Sep 2018
4 answers
752 views

Could not load file or assembly 'Telerik.Web.UI, Version=2016.2.607.0, Culture=neutral, PublicKeyToken=29ac1a93ec063d92' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)'

 

Hi All,

 

Am new in telerick. am creating a new project with telrick rad controls, i created some new properties for Rad Textbox just like mandatry_Field after that this error showing in my project befor that i was working fine.

 

please help me

 

Disponible
Top achievements
Rank 1
 answered on 21 Sep 2018
2 answers
552 views

We use the Cloudflare service for a site that uses RadEditor controls on several pages. When the Cloudflare web application firewall is turned on, a POST with HTML in a RadEditor control triggers several XSS and SQL Injection rules in the web application firewall. There were so many false positives that the web application firewall was immediately turned off.

Does anyone have experience resolving this issue by either changing the settings/configuration of the RadEditor controls, or by tweaking the Cloudflare Web Application Firewall rules?

Please note that I'm not suggesting that this is a flaw in the RadEditor control. The RadEditor provides an amazing amount of functionality.

Thanks

Daniel
Top achievements
Rank 1
Iron
 answered on 21 Sep 2018
2 answers
242 views

Hello,

          I have placed the radgrid in a panel to invoke with a ModalPopupExtender.  The modal is invoked on a link button click and upon radgrid column header click for sorting, the modal popup closes.  I want the radgrid to stay there whenever column sorting is done in the modal popup. 
          The following is my piece of code:

 

<asp:UpdatePanel ID="upMPE" runat="server" >
  
<ContentTemplate>
  
<asp:Panel ID="pnlTopPatientException" runat="server">
  
<asp:Panel ID="pnlPatientException" runat="server" Style="display: none; z-index: 8888;"
  
CssClass="modalPopup">
  
<table border="0" style="width: 100%; height: 30%; border-color: transparent;">
  
<tr>
  
<td align="left">
  
<h1>
  
<asp:Label ID="lblMessage" runat="server" Text="Patient Exceptions" Style="color: Green" />
  
</h1>
  
</td>
  
</tr>
  
<tr>
  
<td>
  
<SJ:SJRadGrid ID="grdPatientExceptionList" runat="server" AllowSorting="true" Skin="SJ"
  
OnNeedDataSource="GetData" PageSize="5" ShowFooter="true">
  
<PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
  
<ItemStyle CssClass="altrow" />
  
<MasterTableView PagerStyle-AlwaysVisible="true" Width="100%" AllowSorting="true"
  
AllowMultiColumnSorting="true" DataKeyNames="ID" >
  
<Columns>
  
<SJ:CustomFilteringTemplateColumn DataField="FromDate" HeaderStyle-Wrap="false" HeaderText="From Date"
  
HeaderStyle-HorizontalAlign="Center" SortExpression="FromDate" FilterControlWidth="105"
  
DropDownBoxWidth="105" HeaderStyle-Width="8%" AllowFiltering="false">
  
<ItemTemplate>
  
<asp:Label ID="lblFromDate" runat="server" Text='<%#Eval("FromDate","{0:MM/dd/yyyy}")%>'
  
CausesValidation="false">
  
</asp:Label>
  
</ItemTemplate>
  
</SJ:CustomFilteringTemplateColumn>
  
<SJ:CustomFilteringTemplateColumn DataField="ToDate" HeaderStyle-Wrap="false" HeaderText="To Date"
  
HeaderStyle-HorizontalAlign="Center" SortExpression="ToDate" FilterControlWidth="105"
  
DropDownBoxWidth="105" HeaderStyle-Width="8%" AllowFiltering="false">
  
<ItemTemplate>
  
<asp:Label ID="lblToDate" runat="server" Text='<%#Eval("ToDate","{0:MM/dd/yyyy}")%>'
  
CausesValidation="false">
  
</asp:Label>
  
</ItemTemplate>
  
</SJ:CustomFilteringTemplateColumn>
  
<SJ:CustomFilteringTemplateColumn HeaderStyle-Wrap="false" DataField="ExceptionDesc"
  
HeaderText="Exception Description" HeaderStyle-HorizontalAlign="Left" SortExpression="ExceptionDesc"
  
FilterControlWidth="105" DropDownBoxWidth="105" HeaderStyle-Width="52%" AllowFiltering="false">
  
<ItemTemplate>
  
<asp:Label ID="lblExceptionDesc" runat="server" Text='<%#Eval("ExceptionDesc") %>'
  
CausesValidation="false">
  
</asp:Label>
  
</ItemTemplate>
  
</SJ:CustomFilteringTemplateColumn>
  
</Columns>
  
</MasterTableView>
  
</SJ:SJRadGrid>
  
</td>
  
</tr>
  
<tr>
  
<td align="right">
  
<asp:Button ID="btnCloseModal" runat="server" CssClass="button" Text="Close" ToolTip="Close"
  
OnClientClick="return CloseModalPopup();" OnClick="btnCloseModal_Click" />
  
</td>
  
</tr>
  
</table>
  
</asp:Panel>
  
<asp:ModalPopupExtender ID="mpePatientException" runat="server" PopupControlID="pnlPatientException"
  
BehaviorID="ModalBehaviour" BackgroundCssClass="modalBackground" TargetControlID="dummyButton1"
  
Enabled="false" />
  
<input type="button" runat="server" style="display: none" id="dummyButton1" />
  
</asp:Panel>
  
</ContentTemplate>
  
</asp:UpdatePanel>
  
  
In the server side, I have the following on the click of the link button:
  
  
mpePatientException.Enabled = true;
  
mpePatientException.Show();


Any help would be appreciated.  Thanks in advance.

Regards,
Santosh Varma.

Sumila
Top achievements
Rank 1
 answered on 21 Sep 2018
3 answers
1.1K+ views

I am setting a custom attribute to a slider:
rs.Attributes["menuAttributeID"] = menuAttributeID.ToString();

the html output looks correct:
<div style="height: 22px; width: 200px;" menuattributeid="251" class="RadSlider RadSlider_Default" id="dnn_ctr456_Admin_rtbMenuAdmin_i6_i0_sldHeight">...

but how do I get the value of menuattributeid on the client side?

I've tried several things such as:
var menuAttributeID = sender.get_menuattributeid;
        alert(menuAttributeID);

but its not working.

Thanks!







Nikolai
Telerik team
 answered on 21 Sep 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?