Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
178 views
Hello,

We have a RadDock-based application.  To provide some key functionality, we use a RadAjaxManager on the page, and add AjaxSettings dynamically for (dynamically-loaded) docks like this:

cRadAjaxManagerControl.AjaxSettings.AddAjaxSetting(dock, dock.ContentContainer, cRadAjaxLoadingPanelControl)

This allows the application to respond to custom DockCommands by updating the dock content in a partial postback.  The dock content is usually an .ascx control.

The Problem: we have an .ascx control that contains a RadGrid.  One of the columns is Tooltipified using RadTooltipManager; it loads another .ascx with row detail when an icon image is clicked. 

This works fine in a non-dock environment, but when we add the .ascx control that contains a RadGrid to the RadDock structure, we have problems with the Tooltip.  As described in other forum articles, the Tooltip appears briefly and then disappears.  It appears that the image click is triggering both the Tooltip *and* the RadAjax partial postback from the dock ContentContainer.

I can try to post a code sample, but the application is complex and spans several assemblies.  I can try to mock something up, if necessary. 
Svetlina Anati
Telerik team
 answered on 11 Apr 2011
2 answers
69 views
I'm using Q1 of 2009 version of Telerik tools. Specifcally, I have a seriously of nested RadGrids which have some dropdown boxes populated from an SQLDataSource.

Everything works fine until I try to resize the width of the dropdown box using the columneditorid tag.
Once I attach the columneditorid, the drop down list in edit/insert mode, no longer populates on load, I have to hit the grid refresh button to bind the data items.

Is there any way around this, or another way to resize the dropdown box in edit mode? Thanks
AJ
Top achievements
Rank 1
 answered on 11 Apr 2011
0 answers
180 views
Hello.

I use SqlDataSource as RadGrid data source (RadGridTable.DataSourceID = "SqlDS").
I configure SqlDataSource at Page_Load event (SqlDS.SelectCommand = "SELECT * ...").
If SQL Server returns an error then application crashes with unhandled exception.
How can I catch SqlException in that scenario?

Vadim.
vadim
Top achievements
Rank 1
 asked on 11 Apr 2011
2 answers
682 views
Hi all,

How can i  make my page refresh after i insert / edit/ delete a row in my radgrid1?
thank you.

regards,
Nasri
Arteta Sam
Top achievements
Rank 1
 answered on 11 Apr 2011
0 answers
56 views
Hi,

I have a RadMultipage with two page views in it.

As soon as I set the RenderSelectedPageOnly property true on my multipage I get the following error:

Microsoft JScript runtime error: Unable to get value of the property '_events': object is null or undefined.

Any idea what is causing this error?

Thanks
Johan
Top achievements
Rank 1
 asked on 11 Apr 2011
1 answer
140 views
Hello,

I have both RadEditor features enable on a site. I confirmed that this work for the OTB editform.aspx and newform.aspx pages.

I have a custom web control developed in C# using visual studio. There is a .CS file (compiled DLL is installed in the GAC), .ASCX web control file in the CONTROLTEMPLATE folder, and then the .ASPX page in a regular folder under the root.

The web control (.ASCX) file has the following code for a description field:

 

<tr>
        <td style="width:44%" class="ms-formlabel" valign="top">
            Description
        </td>
        <td style="width:53%" class="ms-formbody">
            <asp:HiddenField ID="hdnDescription" runat="server" />
            <span>
                <span dir="ltr">
                    <textarea name="txtDescription" rows="6" cols="20" id="idDescription" title="Description" class="ms-long">
                      <%= Server.HtmlEncode(hdnDescription.Value)%>  
                    </textarea>
                    <script>if (browseris.ie5up && browseris.win32 && !IsAccessibilityFeatureEnabled()){RTE_ConvertTextAreaToRichEdit("idDescription", true, true, "", "1033", null, null, null, null, null,"FullHtml", "\u002f",null,null,null,null);}else{document.write(" <br><SPAN class=ms-formdescription><a href='javascript:HelpWindowKey(\"nsfullrichtext\")'>Click for help about adding HTML formatting.</a></SPAN> <br>");};</script>                    
                </span>                                         
  
            </span>    
        </td>
        <td style="width:20%"> </td>
    </tr>

The RadEditor will not load up. The page is displayed using the OTB HTML editor. Is there anyway to fix this issue?
Stanimir
Telerik team
 answered on 11 Apr 2011
1 answer
186 views
Hi,

