Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
627 views
Hellow there,

I have a rad combobox with 4 items. I would like to hide the redhighlighted items (Customer Id's ANATR & ANTON) from Combo box in Radgrid Edit Mode if users do not have permission to view/select them. Below is my code. Thanks a lot for your help.

gc_0620
_____________

<asp:AccessDataSource ID="AccessDataSource1" runat="server"

DataFile="~/App_Data/Nwind.mdb"

DeleteCommand="DELETE FROM [Customers] WHERE (([CustomerID] = ?) OR ([CustomerID] IS NULL AND ? IS NULL))"

InsertCommand="INSERT INTO [Customers] ([CustomerID], [CompanyName]) VALUES (?, ?)"

SelectCommand="SELECT [CustomerID], [CompanyName] FROM [Customers] where left([CustomerId],1) = 'A'"

UpdateCommand="UPDATE [Customers] SET [CompanyName] = ? WHERE (([CustomerID] = ?) OR ([CustomerID] IS NULL AND ? IS NULL))">

<DeleteParameters>

<asp:Parameter Name="CustomerID" Type="String" />

</DeleteParameters>

<UpdateParameters>

<asp:Parameter Name="CompanyName" Type="String" />

<asp:Parameter Name="CustomerID" Type="String" />

</UpdateParameters>

<InsertParameters>

<asp:Parameter Name="CustomerID" Type="String" />

<asp:Parameter Name="CompanyName" Type="String" />

</InsertParameters>

</asp:AccessDataSource>
<telerik:RadGrid ID="RadGrid1" runat="server">

 

 

<telerik:RadComboBox ID="RadComboBox2" Runat="server" DataTextField="CompanyName" DataValueField="CustomerID"

 

 

 DataSourceID="AccessDataSource1">

</telerik:RadComboBox>

 

 

</telerik:RadGrid>

 

 

 

____________________________________________

 

CustomerID:                 CompanyName

 

 

ALFKI                             Alfreds Futterkiste

ANATR                           Ana Trujillo Emparedados y helados

ANTON                          Antonio Moreno Taquería

AROUT                          Around the Horn

gc_0620
Top achievements
Rank 1
 answered on 01 Sep 2009
2 answers
163 views
I have a stacked bar chart that is bound to a SQLDataSource. The dataset has 3 columns: Project, StartDate, Hours. StartDate is on the x-axis, hours is on the y-axis, and the data is grouped by project. When I added a click event for the chart to the code behind, each stacked bar piece became clickable. In the click event code, I want to be able to access the project name, date, and hours for the item that was clicked. So far I was able to figure out how to get project name using args.Series.Name and hours using args.seriesItem.yvalue. However, I can't figure out a way to get the date of the clicked item.

I'm new to the telerik controls, so it's possible I'm not binding the chart properly. When I bind the chart to the datasource, I set

 

RadChart1.DataGroupColumn = "Project"

RadChart1.PlotArea.XAxis.DataLabelsColumn = "StartDate"

Kim
Top achievements
Rank 1
 answered on 31 Aug 2009
4 answers
202 views
I've got a hierarchical grid with one DetailTable.  The RadGrid is auto-generating an ExpandCollapseColumn on the left, and I'd really like to either move it so it's the rightmost column, or prevent it from being generated so I can just declare my own.  Is there any way to do either of these?
nitesh monga
Top achievements
Rank 1
 answered on 31 Aug 2009
1 answer
92 views
Hi,

What to do for disabling the horizontal scroll bar in a radgrid?
I have used both the properties 

Scrolling

 

AllowScroll="True" UseStaticHeaders="True"

 


But still when my text is too long inside a cell, horizontal bar is visible.
What all can be the issues and how can i rectify them?

Thanks!
Pavlina
Telerik team
 answered on 31 Aug 2009
2 answers
113 views
I have a textbox that I made into a text area and when the user types in it just keeps going in one line instead of wrapping in the text box. Here is my code
<telerik:RadTextBox ID="descInput" runat="server" Skin="Web20"
                                    Height="150px" Width="150px" Wrap="true">
                                </telerik:RadTextBox>
Thanks


Web Services
Top achievements
Rank 2
 answered on 31 Aug 2009
1 answer
69 views
I developed the scheduler on Radscheduler Q1 2009 using AdvancedTemplate option. As per my clients requirement I suppose to use the LIstbox control features of Q2 2009. So I upgraded the Telerik RadControls and added Q2 2009 Telerik.Web.UI to my project. Once I added Q2 2009 new telerik.Web.UI application started giving trouble. Like first it asked me to change the EnableCustomAttributeEditing to  AdvancedForm-EnableCustomAttributeEditing. After I changed that all the alignment and everything is changed in the scheduler and it throws-up some error on Advancedform.js.

I have gone through the Radcontrol Scheduler demo, it seems in Q2 2009 RadScheduler, the way of approaching the Advanced Template scheduler is different than Q1 2009. For example Q2 2009 I am not able to find the Advancedform edit or insert ascx files. So my question is that Q1 2009 Rad Scheduler is Compatabile with Q2 2009 or not????????

Fyi, I have customised the advanced template as per my project requirement also the application is already in production. If I want to change anything on the existing code, then I have to get the approval from my client. modifyihg the production code is almost not possible right now. So please give me a simple work around for this.

thanks,
KG
Peter
Telerik team
 answered on 31 Aug 2009
5 answers
279 views
Hi All, I'm trying to do a simple upload in a RadWindow using 2008 Q2.  I get errors on the upload with zip files only.  Maybe it can't be done, but I am unsure.  The error I get in Firefox is "Connection was reset by server".

My Web.config files looks right.  Not sure what is going on.

Thanks
Genady Sergeev
Telerik team
 answered on 31 Aug 2009
1 answer
81 views
Hello,

I have set the tool tip for the Day view , as on mouse over of the appointment with subject,startdate,description,location values

are displyed , but now on the Month view in the tool tip i can show only time and subject , will it be possible?

Can we create the Tool tip differently for day view and Month view ?

REgards
Samir

Schlurk
Top achievements
Rank 2
 answered on 31 Aug 2009
3 answers
150 views
I have a page with a header menu, left column, splitter, right column. The right column is showing different pages, dependent on menu item selections, using AJAX to change the NavigateURL in the right splitter pane.

Whenever the page in the right pane contains a ComboBox and then AJAX is used to change the right pane to a page that does not use a combobox the javascript DOM is corrupted. When the page is subsequently refreshed by pressing F5, or clicking a menu item that causes a full page postback, a javascript error is thrown in the following function of the ComboBox 'unexpected call to property or method':

_removeDropDown:function(){var b=this.get_dropDownElement().parentNode;  
b.parentNode.removeChild(b);  
 

This problem occurs in IE7 and IE8 but not Firefox.

Do you know of any workaround or fix for this problem?
Simon
Telerik team
 answered on 31 Aug 2009
2 answers
154 views
Greetings,

I'm using the ExportToPdf() functionality which is a nice feature.  Only draw-back I see so far is that it doesn't provide adequate navigation.  When the content of the RadEditor is loaded into the PDF page, the URL in the browser should change to reflect the PDF view.

However, the URL remains the same as the RadEditor page.  Consequently, if the user clicks the 'back' button, they go back two screens and the contents of the PDF and RadEditor are lost into never, never land. 

In theory, this application is primarily affording the user the ability to preview the RadEditor contents as opposed to using the PDF page to perform a save.  After the user previews the PDF, they should make a decision to perform a save from the RadEditor where all the custom buttons are located (i.e. Save, Edit, Delete).  If the user saves it from the RadEditor page, the html string will be saved to the database for further processing.

At this point I can only allow the user to preview in PDF because they can't navigate back to the RadEditor.  Is there something I'm missing?  Is there a way to give the PDF page a URL name?

John
Top achievements
Rank 1
 answered on 31 Aug 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?