Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
166 views
Hi!
I will try to explain my problem.

I want in a column of the grid that display a combobox with the state of the record, for example i display all the classroom in the university each could have the status ACTIVATE O INACTIVATE, what the user's want is that in the same grid display a combobox and change de state.

I found some examples that use de sqlDataSource or AccessDataSource, but i have a 3 layer application. The presentation layer only access to the components or webservices to obtain the data.
Yavor
Telerik team
 answered on 07 Jun 2010
6 answers
1.3K+ views
Hi all,

         I am having a requirement in which one of the column will hold a list of data for a single entry. I want to display them in the pattern as attached. I dont prefer heirarchial grid for the same since it is making things complex. Please guide me.

Regards,
Saravanan K
saravanan k
Top achievements
Rank 1
 answered on 07 Jun 2010
1 answer
79 views
I've got a linkbutton in my grid template, and it has a click event assigned.

How can I get a databound value back to my codebehinds click event?

Its using clientside binding, but no attributes that I give it in the rowdatabound event are posted back

Any idea?
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 07 Jun 2010
2 answers
120 views
Hi,

Is there any way to get radeditor to load in preview mode with design mode still enabled in the server side code?

Cheers
Damon
Damon
Top achievements
Rank 1
 answered on 07 Jun 2010
2 answers
84 views
Hi there,

We have implemented the scheduler with a Filter column to the right. The structure is set up as:

<script> 
function ToggleRightCol(oImg)  
{  
    var rightCol = document.getElementById('rightCol');  
    if (rightCol != null) {  
        if (rightCol.style.width != '20px') {  
            rightCol.style.width = '20px';  
            oImg.src = '_images/backwardGreen.gif';  
        }  
        else  {  
            rightCol.style.width = '230px';  
            oImg.src = '_images/forwardGreen.gif';  
        }  
        $find("oSched").repaint();   
    }  
}  
 
</script> 
 
<table cellspacing="0" cellpadding="0" style="table-layout:fixed;width:100%">  
    <colgroup> 
        <col valign="top" /> 
        <col valign="top" style="" /> 
    </colgroup> 
        <tr> 
            <td><telerik:RadScheduler ID="oSched" runat="server" .... ></telerik:RadScheduler></td>  
            <td id="rightCol" style="width:230px;overflow:hidden;">  
            <div><img src="_images/forwardGreen.gif" onclick="javascript: ToggleRightCol(this);" alt="Show/Hide" /> 
            </div> 
            <telerik:RadCalendar runat="server" ID="RadCalendar1" ....  ></telerik:RadCalendar> 
            <asp:Panel runat="server" ID="dvFilter">  
            </asp:Panel> 
        </td> 
    </tr> 
</table> 

The behaviour we are experiencing is that on the initial hide of the column, the scheduler correctly expands to be a bigger width. However, when the right column is re-expanded, the scheduler remains at the expanded width and does not collapse at all.

Could you recommend a way of dealing with this?

I originally had 2 DIVs side by side, with the right hand one floated, but had a different but also incorrect behaviour on the re-expand, the Scheduler would expand to 100% width of the browser screen and drop below the right column div.

A solution to either would be fine really!

Thanks
Gavin
Gavin Pollock
Top achievements
Rank 1
 answered on 06 Jun 2010
1 answer
104 views
Hi,
I have a RadGrid that I use to Export to Excel. I was surprised at how easy it was to do it. I just added the code below and it worked fine.
My question is...Does this rely on Excel being installed on the server or is this going to happen on the client side because it works on my machine but I want to know if it will work if I upload to my web hosting company and I know that most web hosting companies do not allow Microsoft Office on the web server for security reasons.

Thanks
Rob

Private

 

Sub btnExport_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnExport.Click

 

 

ConfigureExport()

radMonthlyCommissions.MasterTableView.ExportToExcel()

 

 

End Sub

 

 

 

Public Sub ConfigureExport()

radMonthlyCommissions.ExportSettings.ExportOnlyData =

True

 

 

 

radMonthlyCommissions.ExportSettings.IgnorePaging =

True

 

 

radMonthlyCommissions.ExportSettings.OpenInNewWindow =

True

 

End Sub

 

 

Kevin Wood
Top achievements
Rank 1
 answered on 06 Jun 2010
4 answers
316 views
Hallo,

I´m using a radcombobox together with an objectdatasource. The combobox is placed within the edititemtemplate of a formview. The objectdatasource has "enablecaching", the combobox "EnableItemCaching" set to true.

 

<asp:ObjectDataSource ID="ODS_Country" runat="server" EnableCaching="True" 
    
SelectMethod="GetData"

 

 

    TypeName="Telerik.DataSet1TableAdapters.REF_CountryTableAdapter">

 

 

</asp:ObjectDataSource>

 


 

<telerik:RadComboBox ID="rcb_Country" Runat="server" 
    
DataSourceID="ODS_Country"
    
DataTextField="Country" DataValueField="OID" 
    
EnableItemCaching="True" >

 

 

</telerik:RadComboBox>

 


But everytime I switch formview to editmode there is access to my database. How can I achieve, that the item data of the combobox are only read once from my db using caching mechanism of objectdatasource.

Thank´s for your help.
Robert
Robert
Top achievements
Rank 1
 answered on 05 Jun 2010
1 answer
170 views
Hi:

I have a hierarchical radgrid which I'm capturing some client events and all of them other than expand/collapse are working ok. Child data is loading ok too, through RadAjaxManager object. The only problem is that expand/collapse events are not being fired. Could someone post the right code to hook-up these events??? This is what I'm doing:

in the rad grid client settings:
<ClientSettings Scrolling-AllowScroll="false" Selecting-AllowRowSelect="true" AllowExpandCollapse="true"
                    ClientEvents-OnRowSelecting="rgCon_OnRowSelecting"
                    ClientEvents-OnRowSelected="rgCon_OnRowSelected"
                    ClientEvents-OnRowDeselected="rgCon_OnRowDeselected"
                    ClientEvents-OnHierarchyExpanded="rgCon_OnHierarchyExpanded"
                    ClientEvents-OnHierarchyCollapsed="rgCon_OnHierarchyCollapsed">
                </ClientSettings>

in the javascript file:
rgCon_OnRowSelecting: function(sender, args){
        alert(1);
    },
    
    rgCon_OnRowSelected: function(sender, args){
        alert(2);
    },
    
    rgCon_OnRowDeselected: function(sender, args){
        alert(3);
    },
    
    rgCon_OnHierarchyExpanded: function(sender, args){
        alert(4);//not firing
    },
    
    rgCon_OnHierarchyCollapsed: function(sender, args){
        alert(5);//not firing
    },


thanks in advance
Princy
Top achievements
Rank 2
 answered on 05 Jun 2010
1 answer
134 views
Hi
I have a RadComboBox using load on demand with web service.  However I found that the event OnClientItemsRequested is not fired after the combobox get its data from web service.  The online example uses EnableLoadOnDemand and DataSource control but not web service.  Will OnClientItemsRequested be fired if using web service?  If not, what should I do if I need to run some client code after the combobox get populated.

Regards
Edwin
Edwin
Top achievements
Rank 1
 answered on 05 Jun 2010
1 answer
131 views
I've got a listbox populated from my database, and want to change the RadListBoxItem.Checked property (check or uncheck) whenever a user clicks anywhere on a row.  Is there an easy way to do this?
Shinu
Top achievements
Rank 2
 answered on 05 Jun 2010
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?