Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
72 views
Hi All,

I have Added Insert Snippet inside the ContextMenu.
But I always keep getting Error Object required....in javascript.


OnClicking on it i get this error.

Rumen
Telerik team
 answered on 18 Feb 2009
6 answers
370 views
Hello,

and what if I want to programmatic add a new column to an existing Detail Table?

something like that.

<MasterTableView> 
   <detailtables> 
        <Gridtableview> 
 
            <columns> 
              <gridboundcolumn></gridboundcolumn
              <gridboundcolumn></gridboundcolumn
              <gridboundcolumn></gridboundcolumn
 
                How to insert more columns here, using the code behind? 
 
            <columns> 
        <gridtableview> 
 
   </detailtables> 
 
<columns>......</columns> 
<MastertableView> 

I used this successfully to add to the master table, but I cant add to the detail table.

                GridBoundColumn boundColumn; 
                boundColumn = new GridBoundColumn(); 
                RadGrid1.MasterTableView.Columns.Add(boundColumn); 
                boundColumn.DataField = "valor"
                boundColumn.HeaderText = "Valor"
                boundColumn.UniqueName = "valor"
                boundColumn.DataFormatString = "{0:R$###,###.##}"
How can I do the same with DETAILTABLES ?????

Thanxs
Bruno
Top achievements
Rank 1
 answered on 18 Feb 2009
2 answers
142 views

Hello,

I have one problem regarding changing the Index of the Dropdownlist.

I have one Asp:Dropdownlist. And on the change of the Index of the dropdownlist, I am using Rad - Loading Panel. And according the field selected from the dropdownlist, my other controls like Textbox, Radiobutton & Date Pickers are being visible and Invisible.

But the prolem is the loading panel is seen along with the control which is already seen right now.

My requirement is when I change the value in the dropdownlist, the loading panel only should be visible and after the loading panel disappers, the controls should appear. How can I do this.

Dev D
Top achievements
Rank 2
 answered on 18 Feb 2009
6 answers
449 views
Hi,

Just upgraded to the Premium Suite for some Xmas development work.

I have created a server-side control that renders a TreeView whose nodes are set to be populated on Callback.
On expanding the first node, I have the following error message popping up:

The target 'ctl00$ctl01$mainContentArea$treeNavigation$kbTreeView' for the callback could not be found or did not implement ICallbackEventHandler.

