I have a Scheduler bound to an ObjectDataSource that I want to filter using a dropdown list of Categories. I have a ControlParameter as a SelectParameter on the ObjectDataSource tied to this dropdown. My filtering works fine if I select an Category that has appointments associated with it and actually returns rows. However, if I select a Category that does not have any appointments associated with it and returns no rows, the Scheduler never updates and continues to show the previous list of appointments instead of showing no appointments. Any idea on why the Scheduler won't refresh and properly show no appointments in this situation?
I am working on my own styling of this control because I want it displayed in a small form center of the screen.
Formatting the "select" button is a little limited and therefore I want to have my own button outside of the actual control itself to fire the selection of files.
The idea is that when my button is clicked it triggers the RadAsyncUpload control to fire up a dialog to select files using the File Explorer.
I can't see a method that I can call on the client side for this.
Is this even possible?
I have tried styling the button with an image but it is irratic, the div doesnt extend to show the larger image and it all looks a mess.
If I localise the value to something longer than the word "select" then it flows outside the standard button.
can anyone offer a suggest as to how to either trigger the selection of files from my own button or substantially style the RAD button to something larger and perhaps image based?
thanks
jON
Hello All,
I'm having problems accessing a value in the OnNeedDataSource event. The value is a textbox in the CommandItemTemplate. I'm using it as a custom filter while building the datasource. I've done this before but forgot how I did it. :( It seems that during the OnNeedDataSource the CommandItemTemplate has not been created yet.
Thanks,
Jerry
Hello,
<telerik:RadTreeView ID="ModuleFiles" Skin="Web20" MultipleSelect="True" EnableDragAndDrop="True" EnableDragAndDropBetweenNodes="false" runat="server" AllowNodeEditing="true"
OnNodeClick="trvModuleFiles_NodeClick" OnNodeEdit="trvModuleFiles_NodeEdit" OnClientNodeClicking="ClientNodeClicked" OnClientNodeEditStart="ClientTreeNodeEditStart" OnClientNodeEditing="ClientTreeNodeEditing">after node editing when i click on other node (of same treeview node) OnNodeEdit does not fired
i need both the events
OnNodeClick i have saved node information.
how i can solved this problem.
Hi,
I'm quite new with asp and telerik components, so I need some help to figure this out:
i'm trying to validate GridDropDownColumns that hold Combobox's and check is text area of combobox filled with value from dropdown.
Now my problem is when I try to add custom validator in cs code side, it doesn't fire serverside validation. I don't want to add templatecollums to my grid if it's not necessary.
in itemDataBound:
if (e.Item is GridEditableItem && e.Item.IsInEditMode){ GridEditableItem item = e.Item as GridEditableItem; if(item["content"].Controls[0] is RadComboBox) { GridDropDownListColumnEditor editor = item.EditManager.GetColumnEditor("content") as GridDropDownListColumnEditor; TableCell cell = (TableCell)editor.ComboBoxControl.Parent; CustomValidator validator = new CustomValidator(); validator.ServerValidate += new ServerValidateEventHandler(comboboxValidations_ServerValidate); validator.ValidationGroup = "comboGroup"; validator.ErrorMessage = "!"; validator.ValidateEmptyText = true; validator.ControlToValidate = editor.ComboBoxControl.ID; cell.Controls.Add(validator); }}Hi
I have a RadGgrid witht he following template section:
<telerik:GridTemplateColumn HeaderText="Arrival" SortExpression="LocationArrival" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" AllowFiltering="false" UniqueName="LocationArrival">
<ItemTemplate>
<asp:CheckBox ID="chkActivityArrival" runat="server" AutoPostBack="True" visible="false" OnCheckedChanged="chkActivityArrival_CheckedChanged"/>
</ItemTemplate>
</telerik:GridTemplateColumn>
However when I click the checkbox the function chkActivityArrival_CheckedChanged on the server isn't being hit. The controls visibility is controlled in the code behind.
I have the same code n other grids and they work OK, what would be causing this..
Andy
<telerik:RadGrid ID="radGrid1" runat="server" AutoGenerateColumns="False" GridLines="None" AllowMultiRowEdit="True" OnItemDataBound="radGrid1_ItemDataBound" OnNeedDataSource="radGrid1_NeedDataSource"> <MasterTableView AutoGenerateColumns="false" EditMode="InPlace" ShowFooter="false" CommandItemDisplay="Top" OnPreRender="radGrid1_PreRender"> <Columns> <telerik:GridTemplateColumn HeaderText="Product Name" UniqueName="Product_Name"> <ItemTemplate> <asp:DropDownList ID="ddl1" runat="server" AutoPostBack="true" DataTextField="product_Name" DataValueField="product_Name" OnSelectedIndexChanged="ddl1_SelectedIndexChanged"> </asp:DropDownList> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn HeaderText="Product_rate"> <ItemTemplate> <asp:Label ID="lblrate" runat="server"></asp:Label> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn HeaderText="Product Quantity"> <EditItemTemplate> <asp:TextBox ID="txtQuantity" runat="server" /> </EditItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn HeaderText="Product Amount"> <ItemTemplate> <asp:Label ID="lblAmount" runat="server" /> </ItemTemplate> </telerik:GridTemplateColumn>protected void ddl1_SelectedIndexChanged(object sender, EventArgs e) { DropDownList list = (DropDownList)sender; GridDataItem item = (GridDataItem)list.NamingContainer; //display selected value of dropdown list. //string str = list.SelectedValue; //(item.FindControl("lblRate") as Label).Text = str; SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["chalk_hillConnectionString"].ConnectionString); con.Open(); SqlCommand cmd = new SqlCommand("select product_rate from product_detail where product_name='" + list.SelectedItem.Text + "'", con); SqlDataReader reader; ; reader = cmd.ExecuteReader(); if (reader.Read()) { (item.FindControl("lblRate") as Label).Text = reader["product_rate"].ToString(); } }protected void radGrid1_ItemDataBound(object sender, GridItemEventArgs e) { if (e.Item is GridDataItem) { GridDataItem item = (GridDataItem)e.Item; DropDownList list = (DropDownList)item.FindControl("ddl1"); list.Items.Insert(0, new ListItem("select", "-1")); SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["chalk_hillConnectionString"].ConnectionString); SqlDataAdapter da = new SqlDataAdapter(); da.SelectCommand = new SqlCommand("select product_name from product_detail", con); DataSet ds = new DataSet(); da.Fill(ds); list.DataSource = ds; list.DataBind(); } }
Hai, i am currently on project that using your very helpful Telerik UI.
I am using RadGrid, and i am following the example like in this link and i got a problem.
I am using one page and multiple UserControl. I got an error RadAjaxManager is only one in one page, and the solution i found is using RadAjaxManagerProxy.
But, i am confused how to use it? especially at Ajax Event Handler.
Please kindly help me.
Thank you in advance.
<div id="ContentTemplateZone" class="qsf-ib infoBox"> <asp:Button ID="Button3" Text="Open rad window from Button" runat="server" OnClientClick="openWinContentTemplate(); return false;"> </asp:Button> <telerik:RadButton ID="RadButton1" runat="server" Text="Open rad window from RadButton" ButtonType="StandardButton" OnClientClick="openWinContentTemplate(); return false;"> <Icon PrimaryIconCssClass="rbAdd" PrimaryIconLeft="4" PrimaryIconTop="4"></Icon> </telerik:RadButton> <br /> <asp:Label ID="Label1" Text="" runat="server"></asp:Label> <script type="text/javascript"> function populateValue() { $get("<%=Label1.ClientID %>").innerHTML = $get("<%= Textbox1.ClientID %>").value; alert($get("<%= Textbox1.ClientID %>").value); //the RadWindow's content template is an INaming container and the server code block is needed $find("<%=RadWindow_ContentTemplate.ClientID%>").close(); } function openWinContentTemplate() { alert("open"); $find("<%=RadWindow_ContentTemplate.ClientID %>").show(); } </script></div><telerik:RadWindow runat="server" ID="RadWindow_ContentTemplate" RestrictionZoneID="ContentTemplateZone" Modal="true"> <ContentTemplate> <p class="contText"> Enter a value here and click the button to close the RadWindow and pass the value to the main page. </p> <div class="contButton"> <asp:TextBox ID="Textbox1" runat="server"></asp:TextBox> </div> <p class="contText"> Via a simple JavaScript function: </p> <div class="contButton"> <asp:Button ID="Button1" Text="send value and close" runat="server" OnClientClick="populateValue(); return false;"> </asp:Button> </div> <p class="contText"> Via a simple method in the code-behind: </p> <div class="contButton"> <asp:Button ID="Button2" Text="send value through code-behind" runat="server" OnClick="Button2_Click"> </asp:Button> </div> </ContentTemplate> </telerik:RadWindow>