Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
108 views
HI

How would i share some column definitions between a master table view and a gridtableview which is part of the details table collection of a different grid?

I have been trying to do this using a skin file but I must be doing something wrong as it's not working (unless its not possible that is!)

thanks
Sebastian
Telerik team
 answered on 15 Jul 2009
6 answers
337 views
I am writing an application where it is important to have the datagrid update immediately on Insert/Update/Delete operations rather than wait for the server to respond. In particular:

- I would like to implement Insert/Update/Delete in-line without making a round trip to the server until the user chooses to submit (at which time the server side collection is refreshed). 'Cancel' button restores state.
- I would like client-side insert/update to trigger a call to a web service passing a JSON object to validate the data (displaying the canonical loading symbol in a datagrid column until validated; error, warning, or OK icon then displayed depending on result; Netflix-like hover popup describing error/warning) without affecting the ability for the user to make subsequent changes to the datagrid.

I've been trying to think of an elegant solution using JQuery and client side caching, but defer to those with far greater expertise than I possess.  Is this possible? Better solution? If so, is there example code that I haven't found while searching?

RadGrid Version: 2007.3 1425
.NET Version: 3.5

Thanks in advance,
David
Sebastian
Telerik team
 answered on 15 Jul 2009
1 answer
97 views
Hello,

I am trying to find a control that can use Binary Streams so that I may read and save into SQL.
I don't want to store these documents on a file system, but cached versions are acceptable.

Can the Telerik editor in some way allow me to achieve this?

Rumen
Telerik team
 answered on 15 Jul 2009
3 answers
62 views
I followed the tutorial on how to write a content filter (between Design & HTML) but there does not seem to be a way to apply one to the view mode?

I want to be able to apply some rules to the view, and then go back to my design retaining the original values
Rumen
Telerik team
 answered on 15 Jul 2009
2 answers
106 views
Hi,

I have a input type = button on a page with style display none, so I don't want to display it
but with FormDecorator I have a little piece of button ( the right hand) whose display.
I can't add visible=false on this button because I can't access it by javascript.
Is there a solution ?

Eric
Maveric
Top achievements
Rank 2
 answered on 15 Jul 2009
1 answer
177 views
I am using a RadComboBox embedded in a RadGrid in a PagerTemplate and am consistently getting a couple of pixels missing from the bottom of the text when I use IE7. Everything renders properly in Firefox. When I select the text next to the dropdown arrow in IE, the text moves up where one can see the whole text without loosing any pixels at the bottom. This even occurs if I make the combo box wider. Increasing the height using the height tag or in the style doesn't do anything to the height of the combo box. How can I make IE look the same as Firefox? A majority of our users use IE and it is a poor look for our user interface for them. I am using a custom skin which is basically the same as the grey skinning.

Thanks,
Simon
Simon
Telerik team
 answered on 15 Jul 2009
