Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
127 views
Hi

We have custom nodes in our tree. Node consists of text (span tag) and one additional control. When the node is clicked then the whole node gets selection style, but we need to mark only part of our custom node (only text).

How can we do that?

Thanks,
Olga

Mark
Top achievements
Rank 1
 answered on 30 Jul 2008
9 answers
278 views
Hi,
I have a grid where all the rows are in edit mode and a column with a total in the footer of the grid. I want to automatic display the sum of the column without postback when the user enter a value in a cell. The only solution to do this seems to be to sum the column in Javascript.  It is possible to do that ?  Is there a grid client API to do this?

Thanks
Yvan Sigouin
Sebastian
Telerik team
 answered on 30 Jul 2008
1 answer
181 views
Hi,

Our problem: 
Splitter not resized in its container when the container (e.g. TR) resized itself by other event

More Details:
-I have splitter inside user control.
-I have page with table. The user control with the splitter hosted in this page in specific TR.
- Other TR in this specific table has dynamic display TR.
- When the dynamically TR Hidden the splitter TR resized automatically. But the splitter stay with the same height (not fit the inside the container TR).

p.s.
-
I know the splitter has the Client API Resize method but I don’t want to use it (the splitter hosted in some user control and the table in page).
- I already try to work with DIV instead of table.

Code:
<table Height="99%" Width="98%" border="1">
<
tr>
<
td valign="top" >
<
telerik:RadSplitter ResizeWithParentPane="true" ResizeWithBrowserWindow="true"
Orientation="Horizontal" ID="splAll" LiveResize="false"
Skin="Gray" runat="server" Height="100%" Width="100%" >
<
telerik:RadPane ID="filterPane" runat="server" Height="30%" Width="100%">
AB
</
telerik:RadPane>
<
telerik:RadSplitBar ID="splbFilterAgainstTreeAndSearch" runat="server"
CollapseMode="Forward" EnableResize="true" />
<
telerik:RadPane Width="50%" Scrolling="None" ID="treeAndSearch" runat="server">
CD
</
telerik:RadPane>
</
telerik:RadSplitter>
</
td>
</
tr>
<
tr id="tr1" height="80px">
<
td onclick="trtochange.style.display='block';">click to show</td>
</
tr>
<
tr id="trtochange" height="80px">
<
td onclick="trtochange.style.display='none';"> click to hide</td>
</
tr>
</
table>

How can we solve the problem? May be you have behavior like ResizeWithBrowserWindow="true" meaning the splitter resized automatically when its container changed?

Thanks,
Olga
Sophy
Telerik team
 answered on 30 Jul 2008
1 answer
161 views
Hello, my application scenario is the following.

I have a rad grid with a select column which currently uses a button for selection.

What I would like to do is when the user clicks on the button, I would like a pop-up window, similar to that of a pop-up editor, but I do not want to edit the grid item, only show more details.

To show the details, I need to be able to bind a custom user control that I have created inside the popup to a data item from my database in a server-side event.

I have looked through the forms / documentation and cannot find a proper way to do this, do you have any suggestions?

As an alternative, I'd like to be able to dynamically bind the data item to a user control in a details template, I cannot find how to do this either.

Any help is greatly appreciated,
Thanx, T.J.


Veli
Telerik team
 answered on 30 Jul 2008
6 answers
300 views
Hi All...can any1 help...im using a radtreeview in a radcombobox...im bind data from sql to the treeview...my code:

       RadTreeView treeview = ((RadTreeView)Combobox2.FindControl("RadTreeView"));  
 
        foreach (DataRow dr in dtData.Rows)  
        {  
              
            RadTreeNode ParentLocationNode = new RadTreeNode();  
            ParentLocationNode.Text = (string)dr["Column"];  
            ParentLocationNode.Value = Convert.ToString(dr["Column"]);  
            treeview.Nodes.Add(ParentLocationNode);  
        } 
each time i get error: Object reference not set to an instance of an object.

plz help!
Wicus
Top achievements
Rank 1
 answered on 30 Jul 2008
1 answer
95 views
I downloaded the latest Q2 release of the RadControls for Asp.Net. Very frustrating to find all my skins have changed. I don't know if this is a bug or a very bad judgement call, but when people migrate to a new version I think you have certain expectations, and changing the appearance of existing skins is not one of them. My Office2007 theme tabs now have blue text instead of black. My Outlook calendar no longer has bolding for the days of the week and the spacing is completely different between rows. I'm thinking this has to be a bug, but it's forced me to reinstall the previous version. I hope you guys can look into this and warn people if you make these kind of changes. I don't like people changing the look of my app without asking me :).

Best,
Levi
Alex Gyoshev
Telerik team
 answered on 30 Jul 2008
3 answers
147 views
Hi,

I searching solution to read a textbox value from Page and use to set the path of ImageManager. I tried with javascripting and I'm be abble to read and sent the value in input hidden but not to retrieve in the codebehind. Object : create specific folders using the value added by user.

Reading the value from textBox

var

mytitle = document.getElementById("ctl00_ContentPlaceHolder1_contolPanel_ctl00_ctl00_Title").value;

var myauthor = document.getElementsByName("ctl00$ContentPlaceHolder1$contolPanel$ctl00$ctl00$editMetaFields$ctl00$Author")[0].value;

Passing to my input hidden

<

input id="myval1" type="hidden" runat="server" enableviewstate="true" />

document.getElementById("ctl00_ContentPlaceHolder1_contolPanel_ctl00_ctl00_editMetaFields_ctl00_Image2_myval1").value=mytitle;