My server-side control is below:

 
    [DefaultProperty("Text")] 
    [ToolboxData("<{0}:KnowledgeBaseTree runat=server></{0}:KnowledgeBaseTree>")] 
    public class KnowledgeBaseTree : WebControl, ICallbackEventHandler 
    { 
 
 
// ... snip ... 
 
        protected override void CreateChildControls() 
        { 
// ... snip  ... 
 
Controls.Add(BuildContentTreeView(baseUrl,session)); 
 
         
        } 
 
        private RadTreeView BuildContentTreeView(string baseUrl, ISession session) 
        { 
 
// ... snip ... 
            RadTreeView radTreeView = new RadTreeView(); 
            radTreeView.NodeExpand += new RadTreeViewEventHandler(radTreeView_NodeExpand); 
            radTreeView.ID = "kbTreeView"
 
            IPost[] posts = _cachedBinder.GetRootPosts(null, TimeSpan.Zero); 
 
                foreach (IPost post in posts) 
                { 
 
// ... snip ... 
                        RadTreeNode radTreeNode = new RadTreeNode(post.Title, post.ID.ToString(), postUrl + ".aspx"); 
                                }                        
            return radTreeView; 
        } 
 
        void radTreeView_NodeExpand(object sender, RadTreeNodeEventArgs e) 
        { 
            Guid postId = new Guid(e.Node.Value); 
 
// ... snip ... 
                    // get child nodes 
                    IPost[] childPosts = selectedPost.GetChildPosts(null, TimeSpan.Zero); 
                    foreach (IPost childPost in childPosts) 
                    { 
                        string childPostUrl = Path.Combine(basePostUrl, childPost.UrlKey); 
                        RadTreeNode childTreeNode = new RadTreeNode(childPost.Title, childPost.ID.ToString(), childPostUrl + ".aspx"); 
                        childTreeNode.ExpandMode = TreeNodeExpandMode.ServerSideCallBack; 
                        childTreeNode.Nodes.Add(childTreeNode);                          
                    } 
        } 
 
 
 
 

The serverside control KnwoeldgeBaseTree (represented by the class above) is within the Page as usual:

<KB:KnowledgeBaseTree id="knowledgeBaseTree" runat="server" />

So, as far as I know, I'm in the right place as far as the page lifecycle is concerned.

I've also tried rendering the tree in the Init stage of the server control. No change.

Can you please help me fix this?

Suraj
Top achievements
Rank 1
 answered on 18 Feb 2009
2 answers
120 views
I'm having an issue with Editor content area height with firefox..
this is what I got:
<telerik:RadEditor runat="server" ID="trdEmailFooter" Width="600px" Height="100"
                        EditModes="Design" ToolbarMode="ShowOnFocus" EnableResize="true" AutoResizeHeight="True"
                        BorderStyle="None" ToolsWidth="315px" Skin="Telerik" OnTextChanged="trdEmailFooter_TextChanged"
                        AllowScripts="true">
                        <Content>
</Content>
                        <Tools>
                            <telerik:EditorToolGroup>
                                <telerik:EditorTool Name="Bold" />
                                <telerik:EditorTool Name="Italic" />
                                <telerik:EditorTool Name="Underline" />
                                <telerik:EditorSeparator />
                                <telerik:EditorTool Name="ForeColor" />
                                <telerik:EditorTool Name="BackColor" />
                                <telerik:EditorSeparator />
                                <telerik:EditorTool Name="FontName" />
                                <telerik:EditorTool Name="FontSize" />
                            </telerik:EditorToolGroup>
                        </Tools>
                    </telerik:RadEditor>

ISSUES:

1- On Firefox (widows and mac) the content area is shorter the it's set.. when I do a postback (ajax) the content box fits okay
2- On Firefox (only mac) when a partial post back is done (ajax) when I do focus I don't see the toolbar anymore (when I sat the toolbarmode="default") I can see toolbar but can't change font style..

please help


ataya
Top achievements
Rank 1
 answered on 18 Feb 2009
0 answers
104 views
I'm confused by the problem I'm having. I have a PanelBar for navigation and a RadUpload control. When I mouse over the panelbar, it makes the textbox in the RadUpload disappear. Please help, soon! :(
e
Top achievements
Rank 2
 asked on 18 Feb 2009
2 answers
113 views
i have a radtree with checkboxes.

now , i want when i click on a particular checkbox,"category id" of that check is fecth up,

 and how can we attached checkboxs to database??

please help
sahil
Top achievements
Rank 1
 answered on 18 Feb 2009
3 answers
169 views

i would like to develop a hierarchical grid view programmatically. The firstrow(masterTableview) im adding it at design time.
Im doing that using the code below, but its not adding the griddesignview(children for the first row) Does anyone see whats wrong with the code im using here:
Master.ParentlocationID is matched to TableView.LocationID, im also using a dataset as my datasource.

 

adapter.Fill(dsData);

 

 

 

 

 

GridTableView tableSubLocation = new GridTableView(rdgLocation);

 

rdgLocation.MasterTableView.DetailTables.Add(tableSubLocation);

tableSubLocation.DataSource = dsData;

 

 

 

 

 

tableSubLocation.Width =

 

 

 

 

Unit.Percentage(100);

 

 

 

 

 

 

GridRelationFields relationFields = new GridRelationFields();

 

tableSubLocation.ParentTableRelation.Add(relationFields);

relationFields.MasterKeyField =

 

 

 

 

"LocationID";

 

relationFields.DetailKeyField =

 

 

 

 

"ParentLocationID";

 

 

 

 

 

 

GridBoundColumn boundColumn;

 

boundColumn =

 

 

 

 

new GridBoundColumn();

 

tableSubLocation.Columns.Add(boundColumn);

boundColumn.DataField =

 

 

 

 

"LocationID";

 

boundColumn.HeaderText =

 

 

 

 

"LocationID";

 

boundColumn =

 

 

 

 

new GridBoundColumn();

 

tableSubLocation.Columns.Add(boundColumn);

boundColumn.DataField =

 

 

 

 

"Location";

 

boundColumn.HeaderText =

 

 

 

 

"Location";

 

 

Bruno
Top achievements
Rank 1
 answered on 18 Feb 2009
1 answer
93 views
Hi,
i've three sliders in my page. After selecting a value in the first, the list of selectable value in the second changes. After selecting a value from the second slider the list of selectable values in the third changes. I tried putting slider2 and slider3 in an updatepanel each, but when i change value from the first slider, the second slider disappears.

How can i do it?
thanks,
Marco
Tsvetie
Telerik team
 answered on 18 Feb 2009
3 answers
165 views

How do you add items on load with the RadGrid?

There will always be the same few items added on data entry every time, but of course they could change sometimes, so I would like to add them to the grid, and then put the grid in edit mode.

Thanks,

Brett

Bruno
Top achievements
Rank 1
 answered on 18 Feb 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?