Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
145 views
Here is my Code.

<telerik:RadComboBox ID="ddlFabLocation2" EmptyMessage="--Select--" runat="server" CheckBoxes="true" EnableCheckAllItemsCheckBox="false"  Skin="Windows7" CheckedItemsTexts="DisplayAllInInput"
Width="300" Label="">                    
</telerik:RadComboBox>

When i failed to set the Label property . Radcombobox disappears during the page load.
Even if I set it empty string, Its not working.

When I provide any text like Label="test" or Label="[White space]".It works fine.

But I don't want to show any text or white space in front of the control.

*I am using the Latest telerik version.
*IE 7

Nencho
Telerik team
 answered on 05 Nov 2012
3 answers
90 views
Hi,
I'm using Radcontrols, version 2012.1.411.35.
I've a Radcombobox with LoadOndemand. When I click on it, before server-side code execute, I've got this error:

SCRIPT340: Clase no registrada
 
WebResource.axd?d=qJaSY16GGyZ4ybi-VKGKISoa-IMkcY9bXxzj3tBEIDHVtbWyyJBtL8ivw2c6oaFq3abdYPi5sZS7fffbgXb5xxdN1oQ1&t=634605546830000000, Línea 85 Carácter 9

or 

SCRIPT340: Clase no registrada
 
Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ph_principal_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aes-ES%3a553a4a13-b3a5-4e6b-a152-b131051f1788%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2012.1.411.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aes-ES%3a4cad056e-160b-4b85-8751-cc8693e9bcd0%3a16e4e7cd%3af7645509%3a24ee1bba%3a1e771326%3aa7e79140%3a874f8ea2%3a19620875%3af46195d3%3a490a9d4e%3abd8f85e4%3aed16cbdc%3a2003d0b8%3aaa288e2d%3a7c926187%3a8674cba1%3ab7778d6c%3ac08e9f8a%3aa51ee93e%3a59462f1%3a58366029, Línea 6 Carácter 63059

With Firebug I've found js line code which is showing error (marked with >>>>>):

if (setRequestHeaderMethodExists) {
        xmlRequest.onreadystatechange = WebForm_CallbackComplete;
        callback.xmlRequest = xmlRequest;
>>>>>>>>xmlRequest.open("POST", theForm.action, true);
        xmlRequest.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=utf-8");
        xmlRequest.send(postData);
        return;
    }


This error occurs in IE 7 and IE 8 but not in IE9.

Thanks in advanced.

Jesus



Nencho
Telerik team
 answered on 05 Nov 2012
1 answer
206 views

A linkButton onClientClick starts a new page and loads user control. In the user control I have radgrid and button those I have placed in ajaxpanel.

<asp:UpdatePanel runat="server" ID="ajaxPanel">
    <ContentTemplate>
 
     
 
 
        <telerik:RadGrid ID="RadGrid1" Width="97%"            PageSize="15" runat="server" AllowSorting="True" AllowFilteringByColumn="True"
             GridLines="None" CellSpacing="0"
              >
 
             <MasterTableView Width="100%" AutoGenerateColumns="False" DataKeyNames="GrowerId">
 
                  <Columns>
                      <telerik:GridTemplateColumn UniqueName="TemplateColumn" SortExpression="CompanyName">
                      <HeaderTemplate>
 
                                         <asp:CheckBox id="headerChkbox"  OnCheckedChanged="chkHeader_CheckedChanged"  AutoPostBack="true" runat="server" Text="Select All" ></asp:CheckBox>
 
                                        </HeaderTemplate>
                        <ItemTemplate>
                             
                                <asp:checkbox ID="chkGrowerId" runat="server" />
                             
                        </ItemTemplate>
                        </telerik:GridTemplateColumn>
                      
                      <telerik:GridBoundColumn DataField="FirstName" HeaderText="FirstName"
                          SortExpression="FirstName" UniqueName="FirstName">
                      </telerik:GridBoundColumn>
                      <telerik:GridBoundColumn DataField="LastName" HeaderText="LastName"
                          SortExpression="LastName" UniqueName="LastName">
                      </telerik:GridBoundColumn>
                      <telerik:GridBoundColumn DataField="AddressLine" HeaderText="AddressLine"
                          SortExpression="AddressLine" UniqueName="AddressLine">
                      </telerik:GridBoundColumn>
                      <telerik:GridBoundColumn DataField="City" HeaderText="City"
                          SortExpression="City" UniqueName="City">
                      </telerik:GridBoundColumn>
                      <telerik:GridBoundColumn DataField="StateCode" HeaderText="StateCode"
                          SortExpression="StateCode" UniqueName="StateCode">
                      </telerik:GridBoundColumn>
                      <telerik:GridBoundColumn DataField="ZipCode" HeaderText="ZipCode"
                          SortExpression="ZipCode" UniqueName="ZipCode">
                      </telerik:GridBoundColumn>
                       
                  </Columns>
                </MasterTableView>
              <PagerStyle Mode="NextPrevAndNumeric" />
                <FilterMenu EnableTheming="True">
                    <CollapseAnimation Duration="200" Type="OutQuint" />
                </FilterMenu>
            </telerik:RadGrid>
            <asp:Button ID="btnCreateCsv" runat="server" Text ="Create Mailing List" OnClick="btnCreate_Click" />
    </ContentTemplate>
      
    </asp:UpdatePanel>

 

 

 

