Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
161 views
The Setup:
1. I have a page with a radgrid that is visible for the user to filter sort and etc.
2. I have another that is not visible (thus no data binding has occurred yet)  that has very specific fields that are for exporting to excel.
3. The user filters the top grid.  Then select a report to be generated in excel from this selection.  This report has extra data we don't want in the primary grid.
4. The user hits a action button (GO) and the invisible grid's rebind() event is called.
4.  I am currently using the grid_ExcelExportCellFormatting to make the grid look nice (works great) 
5.  I would like to use the ExcelML events instead so I can gain access to worksheet formatting like freeze panes and etc...

But then I change the grids export type to excelML and excel opens.. The workbook is empty.  I do no want to load the grid on the primary page load or during the page_init.. Only when the user selects GO (generate the selected report).

Any ideas on how I can get the grid to export data besides loading it with data when the page loads for the first time?
Daniel
Telerik team
 answered on 12 Jul 2012
1 answer
105 views
Is there  a way to prevent the RadSpell modal window from firing if there are no spelling mistakes.
If that is not possible is there a way to tell if something is misspelled without having the dialogue box come up.

Note: This is all being done client-side.

Jack
Rumen
Telerik team
 answered on 12 Jul 2012
1 answer
159 views
I have developed a custom skin following all the instructions on the documentation and am trying to register my custom skin using RadStyleSheetManager as per this instruction.

I am using this in SharePoint application page and have put in all necessary entries into the web.config file according to this article.

My page is really simple, and in fact, I took the example from this thread and simply add in one more combo box into my application page with nothing in it.

So, all I have in my page are simply:
<telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">
</telerik:RadStyleSheetManager>
<telerik:RadComboBox ID="RadComboBox1" Skin="SilverSkin" EnableEmbeddedSkins="False"
    runat="server">
    <Items>
        <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem1" />
        <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem2" />
        <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem3" />
    </Items>
    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
</telerik:RadComboBox>
<telerik:RadComboBox ID="RadComboBox2" Skin="Metro" EnableEmbeddedSkins="True"
    runat="server">
    <Items>
        <telerik:RadComboBoxItem runat="server" Text="RadComboBox2 Item1" />
        <telerik:RadComboBoxItem runat="server" Text="RadComboBox2 Item2" />
        <telerik:RadComboBoxItem runat="server" Text="RadComboBox2 Item3" />
    </Items>
    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
</telerik:RadComboBox>


Note that I didn't even register my custom skin in RadStyleSheetManager. When I load this page, no style is loaded for both Metro and SilverSkin (custom).
However, when I removed the RadStyleSheetManager control from the page, the Metro style comes back.
This problem only happens in SharePoint (2010) for some reason. What have I done wrong?
Adi
Top achievements
Rank 1
 answered on 12 Jul 2012
1 answer
541 views
hi ,

as per my requirement i need to hide price column based on some some condition how can we achieve this funcationality through vb.net can u please give any reference or suggestion it will be help full for me

Thanks & Regards,
M.Kotewswara Rao.
Shinu
Top achievements
Rank 2
 answered on 12 Jul 2012
3 answers
125 views
Hi,
I'm trying to implement drag & drop from ListView to TreeView. I need to assign a custom value on the "id" attribute so it can be used in ListView's DestinationHtmlElement in RadListViewItemDragDropEvent. If I bind the tree nodes on the Server-Side with RadTreeNode type, everything works fine. But if I use Web Service with RadTreeNodeData type, the DestinationHtmlElement is empty. Do I need to do something different with the web service?

// Server Side with RadTreeNode type works fine 
var node = new RadTreeNode();  
node.Attributes.Add("id", "folder_" + dtrReader["folderID"]);  
  
// Web Service with RadTreeNodeData type and the DestinationHtmlElement is empty
var node = new RadTreeNodeData();  
node.Attributes.Add("id", "folder_" + dtrReader["folderID"]);
Tony
Top achievements
Rank 1
 answered on 12 Jul 2012
1 answer
87 views
Hi Telerik,
I'm using control RadCaptcha in assembly Telerik.Web.UI version 2011.1.519.40.
After I set Maximum Worker Processes value in IIS Pool = 2, RadCaptchar show grayBox when I click refresh button to refresh validation image.
Then how can I fix this error if I still want use Web Garden for my App?
Dobromir
Telerik team
 answered on 12 Jul 2012
1 answer
126 views
Hi
I have a problem with the FileExplorer. In I use a template for my webapplication. When I look the site on firefox or chrome the fileexplorer works without problems. But in ie8 or 9 it doesn't work. I have attached some screenshots. My code looks so:
<telerik:RadFileExplorer Skin="Vista" ID="radfileexplorer" VisibleControls="AddressBox,ContextMenus,Grid,Treeview,Toolbar" Height="500px" Width="800px" runat="server">
<Configuration
ViewPaths="~/Uploads/Linkdaten"
UploadPaths="~/Uploads/Linkdaten"
DeletePaths="~/Uploads/Linkdaten"
/>
</telerik:RadFileExplorer>

