Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
152 views
Hi,

I have a grid with export button. I am using Office 2007 skin and font type is "Tahoma". But when i export to word or pdf or excel, default is Times New Roman. Please let me know to keep my grid's font type as it is.

Regards,
Alex
Alex
Top achievements
Rank 1
 answered on 24 Jun 2009
2 answers
120 views
Hi, I have this strange problem.

Trying to add 100% width to the radeditor as follows:

 

Dim leditor As New RadEditor()

 

leditor.Skin =

"Black"

 

leditor.Width =

"100%"

 

leditor.EditModes = EditModes.All

leditor.NewLineBr =

True

 

...

It is simply not possible. When trying to do that I get the following error message:

Input string was not in a correct format.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.FormatException: Input string was not in a correct format.

Source Error:

Line 394:        Dim leditor As New RadEditor()
Line 395:        leditor.Skin = "Black"
Line 396: leditor.Width = "100%"Line 397:        leditor.EditModes = EditModes.All
Line 398:        leditor.NewLineBr = True


Helge
Top achievements
Rank 1
 answered on 24 Jun 2009
1 answer
94 views
Hi, can some ome help me.

I need to make an update once i select a row, i have a GridTemplateColumn as in Telerik Example (http://demos.telerik.com/aspnet-ajax/grid/examples/programming/selectrowwithcheckbox/defaultvb.aspx) and I need to update a database field (true/false) once is checked or unchecked. is there a way to do this?


<telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn">
                            <HeaderTemplate>
                             <asp:CheckBox id="headerChkbox" OnCheckedChanged="ToggleSelectedState" AutoPostBack="True" runat="server"></asp:CheckBox>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:CheckBox id="CheckBox1" OnCheckedChanged="ToggleRowSelection" AutoPostBack="True" runat="server"></asp:CheckBox>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
Pavlina
Telerik team
 answered on 24 Jun 2009
2 answers
89 views

Hi,

I have an export function for Word, Excel, CSV and PDF. I already set rgAcquirerCardCurrency.ExportSettings.ExportOnlyData = true;

 

 

But select check box column and AutoGenerateEditColumn are still exporting. Please let me know how to hide this two columns.

<

 

telerik:GridClientSelectColumn/>

 

AutoGenerateEditColumn


Regards,
Alex

Alex
Top achievements
Rank 1
 answered on 24 Jun 2009
1 answer
146 views

Hi to all,

i would like to set a checkbox to checked after a OnClientSelectedIndexChanged Event triggert by a RadComboBox Control.
All this ClientSide.

I use a RadGrid and in every Row i have a RadComboBox and a Checkbox. After a Index changed in the RadComboBox i would like to set the Checkbox.

My problem is to find the Checkbox or rather to get a instance of this object.

Here are my Code:


        function OnClientSelectedIndexChanged_RowDecision(sender, eventArgs) {  
            var item = eventArgs.get_item();  
 
            var ckhkBox = $telerik.findControl(item.get_itemData().get_element(), "chkbSelected");  
            if (ckhkBox.checked == true) {  
                alert('Checked true');  
 
            }  
            else {  
                alert('Checked false);  
 
            }  
 
        }  
 

            <telerik:RadGrid ID="rdgWI" 
                             runat="server"   
                             AutoGenerateColumns="False" 
                             GridLines="None" 
                             onneeddatasource="rdgWI_NeedDataSource"   
                             PageSize="8" 
                             AllowSorting="True">  
                <HeaderContextMenu> 
                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                </HeaderContextMenu> 
 
                <ClientSettings> 
                    <Scrolling AllowScroll="True" UseStaticHeaders="true" /> 
                    <ClientEvents OnGridCreated="GetGridObject"></ClientEvents> 
                </ClientSettings> 
 
                <MasterTableView ShowHeadersWhenNoRecords="true" AllowSorting="True" ShowHeader="true" runat="server">  
                     
                    <RowIndicatorColumn> 
                        <HeaderStyle Width="20px"></HeaderStyle> 
                    </RowIndicatorColumn> 
                    <ExpandCollapseColumn> 
                        <HeaderStyle Width="20px"></HeaderStyle> 
                    </ExpandCollapseColumn> 
                    <Columns> 
                        <telerik:GridBoundColumn DataField="WiId" UniqueName="WiId" Visible="false">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridTemplateColumn Display="true">  
                            <ItemTemplate> 
                                <asp:CheckBox ID="chkbSelected" runat="server" /> 
                            </ItemTemplate> 
                        </telerik:GridTemplateColumn> 
                        <telerik:GridTemplateColumn HeaderText="Decision" SortExpression=""   
                            UniqueName="Decision" Visible="false" DataField="WiRhTask" > 
                            <ItemTemplate> 
                                <telerik:RadComboBox ID="rcbDecision"   
                                    DataSource="Decision"   
                                    DataValueField="Description" DataTextField="Shortt" runat="server"   
                                    OnClientSelectedIndexChanged="OnClientSelectedIndexChanged_RowDecision" 
                                    meta:resourcekey="rcbDecisionResource1">  
                                    <CollapseAnimation Duration="200" Type="OutQuint" /> 
                                </telerik:RadComboBox> 
                            </ItemTemplate> 
                        </telerik:GridTemplateColumn> 
                    </Columns> 
                </MasterTableView> 
                <FilterMenu> 
                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                </FilterMenu> 
            </telerik:RadGrid> 

Thank you in advance
Daniel
Telerik team
 answered on 24 Jun 2009
5 answers
354 views

Hi to all,

in my szenario i use in a Grid a RadToolBar with a RadComboBox to filter (clientside) dataitems in the Grid. This works well!

Now i would like to go through to all DataItems which are Visible = true (x.get_visible()) and find the RadComboBoxes named "rcbCategory" to change the value and the text.

How can i get an instance to change value and the text.

Here is the JavaScript, where i would like to find the RadComboBox in the Grid:

        function DecisionExecute() {  
 
           // GetRegisteredServerElement('ddlCategory');  
            var DataItems = $find("<%=rdgWI.ClientID %>").get_masterTableView().get_dataItems();  
            for (i = 0; i < DataItems.length; i++) {  
                //HERE I NEED TO FIND THE RADCOMBOBOX                 
            }  
        }  
 

Here is the ASCX:
<table cellpadding="0" cellspacing="0" border="0" width="100%">  
    <tr> 
        <td> 
            <telerik:RadToolBar ID="rdtbWl" runat="server" Style="display: block; float: none" Visible="false" 
                Width="100%">  
                <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                <Items> 
                    <telerik:RadToolBarButton Value="rtbWTypes" Text="rtbWTypes">  
                        <ItemTemplate> 
                            <telerik:RadComboBox ID="rcbWTypes"   
                                                    runat="server"   
                                                    CssClass="DefaultText" 
                                                    OnClientSelectedIndexChanged="OnClientSelectedIndexChanged" 
                                                    DataTextField="Stext" 
                                                    DataValueField="Stext" 
                                                    HighlightTemplatedItems="True">  
                                <CollapseAnimation Duration="200" Type="OutQuint" /> 
                            </telerik:RadComboBox> 
                        </ItemTemplate> 
                    </telerik:RadToolBarButton> 
 
                    <telerik:RadToolBarButton Value="rtbColumnDecision" Text="rtbColumnDecision">  
                        <ItemTemplate> 
                            <telerik:RadComboBox ID="rcbColumnDecision"   
                                                    runat="server"   
                                                    CssClass="DefaultText"   
                                                    OnClientItemsRequested="ItemsLoaded" 
                                                    OnItemsRequested="rcbColumnDecision_ItemsRequested">  
                                <CollapseAnimation Duration="200" Type="OutQuint" /> 
                            </telerik:RadComboBox> 
                        </ItemTemplate>      
                    </telerik:RadToolBarButton> 
                                         
                    <telerik:RadToolBarButton Text="Execute" Value="Execute" runat="server">  
                        <ItemTemplate> 
                            <asp:Button ID="btnColumnDecisionExecute" runat="server" Text="Execute" OnClientClick="ColumnDecisionExecute()" /> 
                        </ItemTemplate> 
                    </telerik:RadToolBarButton> 
                </Items> 
            </telerik:RadToolBar> 
        </td> 
    </tr> 
    <tr> 
        <td width="100%">  
            <telerik:RadGrid ID="rdgWI" 
                             runat="server"   
                             AutoGenerateColumns="False" 
                             GridLines="None"   
                             AllowPaging="False" 
                             onneeddatasource="rdgWI_NeedDataSource"   
                             PageSize="8" 
                             AllowSorting="true">  
                <HeaderContextMenu> 
                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                </HeaderContextMenu> 
 
                <ClientSettings> 
                    <Scrolling AllowScroll="True" UseStaticHeaders="true" /> 
                    <ClientEvents OnGridCreated="GetGridObject"></ClientEvents> 
                </ClientSettings> 
 
                <MasterTableView ClientDataKeyNames="RhText" ShowHeadersWhenNoRecords="true" AllowSorting="True" ShowHeader="true" runat="server">  
                     
                    <RowIndicatorColumn> 
                        <HeaderStyle Width="20px"></HeaderStyle> 
                    </RowIndicatorColumn> 
                    <ExpandCollapseColumn> 
                        <HeaderStyle Width="20px"></HeaderStyle> 
                    </ExpandCollapseColumn> 
                    <Columns> 
                        <telerik:GridBoundColumn  DataField="WiId" UniqueName="WiId" Visible="false">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridTemplateColumn HeaderText="Category" SortExpression="" UniqueName="Category" Visible="false">  
                <ItemTemplate> 
                        <telerik:RadComboBox ID="rcbCategory" DataSource='<%# GetDdlCategoryDataSource(Eval("RhTask")) %>' DataValueField="Description" DataTextField="Stext" runat="server"></telerik:RadComboBox>     
                </ItemTemplate>                                                                 
                        </telerik:GridTemplateColumn> 
                    </Columns> 
                </MasterTableView> 
                <FilterMenu> 
                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                </FilterMenu> 
            </telerik:RadGrid> 
        </td> 
    </tr> 
</table> 

Thanks in advance
Daniel
Telerik team
 answered on 24 Jun 2009
3 answers
79 views
Hi everyone,
hope everyone is well...
I have a problem refreshing my listview.
I have the following function which i call from my telerik popup.
The popup closes and I can confirm this function gets called by the alert("");

The problem I am having is that the $find() line returns null.

 <script type="text/javascript">
        function test() {
            alert("");
            $find("testlistview").ajaxRequest("Rebind");   // returns null
        }
    </script>


<div id="testlistview">
    <asp:ListView ID="ListView1" runat="server">
          ...
    </asp:ListView>
</div>


Can anyone please help me?

Many thanks,




Rosen
Telerik team
 answered on 24 Jun 2009
1 answer
80 views
Hello Support,

I probably miss something...
A video I added with MediaManager runs the first time I inserted it, but not any later time.

After you insert a video, you would normally like to stop it once (because it starts automatically when inserted), save the change and try. No. I can not run it. It does not start itself, nor I can click the play.

I verified the video file path is correct. What else should I verify?

Thanks,
Dominique
Stanimir
Telerik team
 answered on 24 Jun 2009
2 answers
237 views
Hello Support,

We have just purchased RadEditorMOSS_5_4_1_dev, after having had a very positive feeling with RadEditorMOSS_5_4_trial.

However, with the 5_4_1_dev, we are having some problems.
The footer (the part where you have Design, HTML and Preview buttons) disappears, when the number of lines reaches to a certain point. It was not the case, with 5_4_trial. I wish I could paste the screenshot...

The edit area does get larger as I type. The only problem is the footer.
With the trial, the Design, HTML etc buttons are always available, how big the control gets.

We are using it in Web Content Management scenario.
We moved from trial to dev, so everything from ConfigFile.xml to Properties specified with the control in our Page Layout should be exactly the same.

Thank you very much in advance for your prompt attention for this matter.
Dominique
Stanimir
Telerik team
 answered on 24 Jun 2009
6 answers
199 views
Hello,

My grid is scrolling horizontally with dynamic autogenerated columns and when I use the export to pdf I get only the left part of the grid in the document.
Is there a way to say 'export and fit in page' ?

To challenge Telerik, I must say that I find the pdf export featured is not very well supported as it is a major featured reclamed by cutomers.

Here is my grid declaration

<div style="width: 100%;">  
    <Telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowPaging="True" 
        AllowSorting="True" ShowStatusBar="true" GridLines="None" ShowGroupPanel="True" > 
        <PagerStyle Mode="NextPrevAndNumeric" /> 
        <ClientSettings AllowColumnsReorder="True" AllowDragToGroup="True" ReorderColumnsOnClient="True">  
            <Resizing AllowColumnResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="True" /> 
            <Scrolling AllowScroll="True" ScrollHeight='400px' UseStaticHeaders="True" SaveScrollPosition="True" /> 
            <Selecting AllowRowSelect="True" /> 
        </ClientSettings> 
        <MasterTableView Width="100%" TableLayout='Fixed' AllowMultiColumnSorting="true">  
            <ItemStyle Wrap='true'  /> 
            <HeaderStyle Width='100px' /> 
            <AlternatingItemStyle Wrap='true' /> 
        </MasterTableView> 
        <SortingSettings SortedBackColor="Azure" /> 
    </Telerik:RadGrid> 
</div> 
 

Some parameters are fix"ed or changed in codebehind.

Thanks for help.

CS
CSurieux
Top achievements
Rank 2
 answered on 24 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?