Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
120 views
Hi there,
Is there a way to find out what is the level of a particular entry or if there are no child entries for it.
My current understanding of the control is that the selection is preserved in the Entries collection and there is no tree-like connections between the items of this collection.
My goal is to extract only the selected leaves.
Thanks,
Iulian
Kate
Telerik team
 answered on 16 Jul 2013
1 answer
143 views
Hi Team,

 I am using RadChart in my custom webpart. I am stuck with integrating chart with SharePoint. 

 I have put the entry in httpHandler like:

    <httpHandlers>
      <add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2009.3.1314.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />
    </httpHandlers>

 After doing this, I got an error like:

The "Chart" Web Part appears to be causing a problem. Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration>\<system.web>\<httpModules> section in the application configuration.


Kindly help me to resolve this. Its urgent. 
Thanks in Advance.


Petar Kirov
Telerik team
 answered on 16 Jul 2013
1 answer
254 views
Hi

How can I remove the yellow border of radtextbox in chrome?

Thanks
Katya
Princy
Top achievements
Rank 2
 answered on 16 Jul 2013
1 answer
145 views
Hi

I am using a radcombobox with load on demand. I want to populate items only after typing 3 characters. How?

Thanks
Katya
Princy
Top achievements
Rank 2
 answered on 16 Jul 2013
1 answer
126 views
Hi all,

Here's a weird situation. I am using ASP.NET web forms and have created a simple user control named TestControl.ascx. This control contains three asp:Labels. I went to design view in Visual Studio, then Tools -> Generate Local Resources. This created a App_LocalResources folder where the control is located, and added a TestControl.ascx.resx file within. I duplicated this file and named the duplicate copy TestControl.ascx.pt.resx to support Portuguese. I placed the control on a standard ASP.NET page and it works as expected.

Here is where Telerik seems to break it. I try to add a very simple telerik:RadGrid to the TestControl.ascx user control as follows:

<telerik:RadGrid runat="server" ID="TestRadGrid">
        <MasterTableView runat="server">
            <Columns>
                <telerik:GridBoundColumn UniqueName="ProgramColumn" HeaderText="Program" DataField="ProgramName" meta:resourcekey="ProgramGridBoundColumnResource1" />
            </Columns>
        </MasterTableView>
</telerik:RadGrid>


Inside of the local resource files I have the following key: ProgramGridBoundColumnResource1.HeaderText and I set the value accordingly. For some reason, however, when I run this, I get a "Parser Error" that says type GridBoundColumn does hot have a property "HeaderTextpt". I have no idea why this is happening. It literally takes the '.pt' part out of the local resource file name (TestControl.ascx.pt.resx) and appends it to the property specified in the file. I have no idea why it is doing this. However, when I delete the .pt resource file and only have TestControl.ascx.resx (a single resource file), it seems to work just fine. It is only when I add a second resource file with the ".pt.resx" extension that it fails. I have also tried with spanish ('es') but to no avail.

Please provide guidance as to why this is happening!!!

Thanks,
- Patrick


Marin
Telerik team
 answered on 16 Jul 2013
3 answers
81 views
I was just wondering if this is a known issue. I'm currently using Telerik + VS2010 to develop a Web Application, and it appears that the nesting of certain controls in my aspx page do not get generated in the designer.cs file. Has anyone experienced this before? Is this a bug in Visual Studio, or does it have something to do with the Telerik controls?
Kate
Telerik team
 answered on 16 Jul 2013
1 answer
114 views
I have the following scenario: 

<%-- UF --%>
    <tr>
        <td>
            <label>UF</label>
            <br />
            <telerik:RadComboBox ID="rcbUF" runat="server" CheckBoxes="True" EnableCheckAllItemsCheckBox="True" CausesValidation="false"
                Culture="pt-BR" CssClass="lt-width-10" MaxHeight="250" OnItemChecked="rcbUF_ItemChecked" AutoPostBack="true">
            </telerik:RadComboBox>
        </td>
    </tr>
    <%-- Rodovia --%>
        <tr>
            <td>
                <label>Rodovia</label>
                <br />
                <asp:UpdatePanel runat="server" ID="uppRodovia">
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="rcbUF" />
                    </Triggers>
                    <ContentTemplate>
                        <telerik:RadComboBox ID="rcbRodovia" runat="server" CheckBoxes="True" EnableCheckAllItemsCheckBox="True" Culture="pt-BR" MaxHeight="250" CssClass="lt-width-10" />
                    </ContentTemplate>
                </asp:UpdatePanel>
            </td>
        </tr>


When an item is checked on rcbUF, the following method is called (something like that):