2 answers
143 views
I have a page (internal use only) with a very wide radgrid (essentially I've replaced an offline XLS file) and at around 20 rows per page it's hard to keep track of teh column headings when scrolling vertically. I've tried the ClientSettings.Scrolling.UseStaticHeaders=True setting but this doesn't seem as neat and means I will need to set all teh header widths or else it screws up the display.

I'd prefer to code the grid so that the column headers could be output with every group header (or perhaps every innermost group header)? ie - just repeat the TR that contains the headings each time I start a new group. How would I go about this?

M
Sebastian
Telerik team
 answered on 15 Jul 2009
2 answers
177 views
Hello telerik team,

I'm having trouble aligning my controls inside the node template. The desired look is node values are aligned left, while add/edit/delete controls are aligned right. But the thing is, the controls on the right should all be aligned the same way, regardless of the node's position in the hierarchy.

I was able to do this under IE7 as:

<div style="width:700px">                
        <telerik:RadTreeView runat="server" ID="RadTreeView1"
            <NodeTemplate>                     
                    <div style="text-align:left; width:20%; float:left"
                        <asp:Label ID="Label1"  isText="true" runat="server" Text='<%# Container.Attributes["Text"] %>' /> 
                    </div> 
                     <div style="text-align:right; width:80%; float:right"
                     <asp:LinkButton ID="lbtnAdd" runat="server" Text="Add" CommandName="Add" CssClass="Link" OnClick="lbtnAdd_Click"/>&nbsp;&nbsp; 
                     <asp:LinkButton ID="lbtnEdit" runat="server" Text="Edit" CommandName="Edit" CssClass="Link" OnClick="lbtnEdit_Click"/>&nbsp;&nbsp; 
                                <asp:LinkButton ID="lbtnDelete" runat="server" Text="Delete" CommandName="Delete" CssClass="Link"  OnCommand="lbtnDelete_Click"/> 
                    </div> 
            </NodeTemplate> 
        </telerik:RadTreeView> 
    </div> 

But unfortunately, this doesn't work at all in IE8 or Mozilla. I'm guessing it's the percentage values on the div widths. The problem is, when I supply fixed widths on the divs, they are right aligned depending on the node's level.

Do you guys have a ready made sample to achieve this under IE8? Or perhaps a different approach.

TIA



JR Go
Top achievements
Rank 1
 answered on 15 Jul 2009
1 answer
91 views
Dear Sir,


I have 4 combobox in a page and i am using update panel.
When i select "Home address", "office address", etc from 1st combo,
address details are not showing in other combos. whenever code is being executed.

 

function onCustomerAddress_Loaded(result) {

 

 

try {

 

 

var rows = result.rows[0];

 

 

if (rows != null) {

 

$get(

'<%=txtHCZipCode.ClientID %>').value = rows.ZIPCODE;

 

$get(

'<%=txtHCStreet.ClientID %>').value = rows.STREET;

 

$get(

'<%=txtHCZipCode.ClientID %>').disabled = true;

 

$get(

'<%=txtHCStreet.ClientID %>').disabled = true;

 

 

if ($find('<%=cmbHCCountry.ClientID %>').findItemByValue(rows.COUNTY) != null) {

 

 

//$find('<%=cmbHCCountry.ClientID %>').clearSelection();

 

$find(

'<%=cmbHCCountry.ClientID %>').updateClientState();

 

$find(

'<%=cmbHCCountry.ClientID %>').findItemByValue(rows.COUNTY).select();

 

 

//$find('<%=cmbHCCountry.ClientID %>').commitChanges();

 

$find(

'<%=cmbHCCountry.ClientID %>').disable();

 

}

 

else if ($find('<%=cmbHCCountry.ClientID %>').findItemByText("Select") != null) {

 

$find(

'<%=cmbHCCountry.ClientID %>').clearSelection();

 

$find(

'<%=cmbHCCountry.ClientID %>').findItemByText("Select").select();

 

}

 

if ($find('<%=cmbHCState.ClientID %>').findItemByValue(rows.STATE) != null) {

 

 

//$find('<%=cmbHCState.ClientID %>').clearSelection();

 

$find(

'<%=cmbHCState.ClientID %>').updateClientState()

 

$find(

'<%=cmbHCState.ClientID %>').findItemByValue(rows.STATE).select();

 

 

//$find('<%=cmbHCState.ClientID %>').commitChanges();

 

$find(

'<%=cmbHCState.ClientID %>').disable();

 

}

 

if ($find('<%=cmbHCCity.ClientID %>').findItemByValue(rows.CITY) != null) {

 

 

// $find('<%=cmbHCCity.ClientID %>').clearSelection();

 

$find(

'<%=cmbHCCity.ClientID %>').findItemByValue(rows.CITY).select();

 

 

//$find('<%=cmbHCCity.ClientID %>').commitChanges();

 

$find(

'<%=cmbHCCity.ClientID %>').disable();

 

}

 

if ($find('<%=cmbHCLocation.ClientID %>').findItemByValue(rows.location) != null) {

 

 

//$find('<%=cmbHCLocation.ClientID %>').clearSelection();

 

$find(

'<%=cmbHCLocation.ClientID %>').findItemByValue(rows.location).select();

 

 

//$find('<%=cmbHCLocation.ClientID %>').commitChanges();

 

$find(

'<%=cmbHCLocation.ClientID %>').disable();

 

 

}

 

if (rows.PHONE != null) {

 

$get(

'<%=txtHCPhoneNo.ClientID %>').value = rows.PHONE;

 

$get(

'<%=txtHCPhoneNo.ClientID %>').disabled = true;

 

}

}

 

// if ($get('dvLoading') != null) {

 

 

// $get('dvLoading').style.display = 'none';

 

 

// }

 

 

return false;

 

}

 

catch (e) {return false;

 

}

}



 

function

HMC_Country_SelectedIndexChanged(sender, args) {

 

 

try {

 

 

if (locationArray != null) {

 

 

var country;

 

 

var stateControl;

 

country = $find(

"<%= cmbHCCountry.ClientID%>").get_value();

 

stateControl = $find(

"<%= cmbHCState.ClientID%>");

 

stateControl.clearSelection();

 

if (stateControl != null) {

 

stateControl.get_items().clear();

stateControl.commitChanges();

comboItem =

new Telerik.Web.UI.RadComboBoxItem();

 

comboItem.set_text(

"Select");

 

comboItem.set_value(

"");

 

stateControl.get_items().add(comboItem);

 

for (var rowIndex = 0; rowIndex < locationArray.rows.length; rowIndex++) {

 

 

if (locationArray.rows[rowIndex].crm_sug_country == country) {

 

 

if (stateControl.findItemByValue(locationArray.rows[rowIndex].crm_sug_state_code) == null) {

 

comboItem =

new Telerik.Web.UI.RadComboBoxItem();

 

comboItem.set_text(locationArray.rows[rowIndex].crm_sug_state);

comboItem.set_value(locationArray.rows[rowIndex].crm_sug_state_code);

stateControl.get_items().add(comboItem);

}

}

}

stateControl.commitChanges();

 

if (stateControl.findItemByText("Select") != null) {

 

stateControl.findItemByText(

"Select").select();

 

}

}

}

 

return false;

 

}

 

catch (e) {return false;

 

}

}


Please help....


Thanks & Regards
Brijendra Pandey

Simon
Telerik team
 answered on 15 Jul 2009
5 answers
129 views
Greetings,

I have a custom EditorSplitButton that displays images.  After the user selects an image to place on the editor, the image selected should be displayed on the 'button' itself like:



In the application I'm not using faces, I'm using template names such as:



Therefore, I want to increase the width of the button to one size that will fit the largest template name.  From everything I've looked at, I can't see a 'width' property for the button itself.  Please note, I'm not talking about the popupwidth or height such as:

... PopupWidth="170px" PopupHeight="117px">

I want to increase the size of the button itself.  Is there any property setting to do this or some kind of work-around??  I get the feeling from this article below that the latest release addressed width settings on some objects, but not custom buttons.  Just do a search on the word 'width' in this article to see my point:

 

http://www.telerik.com/products/web-ui-test-studio/whats-new/release-history/q1-2009-version-2009-1-311-3324189759.aspx

 
Thanks!

John
Top achievements
Rank 1
 answered on 15 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?