Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
91 views

Hi,
Im using the self referencing grid. By default all the rows are in expanded state but i want to collapse all rows and expand only on click.
I want to use Plus/Minus image instead of default button. But the plus/minus image appears only for parent row amd for the rest normal button is shown.

Following is the aspx grid definition

    <telerik:RadPageView ID="RadPageView2" runat="server">  
        <table border="0" visible= "false" width="100%">  
 <LNWCon:LNGrid ID="grdOrganization" EnableAJAX="True" ShowHeader="true" runat="server"   
Width= "97%" GridLines="None" OnColumnCreated="grdOrganization_ColumnCreated" OnItemCreated="grdOrganization_ItemCreated" 
           OnNeedDataSource= "grdOrganization_NeedDataSource" OnItemDataBound = "grdOrganization_ItemDataBound" OnItemCommand="grdOrganization_ItemCommand" Skin="Black" AutoGenerateColumns="False" > 
           <MasterTableView HierarchyDefaultExpanded="true" HierarchyLoadMode="Client" NoDetailRecordsText="No Records To Display" EnableNoRecordsTemplate="false" 
               DataKeyNames= "FolderId,ParentFolderId" Width="100%" HorizontalAlign="Right" ExpandCollapseColumn-ButtonType="ImageButton" ExpandCollapseColumn-CollapseImageUrl="../Images/minus.png" ExpandCollapseColumn-ExpandImageUrl="../Images/plus.png"  ExpandCollapseColumn-Visible="true"> 

Shinu
Top achievements
Rank 2
 answered on 23 Mar 2010
3 answers
173 views
I've been attempting to dynamically create an RDZ, bascially the same way I created my dynamic RadDocks with no luck.  I can dynamically create RadDocks and add them to an existing RDZ that's already on the page, but when I try to add RadDocks to a dynamically created RDZ nothing happens.  Well I do get one error as such from my ScriptManager:

base {System.SystemException} = {"Page cannot be null. Please ensure that this operation is being performed in the context of an ASP.NET request."}

Any ideas what I'm missing here?  I also tried to create the RDZ in the page_init with the same result fwiw.

private RadDock CreateRadDock()
 {
RadDock dock = new RadDock();
            dock.ID = string.Format("RadDock{0}",  Session["Tid"].ToString());
            dock.Title = string.Format("Dock {0}",  Session["Tname"].ToString());
   //other attributes here



RadDockZone newRadDockZone = new RadDockZone();



newRadDockZone.ID = string.Format("ctl00_ContentPlaceHolder1_RadDockZone{0}", +(4));
                            newRadDockZone.ID = string.Format("ctl00_ContentPlaceHolder1_RadDockZone{0}", +(4));
                            newRadDockZone.UniqueName = string.Format("RadZone{0}", +(4));
                            newRadDockZone.MinHeight = Unit.Pixel(200);
                            newRadDockZone.MinWidth = Unit.Pixel(400);
                            newRadDockZone.Skin = "Default2006";

newRadDockZone.Controls.Add(dock);
}
Pero
Telerik team
 answered on 23 Mar 2010
1 answer
104 views
Hello,
As stated, I have been having several problems with running the grid in a RTL mode.
The first, more urgent problem, is that the master table always ends up on the left side of the grid, even when the page setting is RTL as well as the master.
To be more specific, I have a grid with scrolling enabled. the master view is smaller then the grid size, to avoid the horizontal scroll, but when there are too few records to show the scroll, my table shifts left.

The second problem is when using drag and drop. How can I make the animation of the dragged rows to appear on the other side of the cursor? Seeing as the page is RTL, most the row is hidden, and it is causing quite a few problems with scrolling on the page. Is there a way to cancel the animation, but keep the indicator (the line that shows where the rows will be dropped)?

Any help would be more then welcomed.
Tsvetoslav
Telerik team
 answered on 23 Mar 2010
5 answers
139 views
Hey!

