Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
295 views
Hi,

I'm using radGrid and radcombo boxes and .net buttons.
After the page is loaded first time, if i click the button first time it is working properly. If i click the same button or any other button then the error "Multiple controls with the same ID 'ctl00' were found. FindControl requires that controls have unique IDs." is coming.
In the header i'm using script manager. So please help me to solve this.

Thanks.
Pavlina
Telerik team
 answered on 13 Nov 2009
1 answer
118 views
Hi ,

is it possible to show certain levels of the tree view?
I have a hierarchy with 7 levels and like to begin the display of this hierarchy dynamically on other levels than the first one.
Or do I have to build the hierarchy different in the datasource?


Thanks for your help.

Kind regards

Stefan
Schlurk
Top achievements
Rank 2
 answered on 13 Nov 2009
2 answers
245 views
I've successfully created a radgrid which uses client-side data-binding. In this radgrid I have one databoundcolumn:
<telerik:GridBoundColumn DataField="FullName" HeaderText="FullName"  
    SortExpression="FullName" UniqueName="FullName"
</telerik:GridBoundColumn> 
 

I would like to add more types of column in this radgrid, for instance a gridbuttoncolumn. However, when I try this code:
<telerik:GridButtonColumn HeaderText="FullName" DataTextField="FullName"  
            Text="FullName" DataType="System.String" UniqueName="FullName"></telerik:GridButtonColumn> 
 

the column is always empty.
Can someone tell me how to add other column types using client-side data-binding?

M van der Kolk
Top achievements
Rank 1
 answered on 13 Nov 2009
2 answers
156 views

Hello Telerik Team!!

I have a little problem with the Loading Panel, onRequestStart and Export
I hace a RadGrid with a new choice of Export. (That´s really good!!) Excelent Work.

 

<

 

CommandItemSettings AddNewRecordText="" ShowExportToExcelButton="true" ShowExportToCsvButton="true" ShowExportToWordButton="true" />

I used the example that you showed in RadControls for ASP.NET AJAX Q3 2009 Live Examples.

 

function

 

onRequestStart(sender, args) {

 

    //window.document.getElementById(

'ctl00_Contenedor_RadAjaxLoadingPanel1').style.display = 'none';

 

 

    if (args.get_eventTarget().indexOf("ExportTo") != -1)

 

        args.set_enableAjax(

false);

 

 

}



The Problems is: for Example when I click over the image of Excel  the RadAjaxLoadingPanel never dissapear.
I tried with this line window.document.getElementById('ctl00_Contenedor_RadAjaxLoadingPanel1').style.display = 'none';
but i couldn´t.

Please if you can help me.
I will really appreciate it.

Pavlina
Telerik team
 answered on 13 Nov 2009
2 answers
149 views
Scenerio: I have a web page with an ajax panel surrounding two radlistbox controls that are setup to transfer to each other. There are some other asp controls and a custom validator also within the ajax panel. the custom validator is setup to fire a server side event. The radlistbox controls have CauseValidation = false.

Problem: Even though RadListbox CausesValidation is set to false, the server side event for the custom validator is called when the Move All (double arrows) button of the radlistbox is pressed.

anyone come across this before. If i create a sample application and try to reproduce the issue with just two radlistbox controls setup the same way, i cannot reproduce so it seems like it something with my original page. any have some ideas on things to look for?

Kirk
Kirk Quinbar
Top achievements
Rank 1
 answered on 13 Nov 2009
1 answer
161 views