User control loaded without any problem. But when I clicked the checkbox or button the checkedchanged/click event is not firing. Help please….

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

</asp:UpdatePanel>

Maria Ilieva
Telerik team
 answered on 05 Nov 2012
5 answers
119 views
Hi,

I have a problem and would appreciate your help.

We are using RadEditor in ToolbarMode="RibbonBar". The tools list is from a file - tools.xml.
However we need also to add two custom (own) dropdowns to an existing tab (tab="Home"), but they should appear in own "section" (name="Links"). As 'section' I mean something like name="Clipboard" in the sample below.
<tools name="Clipboard" tab="Home">
        <tool name="PasteStrip" size="large"/>
        <tool name="Cut" size="medium"/>
        <tool name="Copy" size="medium" shortcut="CTRL+C"/>
        <tool name="Print" size="medium" shortcut="CTRL+P"/>
    </tools>


The custom dropdowns must be populated with data dynamically on Page_Load.

As in the sample on http://demos.telerik.com/aspnet-ajax/editor/examples/customdropdowns/defaultcs.aspx I have code like:

if (!IsPostBack)
{
    //add a new Toolbar dynamically
    EditorToolGroup dynamicToolbar = new EditorToolGroup();               
    txtHTMLContent.Tools.Add(dynamicToolbar);
 
    //add a custom dropdown and set its items and dimension attributes
    EditorDropDown ddn = new EditorDropDown("CustomLinks1");
    ddn.Text = "Links 1";
 
    //Set the popup width and height
    ddn.Attributes["width"] = "90px";
    ddn.Attributes["popupwidth"] = "180px";
    ddn.Attributes["popupheight"] = "260px";
 
    ///Add items
    ddn.Items.Add("a", "a"); // from DataBase
    ddn.Items.Add("b", "b");
 
    //Add tool to toolbar
    dynamicToolbar.Tools.Add(ddn);
 
 
 
    //add a new Toolbar dynamically
    EditorToolGroup dynamicToolbar2 = new EditorToolGroup();               
    txtHTMLContent.Tools.Add(dynamicToolbar2);
 
    //add a custom dropdown and set its items and dimension attributes
    EditorDropDown ddn2 = new EditorDropDown("CustomLinks2");
    ddn2.Text = "Links 2";
 
    //Set the popup width and height
    ddn2.Attributes["width"] = "90px";
    ddn2.Attributes["popupwidth"] = "180px";
    ddn2.Attributes["popupheight"] = "70px";
 
    //Add items
    ddn2.Items.Add("c", "c");  // from DataBase
    ddn2.Items.Add("d", "d");
 
    //Add tool to toolbar
    dynamicToolbar2.Tools.Add(ddn2);
}

But how to addapte it in order to have this custom dropdowns in editor's ribbonbar toolbar ?
Rahul
Top achievements
Rank 1
 answered on 05 Nov 2012
8 answers
213 views
Hi,

 I am using the Q32001 version of the controls and .NET Framework 4.5. Here is my situation. I have a grid and a client side event OnCommand that does some staff for grouping and ungrouping (and only that!). Everything is working as expected. However, when I sort the datain the grid the double sorting icon appers. If I remove the ClientEvent-OnCommand event handler, the problem goes away. In the handler there is no code related to sorting what so ever.

Could you please explain what I have this problem and how to fix it?

Thank  you,

Tatiana
Antonio Stoilkov
Telerik team
 answered on 05 Nov 2012
3 answers
119 views


I have to identical RadGrid's. I created the Radgrid and then placed it in a nested view. The image show up in the first table but not the nested. What am I missing?

FIrst Table:

