Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
145 views
Hi !

I've got dropdownlists in ItemTemplates of a DataGrid. Those dropdownlists are meant to update other ones (within the same DataGridItem) The DataGrid is itself in a Repeater.

On the ItemDataBound event of the DataGrid, I populate the AjaxSettings collection of the RadAjaxManager control in the webform.

All the updates (AJAX PostBack calls) work very well but all dropdownlists on the page "flash" although they do not get updated (they're not meant to either !)....?! Some of the dropdowns flashing are not added to the AjaxSettings collection (on purpose)..... There are other controls on the webform (i.e. Labels) and they remain "static" so is the rest of the webform..... only dropdownlists disappear and re-appear after the AJAX Postback is completed.......

Is that behaviour "by design" ?! Can that be avoided ?!

Thank you !

Regards,

Benoit
Maria Ilieva
Telerik team
 answered on 14 Jun 2010
1 answer
177 views
Hello,

I have a RadGrid that has grouping enabled, and all works fine. Except, I can't stop the grid from sorting itself by the field used for grouping. I want the grid to just dispaly the data in the order the data is provided. I have all the sorting disabled, but it still sorts by default. Does anyone have any ideas??

Thanks,
J
Shinu
Top achievements
Rank 2
 answered on 14 Jun 2010
1 answer
287 views
I've gone over the example of using the attachment column with Radgrid over and over.  I still can't get it to work.  What I don't understand, is that aren't these controls supposed to save time?  This control doesn't even save the information to the database like the gridbinaryimage column does.  Those of us trying to build customized CMS controls have to spend a great deal of extra time to try to get it working with a database.

I know the whole update thing in a grid isn't so great.  Is it better just to have a details page with a file upload control instead?  How does that work if you want to upload the content to a varbinary column?

EDIT:  I removed the end-of-a-bad day stuff.  Sorry about that.
Veli
Telerik team
 answered on 14 Jun 2010
2 answers
134 views

i am creating a custom control (RCB) that extends RadComboBox.
i want to add a child control(textbox) for the RCB, so whenever an RCB is created,  a textbox will be created.
i managed to do this by overrideing OnPagePreLoad of RadComboBox, and add Page.Form.Controls.Add(textbox);

everything works fine (ie. textbox is created with every RadComboBox) untill i use RCB in a gridview edit panel (where only RadComboBox is created  and not the textbox).

how can i fix this issue?is there a better way to add a control to another control?

 

 

rashad kabbara
Top achievements
Rank 1
 answered on 14 Jun 2010
1 answer
90 views
We have a RadToolTip that opens up some news items on our site, everything works fine as far as opening and closing it but the problem happens when the tooltip gets closed and the user goes to another page and then hits the back button.  The ToolTip then fires on that page load.  Is there an easy way to stop that?
Svetlina Anati
Telerik team
 answered on 14 Jun 2010
13 answers
353 views
Hi Telerik team,
i want to use rad moss editor,

problem with content editor webpart is, it is using static urls, when i try to deploy the sharepoint site to another it's not changing the urls in the content.

so all the urls on the deployed server still pointing to the dev server,

is this problem solved by RAD editor?

can i use rad edior for this purpose.
is it only use relative urls?

thanks
Praveen.
Stanimir
Telerik team
 answered on 14 Jun 2010
4 answers
265 views
In a list with rich-text fields (radeditor for lists is enabled on the site) the rdeditor works fine except when a user creates custom tables.  If they edit them and then save they are fine.  If they come back and edit the item without touching the rich text fields the tables lose their formatting.  Any thoughts?  We are using 5.5.0.0.
Stanimir
Telerik team
 answered on 14 Jun 2010
5 answers
186 views
I have a two-level grid with a checkbox in the inner row.  I want to do a JavaScript OnClick handler, but I don't see how to identify which row got checked.

I've tried the <ClientEvents OnRowClick="grdSchedule_ClientClick" /> construct, but that doesn't fire if I click the checkbox.

(This is my first serious foray into the client-side universe.  Thanks for all the help you've given me over the last week or so.)

    Ed
Yavor
Telerik team
 answered on 14 Jun 2010
1 answer
231 views
I have to set up a RadWindow from code behind and then display it. It needs to be set up from the code-behind, because an event needs to fire to copy a file which the child page will display. After the file copy, I want the window to pop up. Nothing happens. The page just postsback with no activity.

When I try putting it in the html and not the code behind, it works fine. Only problem is like I said above is that when the user clicks on the image, it needs to copied.  The JS OnClientClick event obvioulsy fires before the OnClick server side event (which does the file copying). Therefore, it has to be done in the code behind. If somebody can help me figure out what I'm doing wrong, I would greatly appreciate it.

Here is my abbreviated HTML. Note that the RadScriptManager resides on a MasterPage:
<code>

<

 

telerik:RadWindowManager ID="RadWindowManager1" runat="server">

 

 

</telerik:RadWindowManager>

 

<%-- <Windows>

<telerik:RadWindow ID="RadWindow1" runat="server" ShowContentDuringLoad="false" Width="1000px"

Height="600px" Title="View Chart" Behaviors="Default" Skin="Outlook" Modal=true>

</telerik:RadWindow>

</Windows>--%>

<%--<script type="text/javascript">

//<![CDATA[

function openRadWin() {

radopen("../scan/viewChart.aspx", "RadWindow1");

}

//]]>

</script>--%>

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" UpdatePanelsRenderMode="Inline">

 

 

<AjaxSettings>

 

 

<telerik:AjaxSetting AjaxControlID="RadGridBulkCharts">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="RadGridBulkCharts" LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

<telerik:AjaxSetting AjaxControlID="chkBulk">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="chkBulk" LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

<telerik:AjaxSetting AjaxControlID="RadGridEDLogFiles">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="RadGridEDLogFiles" LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

<telerik:AjaxSetting AjaxControlID="chkEDLog">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="chkEDLog" LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

</AjaxSettings>

 

 

</telerik:RadAjaxManager>

 

 

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">

 

 

</telerik:RadAjaxLoadingPanel>
<code>

Notice I have the client code commented out which I said works fine just to see if it gets into the page_load event of the child page. It does from the client side (when the code is uncommented), but from the server side, the Load event is not hit.

Here is my abbreviated server side code in the event once the onclick event happens:
<code>

 

protected void Chart_Click(object sender, ImageClickEventArgs e)
        {
           
            file = new FileInfo(ChartPath + imgName);
            string cpPath = (string)settingsReader.GetValue("tmpImageFolder", typeof(String)) + ViewState["UserName"].ToString();

            if (file.Exists)
            {
                if (!Directory.Exists(cpPath))
                {
                    Directory.CreateDirectory(cpPath);
                }

                file.CopyTo(cpPath + file.Name, true);

                RadWindowManager1.Windows.Clear();
                RadWindow newwindow = new RadWindow();
                newwindow.ID = "RadWindow1";
                newwindow.ShowContentDuringLoad = false;
                newwindow.Width = Unit.Pixel(1000);
                newwindow.Height = Unit.Pixel(600);
                newwindow.Title = "View Chart Image";
                newwindow.Behaviors = WindowBehaviors.Default;
                newwindow.Skin = "Outlook";
                newwindow.Modal = true;
                newwindow.VisibleOnPageLoad = true;
                newwindow.NavigateUrl = "../scan/viewChart.aspx";
                newwindow.Visible = true;
                RadWindowManager1.Windows.Add(newwindow);

            }
        }


</code>

I checked the  RadWindowManager1.Windows.Count property and shows it to be 1.

What am I doing wrong that the page doesn't come up???

Fiko
Telerik team
 answered on 14 Jun 2010
1 answer
72 views
I am using my own telerik control for a long time, but yesterday my friend give me a his telerik controls to try, because, he say it is new controls. And than problem starts: when I install friend's controls it give me error: "Error creating control"  for all controls.
I am than delete, friend ' s controls, and try my old controls, but same problem. Can you help me please to resolve this problem.


I use: win 7 , visual studio 2010
Princy
Top achievements
Rank 2
 answered on 14 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?