Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
137 views
I am using the TriStateCheckBoxes so the user can easily see whether child nodes are selected under a parent node.  The issue I have is that if a user checks all child nodes then the parent automatically becomes checked.  Is there a way to keep the parent from becoming checked unless the user specifically checks that node?
Atanas Korchev
Telerik team
 answered on 15 Dec 2008
1 answer
95 views
Hi:

I'm using RadGrid for Ajax 2008Q3 release.  I have a simple grid with sort enabled.  When I have the page trace="false", everything works fine.  However, when trace="true", then I get the Sys.WebForms.PageRequestManagerParserErrorException popup. Is there known issues with using trace when a page has ajaxified control? If so, how can one still trace the page event?

Thanks

Justin
Vlad
Telerik team
 answered on 15 Dec 2008
1 answer
107 views

Hi everyone,
I have a scenario where I insert just the filename of the file I upload in the database. For this I upload a file to the server and retrieve the filename and then save the entity. But if I  set the AjaxControlID="btnSave" I get en error saying object reference.
below is the code:

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="LoadingPanel1">  
        <AjaxSettings> 
           <telerik:AjaxSetting AjaxControlID="btnSave">  
              <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="lblInfo" /> 
              </UpdatedControls> 
          </telerik:AjaxSetting> 
        </AjaxSettings> 
</telerik:RadAjaxManager> 

 

<form id="form1" runat="server">

 

<asp:label id="lblInfo" runat="server"/>
<

asp:FileUpload ID="image" runat="server" />

 

 

<asp:Button ID="btnSave" runat="server" Text="Save"

 

 

onclick="btnSave_Click" />

 

</form>

and in the code behind I have the following:

private String GetUploadImageName()  
    {  
        if (image.PostedFile.ContentLength > 0)  
        {  
            //upload the file  
            image.PostedFile.SaveAs(Server.MapPath("~\\Resources\\Images\\ExcerciseImages\\" +  
                    txtName.Text.ToString() + ".jpg"));  
 
            return txtName.Text.ToString() + ".jpg";  
        }  
        else 
        {  
            return "";  
        }  
    } 

If anyone could help me point in the correct direction that be great.
Thanks
shahab 
Vlad
Telerik team
 answered on 15 Dec 2008
1 answer
95 views
I am getting this JS error intermittently

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Tablet PC 2.0)
Timestamp: Sat, 13 Dec 2008 01:03:15 UTC

Message: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near ' <!DOCTYPE html PUBL'.
Line: 5
Char: 62099
Code: 0
URI: https://mysite/ScriptResource.axd?d=KWDi80_EFVyd0lJKPGt0u4LMBeD4BRLLi6Y3mtz4y4oXekQgFa1VpiUAAuq-nJQToR0QGYtQVbQDhcR_SPhbUAn_gjgB9xbE1Sa_wT2WICs1&t=ffffffffdc3e45b1

[Latest November 2008 toolkit, VS 2008 .Net 3.5 SP1, using the RADGrid Inside Update Panel. Page has toolkitscript manager (Microsoft Control)]
The older RadGrid control (1 year old) had not such issues, but was slower

Vlad
Telerik team
 answered on 15 Dec 2008
7 answers
142 views
I noticed that that background image used for the upload button in the imagemanager disappears after a file is selected to upload.  All that remains is the text 'Upload' without the button image behind it.  Is this a known issue?
Martin
Telerik team
 answered on 15 Dec 2008
0 answers
69 views
Hi,

I use the approach from this thread (http://www.telerik.com/community/forums/aspnet-ajax/grid/accessing-controls-inside-nestedtableview.aspx) to access the controls inside a NestedTableView and set their content on load. This works perfectly. One of the controls is a submit button. On click on this button I want to save the changes which have been made to the nested textboxes.
This is where the problem is. When I try to get the "Text" property of a textbox, I get it's old content. I guess this is because it gets overwritten duren the call of Page_PreRender().
What would be a proper way to get the contents of controls inside nested views?

Best regards,
Robert
Robert
Top achievements
Rank 1
 asked on 15 Dec 2008
1 answer
128 views
I'm trying to insert, update and delete form data to a datagrid. I've seen examples for insert, update and delete when the grid is binded to the database. But I want an example where the grid gets its data from the form and perform update, insert and delete back to the page instead of the database. Are there any examples? 

Also, some of my form controls are loaded based on combo box values i.e selected index changed
Shinu
Top achievements
Rank 2
 answered on 15 Dec 2008
0 answers
97 views
good day, guys,
I have a RadComboBox "RadComboBox_reject" with 2 options, "Rejected", and "Not Rejected", the value of "Rejected" is "true", the value of "Not Rejected" is "false",  RadGrid is bound to sqldatasource,  sqldatasource definition as following:

<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

 

 

 

 

 

 


Damien Nast
Top achievements
Rank 1
 asked on 14 Dec 2008
3 answers
290 views
I am using this script to put a Button INSIDE the Upload Div.

 
<script type="text/javascript">  
function pageLoad()  
{  
   var upload = $find("<%= RadUpload1.ClientID %>");     
   var uploadDiv = upload.get_element();  
     
   var input = document.createElement("input");  
   input.type = "submit";  
   input.className = "ruButton";  
   input.value = "Upload My XML Now";  
   input.id = input.name = upload.getID("submit");  
     
   //the UL element of the upload  
   var ul = uploadDiv.getElementsByTagName("UL");  
   //the array of all LI elements of the UL element  
   var LIs = ul[0].getElementsByTagName("LI");  
   //Last LI item - the button area  
   var lastLi = LIs[LIs.length - 1];  
   lastLi.appendChild(input);     
}  
</script>   
 

The file is being uploaded properly, however I need to be able to rename the file when it is uploaded as well as store the file path in the database.

How do I do a Button_Click event when using this JavaScript created button?
Arni
Top achievements
Rank 1
 answered on 13 Dec 2008
1 answer
167 views
Hi,

I am using RadDateTimePicker for which i am not able to link images from the calendar folder like arrorRight.gif, fastNavRight.gif, arrowLeft.gif and fastNavLeft.gif.

I have taken th following from :http://www.telerik.com/help/aspnet-ajax/calendar_appearanceskins.html
Set the ImagesPath property to specify the location the the navigation images in the titlebar. RadCalendar will look for the following images in the specified location: arrorRight.gif, fastNavRight.gif, arrowLeft.gif and fastNavLeft.gif. Alternatively to using ImagesPath, you can set the location of each image separately.

How do I set ImagesPath from css file.


Thanks in advance
Dimo
Telerik team
 answered on 13 Dec 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?