<telerik:RadGrid ID="RadGrid6" runat="server"
                 DataSourceID="PictureDB" AutoGenerateColumns="False" AllowSorting="True"
                 AllowPaging="True" PageSize="5" GridLines="None"
                 ShowGroupPanel="True" CellSpacing="0" AllowFilteringByColumn="True">
    <ClientSettings>
        <Selecting CellSelectionMode="None"></Selecting>
    </ClientSettings>
 
    <MasterTableView
        DataKeyNames="PictureID"
        DataSourceID="PictureDB" AllowFilteringByColumn="False">
        <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
 
        <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
            <HeaderStyle Width="20px"></HeaderStyle>
        </RowIndicatorColumn>
 
        <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
            <HeaderStyle Width="20px"></HeaderStyle>
        </ExpandCollapseColumn>
 
        <Columns>
            <telerik:GridBoundColumn DataField="PictureID" DataType="System.Int32"
                                     FilterControlAltText="Filter PictureID column"
                                     HeaderText="PictureID" SortExpression="PictureID"
                                     UniqueName="PictureID" ReadOnly="True">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Extension"
                                     FilterControlAltText="Filter Extension column" HeaderText="Extension"
                                     SortExpression="Extension" UniqueName="Extension">
            </telerik:GridBoundColumn>
            <telerik:GridCheckBoxColumn DataField="IsNew" DataType="System.Boolean"
                                        FilterControlAltText="Filter IsNew column" HeaderText="IsNew"
                                        SortExpression="IsNew" UniqueName="IsNew">
            </telerik:GridCheckBoxColumn>
            <telerik:GridBoundColumn DataField="SKU"
                                     FilterControlAltText="Filter SKU column"
                                     HeaderText="SKU" SortExpression="SKU"
                                     UniqueName="SKU">
            </telerik:GridBoundColumn>
        </Columns>
 
        <Columns>
            <telerik:GridBinaryImageColumn DataField="PictureBinary"></telerik:GridBinaryImageColumn>
        </Columns>
 
        <EditFormSettings>
            <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
        </EditFormSettings>
    </MasterTableView>
 
    <FilterMenu EnableImageSprites="False"></FilterMenu>
</telerik:RadGrid>


 Here is the table with nested view:

<telerik:RadGrid ID="RadGrid1"  DataSourceID="DataSourceMP"
                 runat="server" AutoGenerateColumns="False" AllowSorting="True"
                 AllowPaging="True" PageSize="5" GridLines="None"
                 ShowGroupPanel="True" CellSpacing="0" AllowFilteringByColumn="True">
    <PagerStyle Mode="NumericPages"></PagerStyle>
    <MasterTableView DataSourceID="DataSourceMP" AllowMultiColumnSorting="True"
                     GroupLoadMode="Server">
             
        <NestedViewTemplate>
 
            <telerik:RadTabStrip runat="server" ID="TabStip1" MultiPageID="Multipage1" SelectedIndex="0">
                <Tabs>
                    <telerik:RadTab runat="server" Text="Pricing" PageViewID="PageView1">
                    </telerik:RadTab>
                    <telerik:RadTab runat="server" Text="Online Detail" PageViewID="PageView2">
                    </telerik:RadTab>
                    <telerik:RadTab runat="server" Text="Images" PageViewID="PageView3">
                    </telerik:RadTab>
                </Tabs>
            </telerik:RadTabStrip>
 
            <telerik:RadMultiPage runat="server" ID="Multipage1" SelectedIndex="0" RenderSelectedPageOnly="false">
                <telerik:RadPageView runat="server" ID="PageView1">
                            
                    <%--this an a master table--%>
 
 
                    <%--this an a master table End--%>
 
                </telerik:RadPageView>
                <telerik:RadPageView runat="server" ID="PageView2" Width="460px">
                     
                    <%--this an a master table--%>
 
 
 
                    <%--this an a master table End--%>
 
 
                </telerik:RadPageView>
                <telerik:RadPageView runat="server" ID="PageView3">
 
 
                    <%--this an a master table--%>
                    <asp:Label ID="Label3" Font-Bold="true" Font-Italic="true" Text='<%# Eval("Item_Number") %>'
                               Visible="false" runat="server"></asp:Label>
 
 
                    <telerik:RadGrid ID="RadGrid5" runat="server"
                                     DataSourceID="PictureDB" AutoGenerateColumns="False" AllowSorting="True"
                                     AllowPaging="True" PageSize="5" GridLines="None"
                                     ShowGroupPanel="True" CellSpacing="0" AllowFilteringByColumn="True">
                        <ClientSettings>
                            <Selecting CellSelectionMode="None"></Selecting>
                        </ClientSettings>
 
                        <MasterTableView
                          DataKeyNames="PictureID"
                            DataSourceID="PictureDB" AllowFilteringByColumn="False">
                            <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
                     
                            <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                                <HeaderStyle Width="20px"></HeaderStyle>
                            </RowIndicatorColumn>
                     
                            <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                                <HeaderStyle Width="20px"></HeaderStyle>
                            </ExpandCollapseColumn>
                     
                            <Columns>
                                <telerik:GridBoundColumn DataField="PictureID" DataType="System.Int32"
                                                         FilterControlAltText="Filter PictureID column"
                                                         HeaderText="PictureID" SortExpression="PictureID"
                                                         UniqueName="PictureID" ReadOnly="True">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Extension"
                                                         FilterControlAltText="Filter Extension column" HeaderText="Extension"
                                                         SortExpression="Extension" UniqueName="Extension">
                                </telerik:GridBoundColumn>
                                <telerik:GridCheckBoxColumn DataField="IsNew" DataType="System.Boolean"
                                                            FilterControlAltText="Filter IsNew column" HeaderText="IsNew"
                                                            SortExpression="IsNew" UniqueName="IsNew">
                                </telerik:GridCheckBoxColumn>
                                <telerik:GridBoundColumn DataField="SKU"
                                                         FilterControlAltText="Filter SKU column"
                                                         HeaderText="SKU" SortExpression="SKU"
                                                         UniqueName="SKU">
                                </telerik:GridBoundColumn>
                            </Columns>
                     
                            <Columns>
                                <telerik:GridBinaryImageColumn DataField="PictureBinary"></telerik:GridBinaryImageColumn>
                            </Columns>
                   
                          <EditFormSettings>
                              <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
                          </EditFormSettings>
                      </MasterTableView>
 
                        <FilterMenu EnableImageSprites="False"></FilterMenu>
                    </telerik:RadGrid>
                     
 
                    <%--this an a master table End--%>
 
                </telerik:RadPageView>
            </telerik:RadMultiPage>
 
        </NestedViewTemplate>
 
        <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
 
        <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn>
 
        <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn>
 
 
    </MasterTableView>
    <ClientSettings AllowDragToGroup="false">
        <Selecting CellSelectionMode="None"></Selecting>
    </ClientSettings>
 
    <FilterMenu EnableImageSprites="False"></FilterMenu>
