<asp:SqlDataSource ID="Sql_docket" runat="server" SelectCommand ="SELECT DOCKET.DOCKETID ................... FilterExpression ="reject='{0}'" >
<FilterParameters>
<asp:ControlParameter Name="reject" ControlID="RadComboBox_reject" PropertyName="SelectedValue" Type="Boolean" ConvertEmptyStringToNull="true" />
</FilterParameters>
</asp:SqlDataSource>
Basically, my idea is to set "RadComboBox_reject" property "AutoPostback" = true, so that everytime user choose option from RadComboBox_reject, the selectedValue will be passed to sqldatasource by SqlDataSource FilterParameters.
The above code is working fine. But, now, I am trying to add "Get All" option to "RadComboBox_reject", so that RadGrid will show all records when user select "Get All". My question is: what value should be for "Get All" option that will be passed to FilterParameters? Please note that FilterParameters type is "Boolean".
Thank you very much
using telerik
prometheus (telerik.web.ui dll)
C# 2008 and IE6
I have created a user control consisting of a rad grid and 2 rad windows.
I have a button in the user control that that loads the rad window using java script
//an alternative approach: find the needed RadWindow on the page and call its show() method
var oWnd = $find("<%=RelationshipsDialog.ClientID %>");
oWnd.SetSize(530 , 400);
oWnd.setUrl(url);
oWnd.show();
<
telerik:RadWindow ID="RelationshipsDialog" runat="server" Title="CRM Assign Relationships"
Left="150px" Width="530px" Height="400px" ReloadOnShow="true" Modal="true" onclientclose="OnClientRelationshipClose" KeepInScreenBounds="True" />

| <telerik:RadGrid ID="GridAdvert" runat="server" > |
| <MasterTableView DataKeyNames="id" > |
| <EditFormSettings EditFormType="Template" > |
| <EditColumn UniqueName="EditCommandColumn1"> |
| </EditColumn> |
| <FormTemplate> |
| <telerik:RadDatePicker runat="server" ID="PickerTimeFrom" |
| SelectedDate='<%# DataBinder.Eval( Container, "DataItem.timeFrom" ) %>' > |
| </telerik:RadDatePicker> |
| <asp:Button ID="UpdateButton" OnClientClick="Save(this, event);" Text="Save" |
| runat="server" /> |
| </FormTemplate> |
| </EditFormSettings> |
| </MasterTableView> |
| </telerik:RadGrid> |
| function GetGridServerElement(serverID, tagName) |
| { |
| if (!tagName) |
| tagName = "*"; //* means all elements |
| var grid = $get("GridAdvert"); |
| var elements = grid.getElementsByTagName(tagName); |
| for (var i = 0; i < elements.length; i++) |
| { |
| var element = elements[i]; |
| if (element.id.indexOf(serverID) >= 0) |
| return element; |
| } |
| } |
| function Save(sender, e) |
| { |
| var xx = GetGridServerElement("PickerTimeFrom",""); |
| var firstDatePicker = $find(xx.id); <<<<<<<<<<< Problem !!!!! |
| var dateToNavigate = firstDatePicker.get_selectedDate(); |
| } |
Hi all
I'm trying to make a orderlist grid that have a nested grid for orderitems. It works great and I can change orderitems and delete them.
But I have a problem when I try to insert new orderitems (products) when I use a usercontrol that has its own radgrid with products. The usercontrol works when it's not in the above radgrid. In my usercontrol i search for all products and show the result in a radgrid and then I want to select the product i want to add. But when i use this usercontrol in the orderitemradgrid, it never triggers the search button. It just add a empty row.
You maybe can’t have a grid with search result to select in an “usercontrol” when you want to insert item? I can’t find any example to show how I should do this.
| _loadLinkProperties : function() |
| { |
| ... |
| if(this._clientParameters.showText) |
| { |
| ... |
| } |
| else |
| { |
| this._linkText.parentNode.style.display = "none"; |
| this._emailLinkText.parentNode.style.display = "none"; |
| } |
| .... |
| } |