Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
118 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
71 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
105 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
80 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
407 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
167 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
3 answers
158 views
Hello,

Is there already a possible solution for using the RadConfirm with the drop of the treeview? I have used the rad dialogboxes trhoughout my application but now the client needs a check on a drop. According to previous posts this is only possible by using the browser confirm, but this is a break in style. Are there any examples how to do this with the ondrop?
Boyan Dimitrov
Telerik team
 answered on 16 Jul 2013
1 answer
165 views
Hello,

i'm using the Telerik.Web.UI version that is released with DotNetNuke 6. After changing the application pool to .net 4, i'm receiving the following error:
 
System.IO.FileNotFoundException: Could not find file 'Telerik.Web.UI.resources'.
at System.Reflection.RuntimeAssembly.InternalGetSatelliteAssembly(String name, CultureInfo culture, Version version, Boolean throwOnFileNotFound, StackCrawlMark& stackMark)
at System.Resources.ManifestBasedResourceGroveler.GetSatelliteAssembly(CultureInfo lookForCulture, StackCrawlMark& stackMark)
at System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(CultureInfo culture, Dictionary`2 localResourceSets, Boolean tryParents, Boolean createIfNotExists, StackCrawlMark& stackMark)
at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo requestedCulture, Boolean createIfNotExists, Boolean tryParents, StackCrawlMark& stackMark)
at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents)
at System.Resources.ResourceManager.GetString(String name, CultureInfo culture)
at Telerik.Web.LocalizationProvider.EmbeddedResourceLocator.GetString(String resourceKey)
at Telerik.Web.LocalizationStrings.GetString(String key, Boolean throwErrorIfMissing)
at Telerik.Web.LocalizationStrings.GetString(String key)
at Telerik.Web.UI.ComboBoxStrings.get_AllItemsCheckedString()

Apparently the recommended way to avoid this problem is to add an attribute in the AssemblyInfo file indicating that resources are embedded into the main assembly. Since i don't have the code available, the other option i see would be to have the satellite resource file for the Telerik.Web.UI assembly.
Is there some place where i can download resource files for Telerik.Web.UI, or can i generate it from Telerik.Web.UI? Is there another way to avoid this problem?

Thanks,
Samy
Slav
Telerik team
 answered on 16 Jul 2013
1 answer
85 views
I am working with the latest version of telerik and having issues with old GroupPanel code:

In the gridPrerender I am passing the following to a method:

PrepareGroupPanelTable((sender as RadGrid).GroupPanel.Controls[0].Controls[0] as GridTableRow);

Once it enters the PrepareGroupPanelTable the argument is null.  

protected void PrepareGroupPanelTable(string id, GridTableRow row)
 {
TableCell cell1 = row.Cells[0];    // row is null
}

row worked in the old version.  Now is always passes as null.

How do I fix this?
Milena
Telerik team
 answered on 16 Jul 2013
5 answers
150 views
When you use the standard "input" control with type="file", the browse button opens the file select window. The file name dropdown may contain a history of files that you previously worked with. Does the radAsyncUpload have a property to set that keeps this history. When we use this control, the file dropdown never contains any history. If I click the select button on this page and then the file dropdown, I see a list of all the files I have worked with over the last several days. Suggestions

Thanks
Dennis
Hristo Valyavicharski
Telerik team
 answered on 16 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?