Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
345 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
72 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
234 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
193 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
4 answers
80 views
hi ,
      i developed one page using radcontrols asp.net ajax enabled grid and posted it in online but it is not working in online but it works perfectly in local machine
Daniel
Telerik team
 answered on 24 Jun 2009
1 answer
66 views
Hi,

I want to have a splash screen on my page.
 for that i have set Spash property of window true.
I also add code 
 function OpenSplash() {
                radsplash(true);
                //Hide after some time  
                window.setTimeout(function() {
                    radsplash(false);
                }, 1500);
            }  

 <telerik:RadWindowManager ID="MessageBoxWindowManager" runat="server"    >
        <Windows>
            <telerik:RadWindow ID="winMessageBox" runat="server"  Spalsh="true"   >
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>

But radsplash function seems undefined here.
Please help. I have already searched lots of threads for this
Svetlina Anati
Telerik team
 answered on 24 Jun 2009
2 answers
106 views
HI,

I have  one panal bar under that i have added four panel item . in each panel bar i am adding data from database.now i want to have on one next button in my 1st panel .on click of next , i need to enable 1st panel item, and so on .....
I am creating panel item dynamically,& data is coming from database,  

eg.

Panel bar
  Next Button(on click of this panel item should expand and should display its items)
PanelItem1(disabled panel item should enabled and expand)

PanelItem2(disabled panel item should enabled and expand)
     Next Button(on click of this panel item should expand and shoul display its items)

PanelItem3(disabled panel item should enabled and expand)
     Next Button(on click of this panel item should expand and shoul display its items)

Java script will be fine for me.


Thanks
 














    

Paul
Telerik team
 answered on 24 Jun 2009
1 answer
130 views
Hi,
    I'm using Q1 2009 version, i have a grid in my web page with "telerik:GridTemplateColumn" which shows the Download link.

 

<telerik:GridTemplateColumn DataField="Download" HeaderText="" UniqueName="Download">

 

 

<ItemTemplate>

 

 

<asp:LinkButton CommandName="Download" ForeColor="#2176D3" ID="lbDAR_Download" runat="server"

 

 

Text="Download"></asp:LinkButton>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

In the Item Command of that grid i'm calling a function to download the file from the server.

Response.ClearHeaders()

 

Response.Clear()

Response.ContentType =

"application/pdf"

 

Response.AddHeader(

"Content-Disposition", "attachment; filename=" + AppDomain.CurrentDomain.BaseDirectory & sourceFile)

 

Response.WriteFile(AppDomain.CurrentDomain.BaseDirectory & sourceFile)

it works fine. But if i implement the ajax for this grid with the help of RadAjaxManager, the downloading is not working.

 

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

 

 

 

<AjaxSettings>

 

 

 

<telerik:AjaxSetting AjaxControlID="RadGrid6">

 

 

 

<UpdatedControls>

 

 

 

<telerik:AjaxUpdatedControl ControlID="RadGrid6" LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

 

</UpdatedControls>

 

 

 

</telerik:AjaxSetting>

 

 

 

</AjaxSettings>

 

 

 

</telerik:RadAjaxManager>

 

 

 

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Vista" />

- please provide me the solution.

-thanks,
-Saravana.

 

Daniel
Telerik team
 answered on 24 Jun 2009
1 answer
112 views
In the classic RadEditor you could use the EnableTab property to set how the tab key would work inside the Editor but it seems to be missing in the Ajax version. Is there another way to get the tab key to set focus to the next field instead of adding whitespace?
Stanimir
Telerik team
 answered on 24 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
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
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?