Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
163 views
Hello,

I have a Grid that uses a template column with an AsyncUpload control in edit Item Template.  On update of row I need to get the original value of the cell (fileName) before update to delete file then complete update event.  What would be the best approach?

Thank you,
Bryan
Shinu
Top achievements
Rank 2
 answered on 21 Jan 2013
3 answers
179 views
how to determine the id parent of adding in TreeList?
Princy
Top achievements
Rank 2
 answered on 21 Jan 2013
3 answers
175 views
how to campare datetime in radgrid itemdatabound ?
Yadi
Top achievements
Rank 1
 answered on 21 Jan 2013
6 answers
189 views
I have code that shows a Modified label when there have been changes to the editor and it works great, except when the editor is in full-screen mode and then the label cannot be seen.

I'd like to add the update panel (with the modified label) to the status bar - the area (div class="reModule" span) that contains the text "Words: 0   Characters: 0".

I've tried moving the update panel with the following code, but it doesn't work even though it finds the controls.  In IE, the update panel no longer is visible and in Chrome, it apparently has no effect.

var reModuleDivs = document.getElementsByClassName("reModule");
var reModuleDiv = reModuleDivs[0];
var notesEditorUpdatePanel = document.getElementById("<%= notesEditorUpdatePanel.ClientID %>");
reModuleDiv.appendChild(notesEditorUpdatePanel);

Is there any simpler method to go about adding an update panel / label to the bar that contains the status text?
Chuck
Top achievements
Rank 1
 answered on 20 Jan 2013
10 answers
246 views
I keep getting http://demos.telerik.com/ErrorPageResources/error.aspx?aspxerrorpath=/aspnet-ajax/default.aspx
whenever I click on any link within Telerik.com (or from anywhere) referring to ASP... live demos.

Am I missing something?

eg from http://www.telerik.com/support/demos/developer-tools-demos.aspx click on Launch ASP.NET AJAX Demos and I get error page.
Tom
Top achievements
Rank 1
 answered on 20 Jan 2013
1 answer
213 views
Aspx page(Test.aspx)


 <telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnablePageMethods="true">
    </telerik:RadScriptManager>

<telerik:RadAutoCompleteBox ID="RadAutoCompleteBox1" runat="server" Width="250" DropDownHeight="150"
        DropDownWidth="250">
                <WebServiceSettings Method="GetCompanyNames" Path="Test.aspx" />
    </telerik:RadAutoCompleteBox>



Test.cs

 [System.Web.Services.WebMethod()]
        [System.Web.Script.Services.ScriptMethod()]
        public static AutoCompleteBoxData GetCompanyNames(object context)
        {


 string searchString = ((Dictionary<string, object>)context)["Text"].ToString();
            //DataTable data = GetChildNodes(searchString);
            DataTable data = new DataTable();

SqlConnection conn = new SqlConnection(connectionstring);
            string sql = "SELECT ID,NAME  FROM T_Patient WHERE NAME LIKE '" + searchString + "%'";
            SqlDataAdapter da = new SqlDataAdapter(sql, conn);
            da.Fill(data);

            List<AutoCompleteBoxItemData> result = new List<AutoCompleteBoxItemData>();

            foreach (DataRow row in data.Rows)
            {
                AutoCompleteBoxItemData childNode = new AutoCompleteBoxItemData();
                childNode.Text = row["NAME"].ToString();
                childNode.Value = row["ID"].ToString();
                result.Add(childNode);
            }

            AutoCompleteBoxData res = new AutoCompleteBoxData();
            res.Items = result.ToArray();

            return res;
}


Some Error is occured when public static AutoCompleteBoxData GetCompanyNames(object context) replace to public AutoCompleteBoxData GetCompanyNames(object context) [remove static keywords]

i am not use public web method or any other idea use only public method /public static method.

THE SERVER METHOD  'GetCompanyNames
'  FAILED.

please give me solution.

thank you.

Jayesh Goyani
Top achievements
Rank 2
 answered on 20 Jan 2013
10 answers
442 views
Hello -

I'm using the the RadAsyncUpload and i've wired up a client side handler to the OnClientFileSelected event. My goal is to alert the user that their file is not a valid extension and then  reset the control by removing the file that they attempted to upload. According to your documentation here I should be able to make use of the remove_fileSelected method to remove the file that the user attempted to upload and thus hopefully reset the control so the user can do a new upload.

The problem I have is I can't find any documentation on your site for what the signature is for remove_fileSelected or how it should be used - what parameter needs to be passed to it. Here is my handler code, please help, and if possible please expound your documentation so this is more clear.

Thanks.

this.checkFileExtension = function (radUpload, args) {
    if (!radUpload.isExtensionValid(args.get_fileName())) {
        alert('Please upload images with .jpg, .gif, .png, .bmp, or .tif extensions.');
        radUpload.remove_fileSelected();
    }
}



Lobna
Top achievements
Rank 1
 answered on 19 Jan 2013
1 answer
130 views
I have a RadGrid that pulls data based on FROM and TO dates. The dates are NOT in a column but set as Parameters for the SQL stored procedure that selects the data. How can I use RadDatePicker to update the parameters for the Grid?

Thanks!
Dave
Top achievements
Rank 1
 answered on 18 Jan 2013
2 answers
83 views
In the latest version of the Telerik controls, when the toggle type is set to "radio" and the button type is set to "linkbutton", the button no longer changes its background based on the selected/clicked button.  This appears to still work for button type "standard".  You can see this issue using your online demo using IE 9.  Is there a hotfix for this issue or a workaround that restores the old behaviour for type "linkbutton"?
Tony
Top achievements
Rank 1
 answered on 18 Jan 2013
1 answer
131 views
I'm attempting to use two RadDatePickers on a page with RequiredFieldValidators and some javascript (the javascript hides and shows a couple of panels on the page, neither of which contains the DatePickers.) My problems are twofold:

1. When focusing on the DateInput field, the calendar does not pop up even though I have it set to. 
2. If I type in a date in either field and submit the page, the value of both is null, which of course trips my validators.

Are these issues related to the shared calendar bug? I'm using verion 2009.2.701.35. If not, could you provide any insight as to how to fix the problem? I can't for the life of me figure anything out. The problem is present in both IE and Chrome, and the other javascript on the page functions so it isn't  a javascript issue. I am importing JQuery at the top of the page but I wouldn't think that would mess anything up.

My code, such as it is, is below. As you can see there's nothing special.

<telerik:RadDatePicker ID="rfsDate" runat="server">
                    </telerik:RadDatePicker>
                    <asp:RequiredFieldValidator ID="reqRfsDate" ControlToValidate="rfsDate" runat="server" Display="Static"
                        ErrorMessage="Please enter a value for the 'RFS Date' field" Visible="true"
                        text=" *" ValidationGroup="formInput" Font-Size="Medium" />

protected void Page_Load(object sender, EventArgs e) {
        rfsDate.DateInput.DateFormat = "MM/dd/yyyy";
        rfsDate.ShowPopupOnFocus = true;
}
Kyle
Top achievements
Rank 1
 answered on 18 Jan 2013
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?