I have found out, that the fileexplorer has a problem with my css-style. When I put the code in a new webform, it works fine.

Is there a possbility to define, that the fileexplorer should ignore all css from my page?

Thank you for the help!
Dobromir
Telerik team
 answered on 12 Jul 2012
7 answers
286 views
Hi,

I am having one request.
I need to set / change Rad Dock Title Bar height using javascript in both Collapsed or expanded position.
I can do this using CSS but my requirement is little different. I need to show and hide some of the title bar elements on click of a button using Javascript.

I tried this using div element and height do get chagned but the elements after dock are getting under it.
I want it as when the title bar height gets changed it should be relative as all other elements down page should move down by that height.

So here is the summary of the req.
1. Need to set / change Rad Dock Title Bar height using javascript in both Collapsed or expanded position.
2. When height gets set, the elements in line or below should get moved down by that height.

Expected early reply,
Thanks,
Avi
Dobromir
Telerik team
 answered on 12 Jul 2012
1 answer
292 views
This one is driving me insane and is probably a simple fix.  All i'm trying to do is foreach(griditem) and if that control is checked process it on a button click, but all the checkboxes are false. 

The GridView is created using AutoGenerateColumns, however in the aspx I push a checkbox column in before hand. Everything looks great just this always false is kiling me.


 foreach (GridDataItem gdItem in RoleNamePageNameAddGrid.MasterTableView.Items)
            {
                CheckBox chk = (CheckBox)gdItem.FindControl("CheckBoxAdd") as CheckBox;
                if(chk.Checked == true)
                {
                }


            }

<telerik:RadGrid ID="RoleNamePageNameAddGrid" runat="server">
        <MasterTableView DataKeyNames="PageDefn">
            <Columns>
                <telerik:GridTemplateColumn HeaderText="Update">
                    <ItemTemplate>
                        <asp:CheckBox ID="CheckBoxAdd" runat="server" AutoPostBack="false" />
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>
    <telerik:RadButton ID="AddPageRoleAttachmentButton" runat="server" Text="Add" OnClick="AddPageRoleAttachmentButton_Click">
    </telerik:RadButton>

Joshua
Top achievements
Rank 1
 answered on 11 Jul 2012
10 answers
483 views
Hi,

I have a radgrid with custom FormTemplate and in this template I have a RadButton and a Radtextbox.

I want do click on RadButton and insert some text in RadTextbox.

How can I do it?

Thanks!

<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1"
    AllowAutomaticInserts="True" CellSpacing="0" GridLines="None" Skin="Black"
    style="height: 44px">
    <MasterTableView autogeneratecolumns="False" datasourceid="SqlDataSource1"
        CommandItemDisplay="Top" DataKeyNames="idExterno" EditMode="PopUp">
        <CommandItemSettings ExportToPdfText="Export to PDF">
        </CommandItemSettings>
        <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
            <HeaderStyle Width="20px"></HeaderStyle>
        </RowIndicatorColumn>
        <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
            <HeaderStyle Width="20px"></HeaderStyle>
        </ExpandCollapseColumn>
        <Columns>
            <telerik:GridBoundColumn DataField="idExterno"
                FilterControlAltText="Filter idExterno column" HeaderText="idExterno"
                SortExpression="idExterno" UniqueName="idExterno" DataType="System.Int32"
                ReadOnly="True">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Model" FilterControlAltText="Filter Model column"
                HeaderText="Model" SortExpression="Model" UniqueName="Model">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="indice"
                FilterControlAltText="Filter indice column" HeaderText="indice"
                SortExpression="indice" UniqueName="indice" DataType="System.Int32">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Height"
                FilterControlAltText="Filter Height column" HeaderText="Height"
                SortExpression="Height" UniqueName="Height">
            </telerik:GridBoundColumn>
        </Columns>
        <EditFormSettings InsertCaption="Add new Item" EditFormType="Template">
            <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
            <FormTemplate>
                <telerik:RadButton ID="RadButton2" runat="server" onclick="RadButton2_Click"
                    Skin="Forest" Text="RadButton">
                </telerik:RadButton>
                <br />
                <telerik:RadTextBox ID="RadTextBox1" Runat="server" Skin="Web20">
                </telerik:RadTextBox>
            </FormTemplate>
        </EditFormSettings>
    </MasterTableView>
    <FilterMenu EnableImageSprites="False"></FilterMenu>
    <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu>
</telerik:RadGrid>
Casey
Top achievements
Rank 1
 answered on 11 Jul 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?