I am using the RadGrid control with EditMode="InPlace". I have a dropdown and following the example as below:

http://www.telerik.com/help/aspnet/grid/grdoperationswithdropdownlistinedititemtemplate.html

Using the GridDropDownColumn did not work well with my custom datasource. Thats why I am using the above link as a sample

<

 

Columns>

 

 

<telerik:GridEditCommandColumn ButtonType="ImageButton" HeaderStyle-CssClass="edit" ItemStyle-CssClass="edit" />

 

 

<telerik:GridBoundColumn DataField="Name"  ReadOnly="True"

 

 

 

HeaderText="Header1" />

 

 

 

 

 

<telerik:GridTemplateColumn DataField="Description" HeaderText="Header2" >

 

 

 

<ItemTemplate>

 

 

<asp:Label id="Label1" runat="server">

 

<%

# DataBinder.Eval(Container.DataItem, "Description")%>

 

 

 

</asp:Label>

 

 

</ItemTemplate>

 

 

 

<EditItemTemplate>

 

 

<asp:DropDownList id="drpDown" runat="server" />

 

 

</EditItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

</Columns>

 


I am populating the dropdowon on edit mode as below:

 

if (e.Item is GridEditableItem && e.Item.IsInEditMode)

 

 

{

 

 

GridEditableItem item = e.Item as GridEditableItem;

 

 

 

// access/modify the edit item template settings here

 

 

DropDownList dropDownList = item.FindControl("drpDown") as DropDownList;

 

 

dropDownList.DataSource = reactions;

 

dropDownList.DataTextField =

"description";

 

 

dropDownList.DataValueField =

"id";

 

 

 

PatientAllergy paRowData = (e.Item.DataItem as PatientAllergy);

 

 

 

if (paRowData != null)

 

 

{

 

 

if ((paRowData.Description!= null))

 

 

dropDownList.SelectedValue = paRowData.Id;

 

}

 

dropDownList.DataBind();

 

 

}


fine. I have two outstanding questions:
I want to achive the the batch update with inline editing
1.  How do I collapse the editable row when I click outside of the row.
2. How do I keep track of edited rows. Does Telerik has a implematioan for this. the below example does it only with client side and ondoubleclick editing. But I want to achieve with EditMode="InPlace". I want to do inline editing when the Edit button is clicked for the particular row. Please point me the direction.
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/clienteditbatchupdates/defaultcs.aspx

.

Daniel
Telerik team
 answered on 11 Apr 2011
5 answers
106 views
I can't get the "OK" button on the rad alert hover to change.  I checked the CSS and skins with no luck.
Marin Bratanov
Telerik team
 answered on 11 Apr 2011
3 answers
164 views
Hi everyone,

I'm now to ASP.net and programming work i use the RADGridView in my website.
the question is how I can change the color of the cell based on a specific conditions that my column is a datetime. I want if the due date is pass the color should be RED.


Thanks for your help in advance
Jayesh Goyani
Top achievements
Rank 2
 answered on 11 Apr 2011
1 answer
112 views
I am creating a tabstrip with a pageview that has a radgrid in it.  Based on data that comes from an sql database there may be several tabs that are created dynamically.  I would like to have the tabs strip setup as a vertical left tabstrip.  The tabstrip always display on the top of the pageview.  Here is the creation code:

            RadTabStrip rts = new RadTabStrip();
            rts.ID = "RadTabStrip1";
            rts.MultiPageID = "yearsPages";
            rts.Orientation = TabStripOrientation.VerticalLeft;


            RadMultiPage rmp = new RadMultiPage();
            rmp.ID = "yearsPages";


            this.PlaceHolder1.Controls.Add(rts);
            this.PlaceHolder1.Controls.Add(rmp);


            DataTable dt = DAL.Routines.getDataTableFromSQL("SELECT Distinct Year FROM Scores ORDER BY Year");
            foreach (DataRow dr in dt.Rows)
            {
                RadTab rootTab = new RadTab();
                rts.Tabs.Add(rootTab);
                rootTab.Text = "Year: " + dr["Year"].ToString();
                RadGrid grd;
                RadPageView pv = new RadPageView();
                grd = buildGrid(Convert.ToInt32(dr["Year"]));
                pv.Controls.Add(grd);
                rmp.PageViews.Add(pv);
            }
            rts.SelectedIndex = 0;
            rmp.SelectedIndex = 0;

Kate
Telerik team
 answered on 11 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?