Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
330 views
Hi, 
I've got a checkbox in the <CommandItemTemplate>
In the NeedDataSource event, I'm trying to capture whether the checkbox is checked

Can anyone tell me how to reference this checkbox control ?

Thanks :)
Eyup
Telerik team
 answered on 05 Nov 2012
2 answers
149 views

http://test3.servicesangam.com/[^] This is link of uploaded website where error occurs. Basically I am uploading images to folder which running or working on localhost but not working on web server.

So please tell me where the error in this If you need I send you code also.



you can download code from test3.servicesangam.com/Upload.rar 
Navin
Top achievements
Rank 1
 answered on 05 Nov 2012
1 answer
48 views

Dear Telerik Wizards,

See the two attached images. Both are incorrect. As can be seen from the menu items below, the group setting is set to a particular height and width - in IE the width is no where near 800, in Chrome it seems to be much greater than 800.
Basically I am using the menu items to show short snippets of content that I do no want to bother with an entire page for...

Thanks,
Chris

<telerik:RadMenuItem Text="About Us" runat="server">
    <Items>
        <telerik:RadMenuItem Text="Chris">
            <Items>
                <telerik:RadMenuItem>
                    <GroupSettings Height="400" Width="800" />
                    <ItemTemplate>
                        <table>
                            <tr><td colspan="2">Dr. Christian Peter Wagner</td></tr>
                            <tr>
                                <td style="vertical-align:top;">
                                    <asp:Image ID="Image1" ImageUrl="~/Images/2009_Chris001.png" Width="100" runat="server" />
                                </td>
                                <td style="vertical-align:top;">
                                    <p>Welcome to R Teachings!</p>
 
                                    <p>What you will find on this site is wisdom concerning how to live your life.
                                       It will always be your choice to interpret what is said and see if it works from you.</p>
 
                                    <p>The work here is channeled... and to some this may seem like a strange idea.
                                       Simply put, understanding channeling depends upon how you understand the universe.
                                       If you believe that human kind is the highest life in the universe and there is no God,
                                       then channeling can simply be viewed as performance art. The channel enters an altered state and,
                                       from this altered state, speaks. You might understand that many musicians improvise.
                                       So, from some view, channeling is verbal improvisation.</p>
 
                                    <p>If you believe in God, in angels, in higher energies, then you can interpret channeling
                                       very differently. Indeed, if you believe that God pervades all that is, then those
                                       with focus and desire can tap into this divine flow and speak from there,
                                       then channeling can be a higher level of wisdom than human's can normally achieve.</p>
 
                                    <p>It is surely not my place to tell you how to organize and understand YOUR experience!</p>
 
                                    <p>In my day job, I have been a professor of Engineering and Computer Science for over 30 years...
                                       at Oakland University in Rochester, Michigan. My research interest is Artificial Intelligence.
                                       Although an engineer, my PhD is in educational psychology, so I have a different view of life
                                       than most engineers. That difference has been further extended because of many transformational
                                       experiences in my lifetime that began when I was quite young.</p>
 
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </telerik:RadMenuItem>
            </Items>
        </telerik:RadMenuItem>
Kate
Telerik team
 answered on 05 Nov 2012
3 answers
139 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
86 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
198 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
113 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
201 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
115 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
233 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?