I am loading a slider from values in a database:

    private void LoadStageSlider(int StageID)  
    {  
        bool Found = false;  
        int Min = -1;  
        int Max = -1;  
        slideStage.Items.Clear();  
        Stage s = new Stage();  
        DataView DV = s.List(Master.SiteID, true);  
        foreach (DataRow DR in DV.Table.Rows)  
        {  
            int Value = int.Parse(DR["StageID"].ToString());  
            RadSliderItem item = new RadSliderItem(DR["StageName"].ToString(), DR["StageID"].ToString());  
            slideStage.Items.Add(item);  
            if (Value == StageID) Found = true;  
            if (Value > Max) Max = Value;  
            if (Min == -1) Min = Value;  
            else if (Value < MinMin = Value;  
        }  
        if (Found)  
        {  
            slideStage.Value = StageID;  
        }  
    } 

Here is the slider declaration:
<telerik:RadSlider runat="server" ID="slideStage" IsSelectionRangeEnabled="false"   
Width="450px" Height="40px" Enabled="true" ItemType="Item" TrackPosition="TopLeft" 
ToolTip="Move the slider to indicate the pipeline stage of this opportunity" 
Skin="Vista" ShowDecreaseHandle="true" ShowIncreaseHandle="true" /> 

The StageID values are database Identity values, so they can be just about any number.

When I load the slider, the slideStage.Value is correct; however when the page displays, the slider is not set to the correct value.
When I examine slideStage.Value on PostBack, the Value property appears to reflect the Item index, but the SelectedValue property is correct. I saw a reference that said Value on read will contain the Item index, and now I am thoroughly confused.

Please clarify for me how the Value/SelectedValue properties work and how I can set the slider properties so that it displays the correct value.

Thanks for any clarity you can shed on this puzzle.
Tsvetie
Telerik team
 answered on 13 Nov 2009
1 answer
165 views
Hi,

I am dynamically creating the 'GridNumericColumn' Columns in the Grid.By using "DataFormatString" property I am convering to currency, Percentage formats. I am able to see the "$" and "%" symbol in Grid. But in the Excel sheet (after exporting Grid to Excel), those symbols are missing. Could anybody suggest me what would be the problem?

Thanks,
Malli
Pavlina
Telerik team
 answered on 13 Nov 2009
2 answers
379 views
I've been searching around the examples and the threads in this forum to find a solution to my problem, so now i'll try to start a new thread and hopefully get a workaround/solution.

I have a RadComboBox that is bound in the itemrequsted event. The combobox has an itemtemplate with a serverside ASP button control. What i want to do is, when a user clicks the button, the item gets deleted. Here is the code for the combobox


 <telerik:RadCombobox  
                            ID="ReportCombobox"  
                            HighlightTemplatedItems="True" 
                            DataTextField="Title" 
                            EnableLoadOnDemand="True" 
                            Text="Vælg eksisterende rapport" 
                            LoadingMessage="Henter rapporter" 
                            DataValueField="ReportGUID" 
                            Width="180px" 
                            runat="server"  
                            AutoPostBack="True" SkinsPath="~/RadControls/ComboBox/Skins"
                            <HeaderTemplate> 
                                <table width="400" cellpadding="0" cellspacing="0" border="0"
                                    <tr> 
                                        <td style="width:230;" class="ReportDropDownTitleHead">Rapport titel</td> 
                                        <td style="width:140;" class="ReportDropDownDateHead">Oprettet</td> 
                                        <td style="width:80;" class="ReportDropDownUsernameHead">Oprettet af</td> 
                                        <td style="width:80;" class="ReportDropDownUsernameHead">Org ID</td> 
                                        <td style="width:80;" class="ReportDropDownUsernameHead">Slet rapport</td> 
                                    </tr> 
                                </table> 
                            </HeaderTemplate> 
                            <ItemTemplate> 
                             
                                <table width="350" cellpadding="0" cellspacing="0" border="0"
                                    <tr> 
                                        <td style="width:230;" class="ReportDropDownTitleColumn"
                                            <%# DataBinder.Eval(Container.DataItem, "Title") %> 
                                         </td> 
                                        <td style="width:140;" class="ReportDropDownDateColumn"
                                            <%# DataBinder.Eval(Container.DataItem, "Date") %> 
                                         </td> 
                                        <td style="width:80;" class="ReportDropDownUsernameColumn"
                                            <%# DataBinder.Eval(Container.DataItem, "Username") %> 
                                         </td> 
                                         <td style="width:80;" class="ReportDropDownUsernameColumn"
                                            <%# DataBinder.Eval(Container.DataItem, "MunicipalityIdentifier")%> 
                                         </td> 
                                         <td> 
                                         <div onclick="StopPropagation(this)" > 
                                         <asp:Button  runat="server" ID="btnDelete" Visible='<%# showDeleteButton(DataBinder.Eval(Container.DataItem, "CVR").ToString())%>'  OnClientClick="OnClientSelectedIndexChanging()"  Text="X" ToolTip="Slet Rapport" /> 
                                        </div> 
                                        </td> 
                                    </tr> 
                                </table> 
                                
                            </ItemTemplate> 
                        </telerik:RadCombobox> 

The  Javascripts

<script type="text/javascript"
 
    var combobox = null
    function pageLoad() 
     { 
         combobox = $find("<%= ReportCombobox.ClientID %>"); 
         alert(combobox.get_value()); 
    } 
    function StopPropagation(e) { 
        //cancel bubbling 
       alert("stoppropapagtion"); 
        e.cancelBubble = true
        if (e.stopPropagation) { 
            e.stopPropagation(); 
        } 
    } 
 
    function OnClientSelectedIndexChanging()  
    { 
        var isConfirm = true
        isConfirm = confirm("Vil du slette rapporten?"); 
        if (isConfirm) { 
            var combo = $find("<%= ReportCombobox.ClientID %>"); 
            var hiddenGUID = combo.get_value(); 
            document.getElementById("<%=hiddenbox.ClientID%>").value = hiddenGUID; // "hest"; //item.get_value(); 
            alert(hiddenGUID); 
        } 
        return false
 
    } 
     
     
        </script> 

I have two problems now:

1. When i click on the deletebutton first time, the value of the combobox is empty, second time the value is set correct and the item gets deleted. Same thing happends for the next item i try to delete, first time hiddenGUI has the value of the previous item and second time the value is correct.

2. The StopPropagation function is fired correctly as i see the alertbox, but the item is still loaded even though it should only fire the event of the button, and not the item iteself.

I've tried with ASP.NET AJAX 2008 version 1.5.27 and the latest release from november 2009, theres no change. 
I also tried to add a pageLoad javascript function to see if the combo has any value after all controls are loaded, but its also empty. 
Yana
Telerik team
 answered on 13 Nov 2009
1 answer
71 views
in my page there are 2 text boxes and then the RadEditor is coming. I set the Tab Index for the textboxes 1,2 respectively in order and for the Rad Editor set the Tab Index as 3. If I click tab in the second text box the icon is not in the rad Editor content. It just applied for the whole Rad Editor. We need to get the icon in the content. Please provide a solution
Rumen
Telerik team
 answered on 13 Nov 2009
1 answer
149 views
I have added to VisualStudio 2008 Rad Control. When I open the new 3.5 project toolbox does not appear on project .
Edward
Top achievements
Rank 1
 answered on 13 Nov 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?