document.getElementById(

"ctl00_ContentPlaceHolder1_contolPanel_ctl00_ctl00_editMetaFields_ctl00_Image2_myval2").value=myauthor;

Retrievin as Codebehind : NO WORKING
1/ Directly in Load_Page : No Value found
string folder1 = myval1.Value;
string folder2 = myval2.Value;
2/ No found
string folder1 = webBrowser1.Document.GetElementById("myval1").InnerText;
3/ If (!PostBack) No found
4/ Request Form Not accepted by my sol need web.config
string folder1 = Request.Form["myval1"];

It's possible to define the ImageManager path in javascripting to use my value ?.
Other solution to pass one value from TextBox in Page to ImageManager ?.
Nobody send value from javascript to codebehind?

Any help are welcome, Regards.


Tervel
Telerik team
 answered on 30 Jul 2008
1 answer
97 views
We have multiple publishing sites running on the same farm. One is for a client that is running the purchased version (5.) and one that is running the Lite version (4.). The problem is that the dlls for both versions are called the same thing and the ids used in the features to install are the same. Is there a way to run both versions in the same farm?
George
Telerik team
 answered on 30 Jul 2008
1 answer
78 views

Trying to apply filters in RadGrid for a column which has LinkButton. Filters are not showing on the Grid. Can you please let us know where I am making mistake. Below is the code to build columns. Please let me know if you have any other questions.

Thanks.




private

void BuildColumns()

{

GridBoundColumn clientNameBoundColumn1 = new GridBoundColumn();

RadTodoGrid.MasterTableView.Columns.Add(clientNameBoundColumn1);

clientNameBoundColumn1.DataField =

"ClientName";

clientNameBoundColumn1.HeaderText =

"Client Name";

clientNameBoundColumn1.UniqueName =

"Client Name";

// requestId.CommandName = "select";

 

GridBoundColumn folderIdColumn = new GridBoundColumn();

RadTodoGrid.MasterTableView.Columns.Add(folderIdColumn);

folderIdColumn.DataField =

"FolderId";

folderIdColumn.HeaderText =

"Folder Id";

folderIdColumn.UniqueName =

"FolderId";

folderIdColumn.Visible =

false;

GridBoundColumn procColumn = new GridBoundColumn();

RadTodoGrid.MasterTableView.Columns.Add(procColumn);

procColumn.DataField =

"ProcessName";

procColumn.HeaderText =

"Process Name";

procColumn.UniqueName =

"ProcessName";

procColumn.Visible =

false;

 

 

GridBoundColumn engName = new GridBoundColumn();

RadTodoGrid.MasterTableView.Columns.Add(engName);

engName.DataField =

"Engagement";

engName.HeaderText =

"Engagement";

engName.UniqueName =

"Engagement";

 

GridButtonColumn actionMessage = new GridButtonColumn();

RadTodoGrid.MasterTableView.Columns.Add(actionMessage);

actionMessage.ButtonType =

GridButtonColumnType.LinkButton;

actionMessage.AutoPostBackOnFilter =

false;

actionMessage.CommandName =

"Select";

actionMessage.DataTextField =

"ActionMessage";

actionMessage.HeaderText =

"Message";

actionMessage.UniqueName =

"ActionMessage";

}

Shinu
Top achievements
Rank 2
 answered on 30 Jul 2008
7 answers
512 views
Hi,

I created a Rad Grid dynamically in the VB code behind.  Following the procedures in programmatic creation of RadGrid.  There are TextBox control in the GridTemplateColumn.  I also defined a GridTemplate class with the InstantiateIn method in it.  I added the event handler for TextChanged event.  I also set the EnableAjax flag of the RadGrid and the AutoPostBack flag of the TextBox to be true.  The update of the TextBox works totally fine with the ajaxified feature.

I tried to do a view source after the page is loaded and the TextBox is defined like this:
<input name="_ctl0:ContentPlaceHolder1:_ctl11:_ctl1:_ctl4:txt" type="text" value="90.00" onchange="javascript:setTimeout('RadGridNamespace.AsyncRequest(\'_ctl0$ContentPlaceHolder1$_ctl11$_ctl1$_ctl4$txt\',\'\', \'_ctl0_ContentPlaceHolder1__ctl11\', event)', 0)" onkeypress="if (WebForm_TextBoxKeyHandler(event) == false) return false;" language="javascript" id="_ctl0_ContentPlaceHolder1__ctl11__ctl1__ctl4_txt" style="width:70px;text-align:right;" />

Now, my question is, how can I add a javascript function in the "onchange" event of the TextBox?  My goal is to use that javascript function to validate the text in the TextBox first, if everything is correct, then move to the TextBox.TextChanged event in the code behind. Is it possible to do something like this after the page is loaded?

<input name="_ctl0:ContentPlaceHolder1:_ctl11:_ctl1:_ctl4:txt" type="text" value="90.00" onchange="javascript:if validateTextBox() then {setTimeout('RadGridNamespace.AsyncRequest(\'_ctl0$ContentPlaceHolder1$_ctl11$_ctl1$_ctl4$txt\',\'\', \'_ctl0_ContentPlaceHolder1__ctl11\', event)', 0)}" onkeypress="if (WebForm_TextBoxKeyHandler(event) == false) return false;" language="javascript" id="_ctl0_ContentPlaceHolder1__ctl11__ctl1__ctl4_txt" style="width:70px;text-align:right;" />
Iana Tsolova
Telerik team
 answered on 30 Jul 2008
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?