Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
518 views
I have a radTreeView and a radGrid within a radSplitter.

I have set up radAjaxManager too.

I would like to allow my users to expand nodes without making it redraw the whole radGrid every time they expand a node in the radTreeView.

Is this possible? Am I doing something wrong?

Every time I click the + to expand a tree node it posts back to the server and redraws the radGrid. That's annoying. Can I prevent that?
Charles Forsyth
Top achievements
Rank 2
 answered on 04 Jun 2008
3 answers
119 views
I'm working on a project that was recently converted from 1.1 to 2.0.  We are now moving the latest ajax controls and trying to convert datagrids to radgrids with the least change in code possible. 

I have a radgrid that uses inplace editing using EditItemTemplate definitions.  All databinding is done in code-behind.  (For the grid and dropdownboxes inside the edit template.) 

Is there an easy way to get rid of the update/cancel links that show up in the inplace form so that my old buttons in the EditItemTemplate control the updating/cancelling of records?  Right now I'm getting double buttons in my form & the telerik buttons don't trigger the code I'm needing. 

I'm on a very short timeline and the application is riddled with grids that have EditItemTemplates.  I need to make this change as quick as possible without rewriting a ton of code.  Any suggestions are appreciated.
debbie f
Top achievements
Rank 1
 answered on 04 Jun 2008
3 answers
281 views
Is there a way (I guess in the javascript file) to configure the Tooltip not to disappear after only a few seconds. In other words, I want the tooltip to display until the box is clicked on or the mouse is moved away. If I can, will you point me to the correct js file to modify.

Thanks!
Dimo
Telerik team
 answered on 04 Jun 2008
4 answers
165 views
Hello:

I'm hoping someone can help me. I've been grooming the Schedular control to be used to view company events, such as training, and etc. for our clients. Unfortunately, I have noticed that in the month view, the name of the event is cut off, and the only way I can see the full even title is by hovering my mouse over it, which makes it come up as a tooltip. While this may be the standard for MS Outlook, it will not work on my company's site. I need to have the event names fully displayed. Is there a way to do this? I tried doing this using CSS, but could not. If such a thing is possible, can you provide an example?

Thanks.
Alex Gyoshev
Telerik team
 answered on 04 Jun 2008
10 answers
196 views
  Hey,

I used RadGrid "Prometheus" in my project with AJAX and When I debug my application I come across this error in firefox and it somewhere stuck on function Sys$CultureInfo$_getAbbrMonthIndex(value) 
of  
ScriptResource.axd file  and If i press countinue(F8) it go through
and unusual thing is that it works fine in Internet explorer.

Plz Reply me .
Thanks
HHH
Bill Murphy
Top achievements
Rank 1
 answered on 04 Jun 2008
5 answers
252 views
I currently have a Gridview with checkboxes in each row and there is a button below the grid to export the checked items as a self-extracting *.exe file.  This functionality was working fine...

I utilized the functionality in the 'First Look' example for my Gridview so whenever the paging buttons were used, the Loading image would appear etc.  When I clicked the 'Export' button was clicked the grid would show the Loading image until the server request was finished and the following error would be displayed:

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.

I have attached my code from the aspx page for further inspection.

<body> 
    <form id="form1" runat="server"> 
    <div> 
        <cmis:CaseFilter ID="cfSearch" runat="server" /> 
        <br /> 
     </div>        
 
     <div class="module" style="float:left;">     
                <pp:ObjectContainerDataSource ID="CrownBriefDataSource" runat="server" DataObjectTypeName="Ontario.Justice.CMIS.Business.Entities.CrownBrief" OnSelecting="DocumentsDataSource_Selecting" UsingServerPaging="true" /> 
                <telerik:RadAjaxPanel ID="Radajaxpanel1" runat="server" LoadingPanelID="LoadingPanel2" ClientEvents-OnRequestStart="OnRequestStart" ClientEvents-OnResponseEnd="OnResponseEnd"> 
                    <asp:Panel ID="Panel1" runat="server" Wrap="False" Width="516px"/> 
                    <br /> 
                    Select: <asp:LinkButton ID="CheckAll" runat="server" Text="All" OnClick="CheckAll_click" CssClass="SelectedItem" />, 
                    <asp:LinkButton ID="UncheckAll" runat="server" Text="None" OnClick="UncheckAll_click" CssClass="SelectedItem" /> 
 
                    <asp:GridView ID="GridViewExport" 
                            runat="server" 
                            AllowPaging="true" 
                            EnableViewState="True"                   
                            AutoGenerateColumns="false" 
                            DataSourceID="CrownBriefDataSource" 
                            EmptyDataText="There are no records that match your search criteria." 
                            DataKeyNames="DocumentNumber" 
                            PageSize="11" 
                            OnDataBound="GridViewExport_DataBound" 
                            Width="90%" 
                            OnPageIndexChanging="GridViewExport_OnPageIndexChanging"> 
                        <Columns> 
                            <asp:TemplateField HeaderText="Select"> 
                                <ItemTemplate> 
                                   <asp:CheckBox ID="chkSelect" runat="server" /> 
                                </ItemTemplate> 
                                <HeaderTemplate></HeaderTemplate> 
                            </asp:TemplateField> 
                             
                            <asp:TemplateField HeaderText="Type"> 
                                <ItemStyle HorizontalAlign="Center" /> 
                                <HeaderStyle HorizontalAlign="Center"/> 
                                <ItemTemplate> 
                                    <a class="info" href="#"><asp:image ImageAlign="Middle" runat="server" ImageUrl='<%# "~/images/" + GetStatusIcon(DataBinder.Eval(Container.DataItem, "ItemType").ToString())%>' id="imgStatus"></asp:image><span><%# GetApplication(Convert.ToInt32(Eval("Application")))%></span></a> 
                                </ItemTemplate> 
                            </asp:TemplateField>                          
                             
                             <asp:BoundField HeaderText="Last edited on" DataField="LastEditedDate" DataFormatString="{0:MM/dd/yyyy}" HtmlEncode="False" /> 
 
                            <asp:TemplateField HeaderText="Name"> 
                                <ItemStyle Width="350" /> 
                                <HeaderStyle HorizontalAlign="Left"  Width="350" /> 
                                <ItemTemplate> 
                                    <asp:LinkButton ID="SelectCase" CssClass="SelectedItem" runat="server" CommandArgument='<%# Eval("DocumentNumber") %>' OnClick="SelectFolder_Click" Text='<%# Eval("DocumentName") %>' Enabled='<%# IsDocument(DataBinder.Eval(Container.DataItem, "ItemType").ToString())%>'  />  
                                </ItemTemplate> 
                            </asp:TemplateField> 
 
                            <asp:BoundField HeaderText="Doc #" DataField="DocumentNumber"/> 
                            <asp:BoundField HeaderText="Jurisdiction" DataField="Jurisdiction_ID" /> 
                            <asp:BoundField HeaderText="Police Service"  DataField="PoliceService"/> 
                            <asp:BoundField HeaderText="Police Case ID" DataField="PoliceCaseId" /> 
                             
                       
                        </Columns> 
                          
                    </asp:GridView> 
                    <asp:Button ID="btnExport" runat="server" Text="Export" CssClass="exportCase" OnClick="btnExport_Click" /> 
                </telerik:RadAjaxPanel>    
           </div> 
           <telerik:RadAjaxLoadingPanel ID="LoadingPanel2" runat="server" Transparency="30" BackColor="#E0E0E0"> 
                    <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading6.gif") %>' style="margin-top: 40px;" /> 
            </telerik:RadAjaxLoadingPanel> 
    </form> 