The install and deployement went fine. also i did a iisreset and net start/stop sptimerv3. After 1 hour, two reinstalls, i still cant see the Rad Control`s in the feature list in the front end. Tried both with the System account and my admin account.

Any ideas?


NOTE! We are using a differen language in MOSS 2007 than english, is this enough to make it not appear?
Stanimir
Telerik team
 answered on 23 Mar 2010
5 answers
126 views

Arrgh...

This lastest upate seems to want to break all sorts of existing code, have spent many hours fixing stuff that no longer works..
Reworking screens that break over bondaries and look like crap..

The lastest is causing vs 2008 to crash on startup is a real pain, forces vs restart,  breaks VSS etc..

{"Telerik.Web.UI.VSX.AssemblyDiscovery.AssemblyLister needs to be initialized only once."}

"   at Telerik.VSX.AssemblyDiscovery.AssemblyLister.Init()\r\n   at Telerik.VSX.Helpers.UpdateChecker.VersionAvailabilityGetter_Complete(Object sender, EventArgs e)\r\n   at Telerik.VSX.LatestVersionProcessing.BaseMonitoredProcess`1.DoAsyncJobAndRaiseCompleteEvent()\r\n   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)\r\n   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Threading.ThreadHelper.ThreadStart()"

This is a real pain...
Please do NOT make breaking changes and do some basic testing..
Saying we noted it in some file, does not fix my code..

Argh...

Ray..
Dimo
Telerik team
 answered on 23 Mar 2010
2 answers
115 views
Hello team,

i've faced this issue before and i'm facing the same issue again. I've a treeview in which one of its nodes NodeA is having 1000 child nodes under it.

