Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
198 views
Hello,

We have been using Rad popup and would like to know what are the ways to access the controls in popup such as textbox, lable, dropdowns etc., before the popup is closed.

Example scenario:

Clicking edit button opens a popup window, where the user enters some data and upon clicking Save button, each control is to be validated server side-using cs or client side using/javascript before the popup is closed.

Appropriate message is to be displayed in the popup itself in case of any validation violation

Thank you

Regards
Raj
Tsvetina
Telerik team
 answered on 16 Nov 2010
1 answer
92 views

So I’m using the directoryinfo class to obtain the filenames from a network share, and then display them into my radcombobox. Everything works fine, but what I’d like to do is create a checkbox next to all of the values in the combobox so the user can select multiple files.


When I do it without the itemtemplate, all the filenames display fine, but when I try to use them to add the checkbox, the checkboxes show up but the filenames don’t. Here’s what I have:

<telerik:RadComboBox ID="cboFiles" runat="server" AutoPostBack="true" Width="350px" OnItemDataBound="cboFilesDBound">
     <ItemTemplate>
         <asp:CheckBox ID="chkFile" runat="server" /> 
     </ItemTemplate>
 </telerik:RadComboBox>
What do I need to put next to the checkbox to get the filenames to display? Again, when I do this without the template the filenames show fine. I tried using databinder.eval with some custom attributes like the demo, but it didn't work.

Here's the codebehind:
protected void setDirectory(String path)
{
    RadComboBox cb = (RadComboBox)FindControl("cboFiles");
     
    DirectoryInfo di = new DirectoryInfo(path);
    FileInfo[] files = di.GetFiles();
    foreach (FileInfo f in files)
    {
        RadComboBoxItem item = new RadComboBoxItem(f.Name, f.Name);
        item.Attributes["displayName"] = f.Name;
        cboFiles.Items.Add(item);
    }
 
}


Simon
Telerik team
 answered on 16 Nov 2010
9 answers
169 views
Hello,

I am having an issue defining the forecolor of a dynamic node thorugh a web service.

By setting the forecolor before rendering the page, it works fine through code.

When fetching more nodes through the web service, there is no forecolor property to set.

We use the skin manager.  And I don't want to change the default skin css files since the color change can be user specific.  Also, I only want to change the forecolor for this treeview not all of them on the page.

Any help would be appreciated.

Thanks,
Todd.
Cristopher
Top achievements
Rank 1
 answered on 16 Nov 2010
5 answers
147 views
I have a grid with an external form (in a user control). While in the edit form, if I press the Enter key, the drop list for the filter menu is displayed within the Edit form at the location of the mouse pointer within the form. I think that the Enter key is triggering the submit funtionality of the first filter column in the grid (the first filter column in the grid has the filter button highlighted). How can I disable this behavior when the editting?

My hack/workaround for this was to turn off filters and headers (for cosmetic reasons) once I capture the Edit command item like this:

RadGrid1.AllowFilteringByColumn = isVisible
RadGrid1.ShowHeader = isVisible

and then turn them back on once the editing form was closed, but this seems like, well, a hack.

Does anyone know of a more elegant way to disable/prevent this from occurring?

Thanks,

Jon
Tsvetina
Telerik team
 answered on 16 Nov 2010
1 answer
79 views
Hi,

        I am using radgrid binded to a list of business objects retreived from tier 2. I have written the code to get the list of objects in the grid_NeedDataSource method. But since this method is getting hit for any single operation like filtering or soting or paging, the response time is very high along with the network delays. Is there any way to get the list only once and do rest all logic at the tier 1 itself. Please help.

Regards,
Saravanan K
Pavlina
Telerik team
 answered on 16 Nov 2010
3 answers
157 views
Hello Telerik Team,

I am having RADgrid in on of the module of my application. In there we have linkbutton by which i have to download document.

So before i implemented client binding it was working on server side by Item command event. but as i have implemented client side binding i m not getting command argument which are given on client side by javascript.

so below is the code running on server side,
 
MemoryStream stream = TheWay.GetDocument("*", Number, "*", "*") as MemoryStream;<br>
 Response.ContentType = contentType ?? "text/plain";<br>
                                Response.AddHeader("Content-Disposition", "attachment;filename=" + attachment.FileName);<br>
                                byte[] buffer = stream.ToArray();<br>
                                stream.Read(buffer, 0, Convert.ToInt32(stream.Length));<br>
                                Response.ClearContent();<br>
                                Response.BinaryWrite(buffer);                                <br>
                                Response.End();   


Now, Can we do this thing in javascript or by web service? I m not sure abt this one.
Tsvetoslav
Telerik team
 answered on 16 Nov 2010
1 answer
69 views
Hi ,

I asked question in forum,here a link 

Somebody knows the answer to this question.?
 

Pavlina
Telerik team
 answered on 16 Nov 2010
4 answers
261 views
Hi Everyone,

I dont know whether this have asked before or not?

I have a radeditor with basic controls enabled[B,I,U,fontColor...], before which i have a radcombo box.
Now i set TabIndex to radcombobox as 1 and to radeditor as 2
is it possible to get the focus on radeditor text area instaead of complete radeditor on click of tab in radcombobox or else i have to use javascript?


Thanks in advance for helping
UmaKiran
Top achievements
Rank 1
 answered on 16 Nov 2010
7 answers
112 views
Hi,
Lets consider the following example:
I have a line chart with 2 chart series, which are serie A and serie B. The line chart has 2 Y axis. The primary Y axis is for chart serie A, and the secondary Y axis is for serie B. These two chart series A and B use the same X axis.
In the database, serie A has continuous data from 10/01/2010 to 10/30/2010. On the line chart, serie A will have 30 data points in total, from 10/01 to 10/30.
Otherwise, serie B does not have continuous data, It does not have data from 10/03/2010 to 10/06/2010. As a result of this, on the line chart, serie B will not have data points of 10/03, 10/04, 10/05 and 10/06. The data point next to 10/02 will be 10/07, for serie B. This also means serie B will have 2 data points less than serie A.

Questions: is there any way I can do so that series A and B have the same number of data points on the chart. The value of these missing data points will not be displayed, and will not be assigned as 0. What I want is the line chart still connects the two data-available data points. 

Thanks,
Yavor
Telerik team
 answered on 16 Nov 2010
1 answer
128 views
hi

I have a checkbox implemented in the radgrid. I have also created 2 objects for insert and delete and both of these objects takes in a parameter productid for insertion and delete.

I want to insert when a product is checked and delete when a product is unchecked. i am stuck here. Thanks

Protected

 

Sub CheckBox1_CheckedChanged(ByVal sender As Object, ByVal e As EventArgs)

 

 

Dim item As GridDataItem = DirectCast(TryCast(sender, CheckBox).NamingContainer, GridDataItem)

 

item(

"ProductID").Text

 

 

End Sub

 

Shinu
Top achievements
Rank 2
 answered on 16 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?