protected void rcbUF_ItemChecked(object sender, RadComboBoxItemEventArgs e)
    {
    if (rcbUF.HasSelectedValue())
    {
        var _listaUF = rcbUF.Items.Where(x => x.Checked).Select(x => x.Value).ToList();
        var _rodovias = Repositorio<Rodovia>.GetAll.Where(x => x.ListaUF.Any(y=>_listaUF.Contains(y.UF.Id))).Select(x => x.Id).ToArray();
         
        if (_listaUF.Count > 0)
        {
            rcbRodovia.Carregar<Rodovia>(x => x.Numero, x => x.Id,
                Constantes.TextoVazioEspaco,
                true,
                x => _rodovias.Contains(x.Id),
                x => x.Numero);
        }
        else
        {
            rcbRodovia.Carregar<Rodovia>(x => x.Numero, x => x.Id,
                Constantes.TextoVazioEspaco,
                true,
                x => x.Numero);
        }
         
        rcbRodovia.Items.Distinct();
        rcbRodovia.Enabled = true;
    }
    }

My problem is that everytime I click on the item instead of the checkbox, it triggers a postback (much on the OnItemSelected way), and I really don't want it to occur.

Later I tried setting the rcbUF OnClientSelectedIndexChanging event to trigger this function:

function OnClientSelectedIndexChanging(sender, args)
{
    args.set_cancel(true);
}

But the event never fires, like it does fire the codebehind event but not the client-side one.

Nencho
Telerik team
 answered on 16 Jul 2013
1 answer
92 views
Hey, 

 In my code behind, when my page is loading, I load the content of the rad editor with the html from Cnn.com.  When the rad editor is first displayed (in design mode), the page appears as it should.  When I switch to the html mode, I can see the radeditor then strips away anything inbetween the header tags, and when I go back to design mode, it inserts bullet points at the top of the page.  When I manually enter the html from cnn.com into the html page and switch back and forth, this does not happen.  I've tried all the filters, and I'm still getting the same results.  

Pictures for comparison: 

http://imgur.com/a/nrtIE


1: First design is displayed.  Those spaces between the date and cnn.com doesn't matter.  Everything looks good. 
2: switch to html view.  The Head elements are stripped away (even with filter set to none).
3. Switch back to design: bullet points appear.  
4. Copy in the same source code into the html view 
5. Formatting stays.  


Any help would be much appreciated.  
Ianko
Telerik team
 answered on 16 Jul 2013
7 answers
461 views
Hi ,
I created a column series Html chart. Binded with datasource (DataTable) .

the problem is series width is very small in size than the actual chart display.

Here, I attached the screen shot of the chart.

Thanks in advance.

  
Stamo Gochev
Telerik team
 answered on 16 Jul 2013
1 answer
173 views
Hi,
 I am using Rad Editor in my project that I have created with VS2010. In my project i have created a custom context menu. i want to apply custom css class on this context menu. please give me any idea or help.
i have use following code.

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="b.aspx.vb" Inherits="ComplianceTable.b" %>

<%@ 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">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager ID="ScriptManager1" runat="server" />
           <telerik:RadEditor runat="server" ID="RadEditor1">
            <ContextMenus>
                <telerik:EditorContextMenu Enabled="false" TagName="TD">
                </telerik:EditorContextMenu>
                <telerik:EditorContextMenu Enabled="false" TagName="TABLE">
                </telerik:EditorContextMenu>
                <telerik:EditorContextMenu TagName="TD">
                    <telerik:EditorTool Name="EditTable" Text="EditTable" ImageUrl="Images/modify.png" />
                    <telerik:EditorTool Name="SetCellProperties" />
                    <telerik:EditorTool Name="SetTableProperties" />
                </telerik:EditorContextMenu>
            </ContextMenus>
            <Content>
              
               <table style="margin: 0pt auto; clear: both; width: 500px; height: 50px;">
    <thead>
        <tr>
            <th style="background-color: #ebf1dd;">Browser/OS</th>
            <th style="background-color: #ebf1dd;">Windows</th>
            <th style="background-color: #ebf1dd;">Mac OS</th>
            <th style="background-color: #ebf1dd;">Linux</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td style="text-align: left; vertical-align: middle;">&nbsp; Internet Explorer</td>
            <td style="background-color: #f2f2f2; height: 3px;">6.0+</td>
            <td style="background-color: #e5e0ec;">- </td>
            <td style="background-color: #dbeef3;">- </td>
        </tr>
        <tr>
            <td>&nbsp; Firefox</td>
            <td style="background-color: #f2f2f2;">1.5+</td>
            <td style="background-color: #e5e0ec;">1.5+</td>
            <td style="background-color: #dbeef3;">1.5+</td>
        </tr>
        <tr>
            <td>&nbsp; Google Chrome</td>
            <td style="background-color: #f2f2f2;">0.2+</td>
            <td style="background-color: #e5e0ec;">5.0+</td>
            <td style="background-color: #dbeef3;">5.0+</td>
        </tr>
    </tbody>    
</table>
            </Content>
        </telerik:RadEditor>
</div>
    </form>
</body>
</html>
Ianko
Telerik team
 answered on 16 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?