I've set the CheckChildNodes property to true for the treeview. So when i check or uncheck the node NodeA, i'm getting the specified script warning message (but once in 50 times i'm not getting the message and the check/uncheck works fine).

Locally i've tested with 1500 nodes and it is running okay. But i've lot of other controls in the page in the original application.

I've tried the solutions given in this link - http://www.telerik.com/help/aspnet-ajax/troubleshooting-treeview-script-causes-ie-run-slowly.html and none of them worked.

Can you provide any insights on this?

Thank you.

Regards
NLV
NLV
Top achievements
Rank 1
 answered on 23 Mar 2010
1 answer
141 views
Hi,
First: i dont know exactly what release im using (helping afried) but it is suppost to be the latest.

I get an wierd error when i use a radgrid.

The problem is that when i go from code view to design view i cant see the grid. Then when i go back to code view the grad has added "xmlns:telerik="telerik.web.ui" " in the grid:
It lookk like this:

<

 

telerik:RadGrid ID="RadGrid1" Width="90%" runat="server" AutoGenerateColumns="False"

 

 

DataSourceID="ods_Main" GridLines="None" AllowFilteringByColumn="True" AllowPaging="True"

 

 

PageSize="50" AllowSorting="True" AllowAutomaticDeletes="False" AllowAutomaticInserts="False"

 

 

AllowAutomaticUpdates="True" xmlns:telerik="telerik.web.ui">

 

 

<GroupingSettings CaseSensitive="false" /> <MasterTableView ClientDataKeyNames="CurrencyID" DataKeyNames="CurrencyID" DataSourceID="ods_Main"> <RowIndicatorColumn> <HeaderStyle Width="20px"></HeaderStyle> </RowIndicatorColumn> <ExpandCollapseColumn> <HeaderStyle Width="20px"></HeaderStyle> </ExpandCollapseColumn> <Columns> <telerik:GridTemplateColumn UniqueName="c_Edit" HeaderText="Ändra" AllowFiltering="false"> <HeaderStyle Wrap="false" HorizontalAlign="Center" /> <ItemStyle Wrap="false" HorizontalAlign="Center" /> <ItemTemplate> <asp:ImageButton CommandName="Edit" ID="ImageButton1" runat="server" ImageUrl="~/App_Themes/administration/Images/Edit_16.png" />

 

 

</ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn UniqueName="c_Name" HeaderText="Namn" SortExpression="Name"

 

 

DataField="Name"> <HeaderStyle Wrap="false" Width="100%" /> <ItemStyle Wrap="false" Width="100%" /> <ItemTemplate> <asp:Label ID="Label1" runat="server" Text='<%#Eval("Name")%>'></asp:Label>

 

 

</ItemTemplate> <EditItemTemplate> <uc1:ctr_RequiredTextBox UseValidatorCallout="false" ID="CtrRequiredTextBox1" Value_String='<%#Bind("Name")%>'

 

 

runat="server" />

 

 

</EditItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn UniqueName="c_Published" HeaderText="Visas" SortExpression="Published"

 

 

DataField="Published"> <HeaderStyle Wrap="false" HorizontalAlign="Center" /> <ItemStyle Wrap="false" HorizontalAlign="Center" /> <ItemTemplate> <asp:CheckBox ID="cb_Published_Item" runat="server" Enabled="false" Checked='<%#Eval("Published")%>' />

 

 

</ItemTemplate> <EditItemTemplate> <asp:CheckBox ID="cb_Published_Edit" runat="server" Checked='<%#Bind("Published")%>' />

 

 

</EditItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn UniqueName="c_DisplayOrder" HeaderText="Sorteringsordning"

 

 

SortExpression="DisplayOrder" DataField="DisplayOrder"> <HeaderStyle Wrap="false" HorizontalAlign="Center" /> <ItemStyle Wrap="false" HorizontalAlign="Center" /> <ItemTemplate> <asp:Label ID="Label2" runat="server" Text='<%#Eval("DisplayOrder")%>'></asp:Label>

 

 

</ItemTemplate> <EditItemTemplate> <uc2:ctr_RequiredPositiveInteger UseValidatorCallout="false" ID="ctr_RequiredPositiveInteger1"

 

 

Value_Integer='<%#Bind("DisplayOrder")%>' runat="server" />

 

 

</EditItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn UniqueName="c_Rate" HeaderText="Kurs" SortExpression="Rate"

 

 

DataField="Rate"> <HeaderStyle Wrap="false" /> <ItemStyle Wrap="false" /> <ItemTemplate> <asp:Label ID="Label3" runat="server" Text='<%#Eval("Rate")%>'></asp:Label>

 

 

</ItemTemplate> <EditItemTemplate> <uc3:ctr_RequiredPositiveDecimal ID="ctr_RequiredPositiveDecimal1" UseValidatorCallout="false"

 

 

Value_Decimal='<%#Bind("Rate")%>' runat="server" />

 

 

</EditItemTemplate> </telerik:GridTemplateColumn>

 

 

</Columns> <PagerStyle AlwaysVisible="True" /> </MasterTableView> </telerik:RadGrid>

 


As you can see it has added "xmlns:telerik="telerik.web.ui" and messed up the code.

Thanks,

Kalle

Carl-Johan
Top achievements
Rank 1
 answered on 23 Mar 2010
2 answers
256 views
Hi,

i try to Update a simple Label on Close Event of dynamic created RadDock.
Works fine so far, Label gets the correct values but doesnt updates it.

       RadDock dock = new RadDock(); 
                dock.DockMode = DockMode.Docked; 
                dock.UniqueName = Guid.NewGuid().ToString(); 
                dock.ID = string.Format("RadDock{0}", dock.UniqueName); 
                dock.Title = slide.slideName; 
                dock.Text = string.Format("Added at {0}", DateTime.Now); 
                dock.Width = Unit.Pixel(300); 
            dock.AutoPostBack = true
            dock.CommandsAutoPostBack = true
            dock.Command += new DockCommandEventHandler(dock_Command); 
 
    ... 
 
    void dock_Command(object sender, DockCommandEventArgs e) 
    { 
    Status.Text = "Removed " + ((RadDock)sender).Title + " " + ((RadDock)sender).Text; 
    } 

I tried to do this:
RadAjaxManager1.AjaxSettings.AddAjaxSetting(dock, Status, null); 

while creating the docks, but on runtime i get a NullReference Excepetion.






On a Button registered with the RadAjaxManager it works to show the value
assigned by dock_command.

 
        protected void Button1_Click(object sender, EventArgs e) 
        { 
            Status.Text = Status.Text; 
        } 











       RadDock dock = new RadDock(); 
                dock.DockMode = DockMode.Docked; 
                dock.UniqueName = Guid.NewGuid().ToString(); 
                dock.ID = string.Format("RadDock{0}", dock.UniqueName); 
                dock.Title = slide.slideName; 
                dock.Text = string.Format("Added at {0}", DateTime.Now); 
                dock.Width = Unit.Pixel(300); 
            dock.AutoPostBack = true
            dock.CommandsAutoPostBack = true
            dock.Command += new DockCommandEventHandler(dock_Command); 
 
    ... 
 
    void dock_Command(object sender, DockCommandEventArgs e) 
    { 
    Status.Text = "Removed " + ((RadDock)sender).Title + " " + ((RadDock)sender).Text; 
    } 






Pero
Telerik team
 answered on 23 Mar 2010
5 answers
250 views
All I want is a grid where the columns and headers line up and fill the entire space, width=100%. No matter what combination of widths I put on any of the columns, on the MasterTableView, or on the RadGrid as a whole, it never evens out and spreads across the whole width of the RadGrid. Here is what I currently have:

 

 

    <rad:RadGrid ID="radgUnprocessedOrders" runat="server" RadControlsDir="../RadControls/" Skin="WebBlue" AllowSorting="True" GridLines="None" GroupingEnabled="False" AutoGenerateColumns="False" SkinsPath="../RadControls/Grid/Skins" Width="92%">  
        <MasterTableView EnableTheming="True" Width="100%">  
            <ExpandCollapseColumn Resizable="False" Visible="False">  
            </ExpandCollapseColumn> 
            <RowIndicatorColumn Visible="False">  
            </RowIndicatorColumn> 
            <Columns> 
                <rad:GridBoundColumn DataField="OrderID" HeaderText="OrderID" UniqueName="OrderID" Visible="False">  
                </rad:GridBoundColumn> 
                <rad:GridBoundColumn DataField="DateOrdered" HeaderText="Date" UniqueName="DateOrdered" ItemStyle-Width="10%">  
                    <HeaderStyle Width="10%" /> 
                    <ItemStyle Width="10%" /> 
                </rad:GridBoundColumn> 
                <rad:GridBoundColumn DataField="MemberName" HeaderText="Member" UniqueName="MemberName" ItemStyle-Width="20%">  
                    <HeaderStyle Width="20%" /> 
                    <ItemStyle Width="20%" /> 
                </rad:GridBoundColumn> 
                <rad:GridBoundColumn DataField="OrderPoints" HeaderText="Order Points" UniqueName="OrderPoints" ItemStyle-Width="10%">  
                    <HeaderStyle Width="10%"/>  
                    <ItemStyle Width="10%" /> 
                </rad:GridBoundColumn> 
                <rad:GridBoundColumn DataField="OrderStatus" HeaderText="Status" UniqueName="OrderStatus" ItemStyle-Width="20%">  
                    <HeaderStyle Width="20%"/>  
                    <ItemStyle Width="20%" /> 
                </rad:GridBoundColumn> 
                <rad:GridTemplateColumn UniqueName="ViewOrderButton" HeaderText="View Order" Reorderable="False" ItemStyle-Width="10%">  
                    <HeaderStyle HorizontalAlign="Center" Width="10%" /> 
                    <ItemStyle HorizontalAlign="Center" Width="10%" /> 
                    <ItemTemplate> 
                        <asp:LinkButton ID="lbtnViewOrder" runat="server" CommandName="ViewOrder" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.OrderID") %>'><img src='../RadControls/Grid/Skins/Edit.gif' border='0' /></asp:LinkButton><br /> 
                    </ItemTemplate> 
                </rad:GridTemplateColumn>                  
            </Columns> 
        </MasterTableView> 
        <ClientSettings> 
            <Selecting AllowRowSelect="True" /> 
            <Scrolling AllowScroll="True" UseStaticHeaders="True" /> 
        </ClientSettings> 
    </rad:RadGrid>    

 

 

And here is what that looks like: http://i39.tinypic.com/21wmrs.jpg

I just want the columns headers and rows to line up and stretch out the full width of the RadGrid, but I can't seem to get that to happen no matter what I try, and believe me I have tried a LOT.  Any suggestions?? I'm new to RadControls and am still learning. Thanks!

Pavlina
Telerik team
 answered on 23 Mar 2010
1 answer
30 views
Tried searching a bit and don't see where anyone has posted a working example of using the colorpicker inside the grid. It's discussed - people mention a few issues with it - but I didn't find a working example. Maybe I didn't look deep enough? If anyone has one, it would be greatly appreciated.

Quick update - I have this almost working.... just need a hint on how to access objects inside the FormTemplate. I've seen one example that works once you're processing the Update/Insert/Delete command, but I'm trying to trap it when the Color changes in a ColorPicker and set that value in a text box.
<FormTemplate> 
.... 
                            <tr> 
                                <td> 
                                    Room Color: 
                                </td> 
                                <td> 
                                    <telerik:RadColorPicker AutoPostBack="true" runat="server" ShowIcon="true" ID="RadColorPicker1" PaletteModes="WebPalette"
                                    </telerik:RadColorPicker> 
                                     
                                    <asp:TextBox ID="ColorPickerSelectedColor" runat="server" Text='<%# Bind("room_color") %>'></asp:TextBox> 
                                </td> 
                            </tr> 
.... 
</FormTemplate> 

I have tried trapping the color change on client side and server side, as well as trying the GridEditableItem with no luck. Of course, tried binding directly to the ColorColorText prop of the colorpicker, that was funny :)

Iana Tsolova
Telerik team
 answered on 23 Mar 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?