Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
80 views
I dont know what happened all of a sudden.. Any rad control on my system is not rendering properly.. the anti-aliasing on the edge of all the rad controls are gone, even if I try from the demo site. Attached are the screenshots...

Pls reply urgently.. I have a deadline this saturday..
M S
Top achievements
Rank 1
 answered on 18 Jun 2010
5 answers
155 views
Hi,

I have a RadTreeView in a web page. I want to handle the event when '+' is clicked to expand a node.
When I try to handle it on server side it works fine.
But when I try to handle this event in JavaScript using OnClientNodeExpanding it does not work.
Please help.

Regards,
Abhishek Jain
Yana
Telerik team
 answered on 18 Jun 2010
1 answer
125 views
Hi,
I want to create a RadTreeView using PageMethods just like in the demo "http://demos.telerik.com/aspnet-ajax/treeview/examples/programming/loadondemandmodes/defaultcs.aspx" . But in my case the Childs are from different tables in the database. I have 2 levels of child. I want to add 2 different onclick attributes to the 2 child levels. ie childnodeAtLevel1.Attributes.Add("onclick", "level1Method(some argument))" And childnodeAtLevel2.Attributes.Add("onclick", "level2Method(some argument))".Also when I delete the Root node data from somewhere say a radgrid, then the RadTree also should get refreshed. Is there any ways to accomplish this?
Thanks in advance.
Ajith U Nair



Nikolay Tsenkov
Telerik team
 answered on 18 Jun 2010
1 answer
129 views
hi,
I have a regular form with textboxes and dropdowns when I fill this form then press a button it should add this info to a grid of one record that I just entered from the form. The problem is I want to add multiple records to this grid, but when i fill again then insert it to the grid it replaces the old record I inserted earlier. I use a Select Function that takes the id of the record inserted then rebind it to the RadGrid.

How can I add multiple records to a grid from a form??
This is the grid needDataSource function:
protected void grdInsertPerson_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)  
        {  
            List<Person> per = null;  
            List<Person> perResult = new List<Person>();  
            //per = Person.SelectCmd(-1, "", -1, -1, "", "", -1,"", 1);  
            try 
            {  
                //per = Person.SelectCmd(-1, "", -1, -1, "", "", -1, Session["PersonId"].ToString(), 1,-1);//count1  
                per = Person.SelectCmd(-1, "", -1, -1, """", -1, "", 1, -1);//count1  
                  
                if (per.Count > 0)  
                {  
                  for (int i = 0; i < per.Count; i++)  
                    {  
                        if (per[i].PersonId == Session["PersonId"].ToString()) //the session store the id of the person inserted in the form  
 
                        {  
                            perResult.Add(per[i]);  
                        }  
                    }  
                    grdInsertPerson.Visible = true;  
                    grdInsertPerson.DataSource = perResult;  
                      
                }  
               
            }  
            catch (Exception exp)  
            {  
                Page.Validators.Add(new CheckPoints.StaticValidator("Can't show data"));  
            }  
           
              
        } 

Tsvetoslav
Telerik team
 answered on 18 Jun 2010
1 answer
80 views
Hi,

I have one grid which show list of stores with store image in one column.
i have added new store without store image and when i am trying to update that store with image it is giving error '_evts.load' is null or not an object.
i am using image uploader to upload the image.

I am trying to show radalert after successful updating the store.One more thing image is added successfully. so error is come when it is trying to show red alert.

while if i am not select image and update then it is updating perfectly and show rad alert too.

for your reference i am attaching image which shows the error kindly have a look.i have updated new store in which image is added successfully but error message is come.


Yavor
Telerik team
 answered on 18 Jun 2010
1 answer
69 views
How to display the multi-month view in Radscheduler?
Shinu
Top achievements
Rank 2
 answered on 18 Jun 2010
5 answers
134 views
Hello,


I have tree and i need to set MultipleSelect property when user click on Checkbox.

 <Telerik:RadTreeView ID="RadTreeView2" runat="server" EnableDragAndDrop="True" EnableDragAndDropBetweenNodes="true"
                            BorderWidth="1px" Height="600px" >
                            <ContextMenus>
                            </ContextMenus>
</Telerik:RadTreeView>

 <asp:CheckBox ID="cbMerge" runat="server" Text="Click me" />

I do that using client call back but it is not working properly can you help me how to enable/disable MultipleSelect property using client script.


Thanks in Advance

Sadiq modan
Nikolay Tsenkov
Telerik team
 answered on 18 Jun 2010
5 answers
177 views

 

<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" AllowSorting="True"

 

 

GridLines="None" Skin="Outlook" AutoGenerateColumns="False" OnPageIndexChanged="RadGrid1_PageIndexChanged"

 

 

OnPageSizeChanged="RadGrid1_PageSizeChanged" VirtualItemCount="30000" OnSortCommand="RadGrid1_SortCommand"

 

 

OnItemCommand="RadGrid1_ItemCommand" PageSize="5" EnableHeaderContextMenu="True">

 

 

<MasterTableView DataKeyNames="company">

 

 

<PagerStyle AlwaysVisible="True" />

 

 

<Columns>

 

 

<telerik:GridTemplateColumn DataField="company" HeaderText="Code" UniqueName="company">

 

 

<ItemTemplate>

 

 

<asp:LinkButton runat="server" ID="lnkCompany" Text='<%#Eval("company")%>' CommandArgument='<%#Eval("company") +"," +Eval("name")%>'

 

 

OnClick="lnkCompany_Click"></asp:LinkButton>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridBoundColumn HeaderText="Companies ID" DataField="companiesid" UniqueName="companiesid" />

 

 

<telerik:GridBoundColumn HeaderText="UC" DataField="adnocsupplier" UniqueName="adnocsupplier" />

 

 

<telerik:GridBoundColumn HeaderText="Name" DataField="name" UniqueName="name" />

 

 

<telerik:GridBoundColumn HeaderText="Type (A,C,M,P,V)" DataField="type (A,C,M,P,V)"

 

 

UniqueName="type" />

 

 

<telerik:GridBoundColumn HeaderText="Status (A,C,M,P,V)" DataField="status (A,C,M,P,V)"

 

 

UniqueName="status (A,C,M,P,V)" />

 

 

<telerik:GridBoundColumn HeaderText="Rating (C,M,V)" DataField="rating (C,M,V)" UniqueName="rating (C,M,V)" />

 

 

<telerik:GridBoundColumn HeaderText="HSE Score" DataField="hsescore" UniqueName="hsescore" />

 

 

<telerik:GridBoundColumn HeaderText="QA Score" DataField="qascore" UniqueName="qascore" />

 

 

<telerik:GridBoundColumn HeaderText="OPCO" DataField="opco" UniqueName="opco" />

 

 

</Columns>

 

 

<CommandItemSettings ShowExportToCsvButton="True" ShowExportToExcelButton="True" />

 

 

</MasterTableView>

 

 

<ExportSettings HideStructureColumns="True" IgnorePaging="True" OpenInNewWindow="True" />

 

 

</telerik:RadGrid>

Hi,

I am trying to Export Radgrid to CSV.. But problem is getting exporting with html tags.. 

Please help me to ignore the html tags on gridboundcolumns and to export only the required data

Soon reply highly appreciated 

 

Daniel
Telerik team
 answered on 18 Jun 2010
1 answer
129 views
Hi

Would it be possible to programatically change which thumbnail appears on the left hand side from a list.

What I'm getting at is this, I have a list of actions some are complete and some are still to do. It would be nice if the list could start with the next to be completed action, but users could scroll left to see those that have already been done.

Andy
Shinu
Top achievements
Rank 2
 answered on 18 Jun 2010
3 answers
163 views
I'm looking to Ajaxify the RadListBox control with the RadAjaxPanel to accomplish the following:
1.  Template both lists utilizing the ItemTemplate tag.
2.  Transfer items from the first list to the second list.
3.  Reorder items in the second list.
4.  Perform code behind databinding... no in-line databinding with the DataBinder.Eval()

After studying the demo examples for drag and drop and templated items, I was able to get everything to work in a non-master/content web page.  But once the markup was placed into a content tag, it no longer continued to work once any item was transfered or re-ordered.  To eliminate "user" error, I copied the demo example for templated items into a master/content scenario and found it failed to work in exactly the same way. http://www.telerik.com/help/aspnet-ajax/listbox-templates-overview.html

I simplified the issue to the following code example.  It no longer has any ItemTemplate or code behind. If this code is placed within a form tag of a new web page without a master page, it works as excepted.  If it is placed in a content section in a web page that does utilize a master page, it does not work.  As soon as an item is transfered, no other action can be performed on either list.

    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="800px" Width="800px">
        <telerik:RadListBox ID="RadListBox1" runat="server" TransferToID="RadListBox2"
            Height="600px" Width="400px"
            AllowTransfer="true" AutoPostBackOnTransfer="true"  SelectionMode="Multiple" >
        <Items>
            <telerik:RadListBoxItem Value="1" Text="image1.png" Caption="Stock 1"/>
            <telerik:RadListBoxItem Value="2" Text="image2.png" Caption="Stock 2"/>
            <telerik:RadListBoxItem Value="3" Text="image3.png" Caption="Stock 3"/>
        </Items>
        </telerik:RadListBox>

        <telerik:RadListBox ID="RadListBox2" runat="server" Height="600px" Width="400px" >
        </telerik:RadListBox>
    </telerik:RadAjaxPanel>

Environment Info:
XP sp3
Visual Studio 2010, solution is .net 4.0
IE 8.0
Telerik build: RadControls_for_ASP.NET_AJAX_2010_1_519_dev.msi

Thanks


Yana
Telerik team
 answered on 18 Jun 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?