</telerik:RadGrid>

Radoslav
Telerik team
 answered on 05 Nov 2012
5 answers
241 views

Hi:
My radgrid have a text column with values 1/2, LARGE, MEDIUM..etc
When I export the grid to excel or csv the value LARGE, MEDIUM show up fine..
BUT
1/2 values are exported as 2-Jan and if you click in the actual cell the value showed is 1/1/2012
I try setting the column to datatype to System.String, but same results.

Jose

 

 

 

 

 

 

 

Kostadin
Telerik team
 answered on 05 Nov 2012
1 answer
66 views
Hi,

I have a radgrid, command settings of grid are :

<

 

 

CommandItemSettings AddNewRecordText="Add New Quote Item" />
When I click on Add New Quote Item it inserts a row in grid, now I want to save the previous insert item, if click Add New Quote Item again. i.e. click Add. inserts a row in grid, type in text for each columns and then when I click Add agian it should save my previouly inserted row and then insert a new row in grid.

Or Grid should allow me to add multiple rows without saving them.

Please suggest.

Thanks,
Aditi

 

Angel Petrov
Telerik team
 answered on 05 Nov 2012
1 answer
37 views
Hello,

I have what appears to be a simple issue but cannot figure out what I need to do to resolve it.  Currently I have a RadSiteMap in the center of a DIV element, however once security trimming is enabled and some columns are removed the RadSiteMap remains aligned to the left of the DIV although I am applying text-alignment: center to the containing DIV.

What do I need to override for this to work correctly as it just doesn't look right when columns are removed and the sitemap control is not centered?

Thanks,
Ron
Kate
Telerik team
 answered on 05 Nov 2012
3 answers
165 views

Hello Telerik Team,

I have one problem with Rad AJAX.

In my application I am using Master Page. And there is a label to print the name of the member selected.

Now, member is selected from a User control on each page having the above master pages. So accoriding to the member selected from the User Control,
the label Text at the top of Master page should be changed. But it is not happening.

Can you tell me what could be the problem??

The sceneraio is like this

<MASTER [Member Name]>
         <ASPX PAGE>
              <USER CONTROL>
                   <Member Name>
              </ USER CONTROL>
         </ ASPX PAGE>
</ MASTER>

So when the Member name changes in user control, the Member name (ie Label) should also change. This is done when the whole page is refreshed, but as I am using AJAX in my ASPX page, the page is not getting refreshed.

How can I solve this?

Pavlina
Telerik team
 answered on 05 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?