</body> 

Thanks,
David
plamen
Top achievements
Rank 1
 answered on 04 Jun 2008
4 answers
539 views
Hi,

I am having trouble with a RadComboBox that is part of an edit form within a RadGrid.  I am trying to bind a list of items that comes out of a data access layer, but before I bind, I want to add a "Please select a value"-type row as the first row.  I have successfully done this with other forms in my application by first clearing the rows, adding the "please select" row, and then setting .AppendDataBoundItems = true, but I am having trouble this time.  If I remove the two lines that create the new row and set .AppendDataBoundItems = true, the list of values is NOT doubled. 

I am using a function to do this, since I have to do the same action on a number of identical comboboxes with individual labels.  I have verified that my function is only being called once per combobox.  Here is my code:

private void populateAccountControls(GridItemEventArgs e, string labelName, string comboBoxName, string itemName)  
    {  
        RadComboBox mySelect = (RadComboBox)e.Item.FindControl(comboBoxName);  
        Label myLabel = (Label)e.Item.FindControl(labelName);  
 
        if (myLabel != null && mySelect != null)  
        {  
            mySelect.Items.Clear();  
 
            if (itemName!= string.Empty)  
            {  
                myLabel.Text = itemName;  
                myLabel.Visible = true;  
                mySelect.Visible = true;  
 
                mySelect.Items.Insert(0, new RadComboBoxItem("- Please select an account -", "-1"));  
                mySelect.AppendDataBoundItems = true;  
 
                DataTable accountList = new DataTable();  
                accountList = Accounts.GetAccounts(itemName);  
                mySelect.DataTextField = "AccountName";  
                mySelect.DataValueField = "AccountID";  
                mySelect.DataSource = accountList;  
                mySelect.DataBind();  
            }  
            else 
            {  
                myLabel.Visible = false;  
                mySelect.Visible = false;  
            }  
        }  
    } 

If I comment out lines 16 and 17, the combobox behaves appropriately.
Amanda
Top achievements
Rank 1
 answered on 04 Jun 2008
1 answer
76 views
I don't want Cancel and Update Button in RadEditor .but i dont delete this button 
How i can delete this buton ?
Georgi Tunev
Telerik team
 answered on 04 Jun 2008
4 answers
214 views
On a page I have a tooltip manager and a radgrid.
In every grid row I add a tooltiptargetcontrol to an image.
Image.OnClick pops up the tooltip that loads a usercontrol with data specific to the grid row.

I would like the tooltip to reload the grid (using ajax) upon the OnClientHide event.

Is this possible?
Morten
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 04 Jun 2008
3 answers
255 views

Hi everyone. I need a datepicker object where the user can only select a month and a year.

I thought about hiding the calendar inside the datepicker, leaving only the title with fast navigation buttons. So I setup the control as follows:

<tk:RadDatePicker ...> 
  <Calendar> 
    <CalendarTableStyle CssClass="cssDisplayNone" /> 
  </Calendar> 
</tk:RadDatePicker> 

Upon first rendering this works ok, but as soon as you click any of the navigation buttons, or select a month/year combination, the calendar is drawn again.

What I want is either a dateinput control that shows a month/year selection, or the title part of the calendar working as described above. A selection box like the quick popup when you click the titles would be fine too.

What is the best solution to fix/solve this?
Thanks in advance,
oVan

Konstantin Petkov
Telerik team
 answered on 04 Jun 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?