Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
300 views

Hello.  I have a radgrid with a nestedviewtemplate set up so that another rad grid is shown when each row of data is expanded.  I have a button within each row on the grid inside the nestedviewtemplate, and that button needs to make a div visible that is outside of both radgrids.  However, I cannot for the life of me get the div to appear.  I currently have the following for the RadAjaxManager:

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadGrid1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                <telerik:AjaxUpdatedControl ControlID="pnlAddEdit" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="RadGrid2">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadGrid2" LoadingPanelID="RadAjaxLoadingPanel2" />
                <telerik:AjaxUpdatedControl ControlID="pnlAddEdit" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>

Is this correct or do I need that second setting?  There is also a button on each row in the outer grid that makes the pnlAddEdit div visible.  The button on the outer grid does make the div appear, but the button on the inner grid does not.  What else do I need to do?
Tsvetoslav
Telerik team
 answered on 30 Jul 2010
2 answers
103 views
I have a template defined in the ASPX, and am adding items in code behind from LINQ object.
The template does not show the attributes. I've read some threads and am not really sure what is possible. Can you please tell me how to do this?


ASPX Page is like this:

 

 

 

 

<telerik:RadListBox ID="EmployeesComplianceLevel" runat="server" Width="100%" OnClientSelectedIndexChanged="EmployeesComplianceLevelChanged" style="margin-bottom: 10px">
    <ItemTemplate>
        <font color="black"><%# DataBinder.Eval(Container, "Text")%> </font>
    </ItemTemplate>
</telerik:RadListBox>

 

RadListBoxItem listitem1 = new RadListBoxItem();
listitem1.Value = "1";
listitem1.Attributes.Add("Text", "one");
EmployeesComplianceLevel.Items.Add(listitem1);
RadListBoxItem listitem2 = new RadListBoxItem();
listitem2.Value = "2";
listitem2.Attributes.Add("Text", "two");
EmployeesComplianceLevel.Items.Add(listitem2);
RadListBoxItem listitem3 = new RadListBoxItem();
listitem3.Value = "3";
listitem3.Attributes.Add("Text", "three");
EmployeesComplianceLevel.Items.Add(listitem3);
EmployeesComplianceLevel.DataBind();
foreach (RadListBoxItem item in EmployeesComplianceLevel.Items)
    item.DataBind();


So I think my listbox would have
"one"
"two"
"three"

But it is three rows that are blank.

How can I get the template working with the attributes?
Screenshot attached of three blank rows:

Yana
Telerik team
 answered on 30 Jul 2010
2 answers
500 views
Hi sir,

I am get and set combobox value in javascript.

But this javascript woking in firefox perfectly. bu not in internet exploere 8.

This javascript function is not calling in Internet Explorer.

my code is below:
-----aspx:
<script language="Javascript" type="text/javascript">
    function SiteChange() {
        var combo = $find("<%= cmbSite.ClientID %>");
        var selectedItem = combo.get_selectedItem();
        var selectedValue = selectedItem.get_value();
        var preval = document.getElementById("<%= hdnValue.ClientID %>");
        if (preval.value != selectedValue) {
            var ans = confirm('Are you sure change the site?')
            if (!ans) {
                preval.value = selectedValue;
                var item = combo.findItemByValue(selectedValue);
                if (item)
                    item.select();
            }
        }
    }
</script>
<asp:HiddenField ID="hdnValue" runat="server" Value="0" />
<telerik:RadComboBox ID="cmbSite" runat="server">
</telerik:RadComboBox>

----C# :
 cmbSite.Attributes.Add("onchange", "SiteChange();");

So please give me proper solution.

Thanks.

Kishor Dalwadi
Kishor Dalwadi
Top achievements
Rank 2
 answered on 30 Jul 2010
1 answer
183 views
What could trigger the file delete from the temp folder? So far i have this control set up.

<telerik:RadAsyncUpload
    ID="AsyncUploadMessageAttachments"
    TemporaryFileExpiration="04:00:00"
    CssClass="uploadPosition" runat="server" Width="250px">
</telerik:RadAsyncUpload>

When i watch the temp folder "~/App_Data/RadUploadTemp" After adding a file but before i cause a postback the files are deleted from the temp directory after about 5 seconds?
Yana
Telerik team
 answered on 30 Jul 2010
8 answers
150 views
Hi!
I download Telerik.Web.UI_2010_2_713_Trial but it produce error while installation: This installation package could not be opened.
OS: Windows XP SP3.
What can I do to install Telerik.Web.UI_2010_2_713_Trial?
eugeneya
Top achievements
Rank 1
 answered on 30 Jul 2010
6 answers
117 views

May 25,Yesterday after the update control
Radcombobox floating judge wrong
Update ago are correct
With offsetx can't move position

how to deal with
thank you

Yana
Telerik team
 answered on 30 Jul 2010
3 answers
259 views
Hello

I want to know how can I implement Multiple DetailKeyField  MasterKeyField b/w parent and detail table view.  I am developing 5 level grid and want to show data on detail table from parent table, hotel_booking_id and seqnum column in detail view table.

Thanks
Tsvetoslav
Telerik team
 answered on 30 Jul 2010
1 answer
107 views
Friends, I wonder if someone could help me create this look in a RadGrid. Since the part is selected, it is the part where I have multiple columns, which could range from 1-31. And they should stay inside the top row - after all, for each month, I will have their day, every day and displays the movements of that day.

Thanks for any help
Success

Obs.: Not sure this is the correct location, to post such questions. If not, please direct me to the correct location.

Tsvetina
Telerik team
 answered on 30 Jul 2010
1 answer
157 views

 

var tree = $find(this.treeviewId); 
var count = tree.get_nodes().get_count(); 
for (var i = 0; i < count; i++) { 
   tree.get_nodes().remove(tree.get_nodes().getNode(0));
}

This is not working when nodes has some children... Wouldn't be simpler if there was a clear() function ?

--> Is this the Telerik HTML Editor ??? I can't format the code there, he's adding always linebreaks
Peter Ryckaert
Top achievements
Rank 1
 answered on 30 Jul 2010
5 answers
118 views

Hello,

When going into edit mode of an appointment, a small popup is shown before editing. In this popup I get the choice to :

Edit only this occurrence, Edit the series. I would like to bypass this popup. 

Now, I've seen other posts about this with this solution :

1.OnClientAppointmentClick="editAppointment"

1.function editAppointment(sender, e) {
2.var apt = e.get_appointment();
3.sender.editAppointment(apt);
4.}

It seems though, that adding OnClientAppointmentClick , or any other 'OnClient' event are not responding. 

Any idea what it could be ?

Koen
Top achievements
Rank 1
 answered on 30 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?