Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
208 views
We are using the OnRowDblClick to enable updating of row items as per your provided samples.  However, not every row should be editable depending on the user.  Is there a way to disable the double-click functionality for certain rows in the OnItemDataBound event or another grid event?

Thanks!
Christian
Top achievements
Rank 1
 answered on 01 Oct 2008
2 answers
122 views
I have a basic vertical menu that is being loaded from an XML file. I want to display a right arrow for any root items that have child items. Is there a way to do this? Should I be looking at the ItemCreated event or is there a property I can assign to the root item in the XML file?
nhaydon
Top achievements
Rank 1
 answered on 01 Oct 2008
1 answer
191 views
Hi,

Is it possible to map the rad multipages to radmenu items just like how we do for rad tab strip?  

Thanks and Regards,
Nataraj
Serrin
Top achievements
Rank 1
 answered on 01 Oct 2008
1 answer
159 views
Hi,

I am using raddock control.I want to save state of docks after doing some actions like close,minimize,maximize etc.
How to do this?
Is it possible to save state dynamically means after closing either of the rad dock control  i want to save state(closed) on next action(like minimize,maximize,close) of other dock controls?





Thanks in advance.
zCon Solutions.
Serrin
Top achievements
Rank 1
 answered on 01 Oct 2008
1 answer
112 views
I am using RadGrid in a DotNetNuke module and am trying to access a check box within an edit form template on the grid on the client, without success.

If I put a check box outside the grid I can access it without difficulty.

Normally I would access controls on a form on the client side using something like:

var gridControl = document.getElementById("<%= grd.ClientID %>");
alert(gridControl.id);

This works for the grid and if I use something similar with a check box outside the grid it also works.

var cb= document.getElementById("<%= myCheckBox.ClientID %>");
alert(cb.id);

How can I access the check box within the edit form of a rad grid? The checkbox does not exist in the Item template only the edit item template.

A sample would be appreciated.

Declan

Declan
Top achievements
Rank 2
 answered on 01 Oct 2008
1 answer
170 views
hi. I have a sample written but don't see how to upload it.
I have no idea how to get around this.
it is reasonable to add required fields to other ascx pages.. ie education. if I make 'Name' a required field, it will not allow me to proceed (valid). It will also stop me from going back.. (invalid).
If I disable validation on the tabstrip, then i can go back, but then I receive validation summaries from the education page when I click the next button on the profile page! crazy.

Now this is not a huge deal to get around, but, what is a problem is that if I added a formview onto the education which allowed for multiple entry, that is fine, add an insert button and a "I am done inserting, move to next page" button which triggers the GoToNextTab() event, it actually shuts down the tabstrip completely, because.. as logical, the tabstrip is using validation, but the strip is jammed because the education has invalid required field..

I am thinking the most simple method would be to unload or kill the ascx being moved off of.. would this kill the required field as well ? I dont' see how to do this... I tried 

multiPage.PageViews.Remove(thecurrentPageview) 
from within the GotNextPageView, but that did not solve the isse

arghhh. Any thoughts on how to do this? I have a sample of the issue.

digitall
Top achievements
Rank 1
 answered on 01 Oct 2008
3 answers
472 views
Hi,

- I have a main aspx page containing an ascx user control I've created.
- The user control contains a RadAjaxManager and a RadWindowManager.
- The user control has an imagebutton on it that opens a modal RadWindow.
- In the javascript function assigned to the on close of the RadWindow, I call __dopostback.
- The dopostback() refreshes the entire main aspx page.

PROBLEM:
So, all of the above works, except the entire main aspx page refreshes (full postback is done).  I only want to refresh the user control (partial postback), using ajax.

So perhaps this is just more of a AjaxManager question...  but I must not be "ajaxifying" the correct updated / target controls.

The crappy thing is that I had the partial postback working, but was then running into many other issues with the RadWindow.  In the past I was also trying to do a client side .ajaxRequest from within the function that runs on close of the RadWindow, but was having problems with that as well.

In case you want to know, I am specifying the name of the user control as my eventtarget, in the dopostback, like:  ctl00$ContentPlaceHolder$ctl00$ContentPlaceHolder$ucUCCIndexingFilingControlsParent$ucFilingDetails

Perhaps you can just guide me as to how you would:
 - Open a RadWindow from within a user control.
 - When it is closed, have it post back to the server, but be ajaxified so that only part of the page is posted / refreshed.

Q.  Should I just move all of the javascript to the user control, instead of having it in the main aspx page?

Thanks,
Brent
Brent
Top achievements
Rank 1
 answered on 01 Oct 2008
3 answers
188 views
I'm new to the Rad Toolset and I'm trying to figure some things out.  I've done a lot of google and reading on the forums and can't find what I'm looking for.

My setup is as follows:  The DAL was created by SubSonic.  I've created an ObjectDataSource and have a RadGrid hooked up to that.  The ObjectDataSource points to the controller source generated by SubSonic for that table.  In this instance I'm doing two identical lookup tables for facilities and divisions.  I'm trying to create a radgrid with the edit, insert,  and delete functions.

Two problems:
1.  The insert and edit functions work great on the division table, but not the facilities table.  I've checked the source and the two pages are identical.  An update on the facilites page results in an error message:

ObjectDataSource could not find a non-generic method 'Update' that has parameters:  FacilityName, FacilityDescription, FacilityID, original_FacilityID.

That is true.  The signature doesn't include the original_FacilityID.  But the update for the Division table doesn't include the original_DivisionID in it either, and it works fine.  I can't figure out where this parameter comes from as it's not in any list in the page:

        <telerik:GridBoundColumn DataField="DivisionID"
            HeaderText="DivisionID" SortExpression="DivisionID"
            UniqueName="DivisionID" DataType="System.Int32" Visible="False">
        </telerik:GridBoundColumn>

        <telerik:GridBoundColumn DataField="FacilityID" DataType="System.Int32"
            HeaderText="FacilityID" SortExpression="FacilityID"
            UniqueName="FacilityID" Visible="False">
        </telerik:GridBoundColumn>

And the DataSource contains the same definitions:

    <asp:ObjectDataSource ID="CmdbDivision" runat="server" DeleteMethod="Delete"
        InsertMethod="Insert" OldValuesParameterFormatString="original_{0}"
        SelectMethod="FetchAll" TypeName="CMDB.TblDivisionController"
        UpdateMethod="Update">
        <DeleteParameters>
            <asp:Parameter Name="DivisionID" Type="Object" />
        </DeleteParameters>
        <UpdateParameters>
            <asp:Parameter Name="DivisionID" Type="Int32" />
            <asp:Parameter Name="DivisionName" Type="String" />
            <asp:Parameter Name="DivisionDescription" Type="String" />
        </UpdateParameters>
        <InsertParameters>
            <asp:Parameter Name="DivisionName" Type="String" />
            <asp:Parameter Name="DivisionDescription" Type="String" />
        </InsertParameters>
    </asp:ObjectDataSource>

<asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
        DeleteMethod="Delete"
        InsertMethod="Insert"
        OldValuesParameterFormatString="original_{0}"
        SelectMethod="FetchAll"
        TypeName="CMDB.TblFacilityController"
        UpdateMethod="Update">
        <DeleteParameters>
            <asp:Parameter Name="FacilityID" Type="Object" />
        </DeleteParameters>
        <UpdateParameters>
            <asp:Parameter Name="FacilityID" Type="Int32" />
            <asp:Parameter Name="FacilityName" Type="String" />
            <asp:Parameter Name="FacilityDescription" Type="String" />
        </UpdateParameters>
        <InsertParameters>
            <asp:Parameter Name="FacilityName" Type="String" />
            <asp:Parameter Name="FacilityDescription" Type="String" />
        </InsertParameters>
    </asp:ObjectDataSource>

I believe the second problem to be related, as the delete function works on neither page.  The facility page fails because of the same signature problem, whereas the division page just refreshes and doesn't do the delete.

Any suggestions?  I'm hoping that someone here has some SubSonic with Rad Grid experience and can help me.  If not, maybe you're familiar with ways to work around this problem with the original_ID problem.

David Kingston
Top achievements
Rank 2
 answered on 01 Oct 2008
1 answer
148 views
hi,  im working with a AutomaticAdvance rotator thats sitting in a table cell. Anything in the item template gets shifted to the right and cutoff about 10 pixels so there the a blank space on the left about 10 pixels,  it is wrapping like I want just shifted,  Ive also changed the scroll direction same thing.

If I put a border around the containing tables cell its correct but if I put one around the itemtemplate it is also shifted.  text in the table cell without the rotator is flush up against the left.  here is the code

The rotator height and width is the same as the TD and the same as teh item width and hight.  ive tried changes these with no luck.  if I change the item width to only 10px the width is 10 pixes but there is still a 10px gap on the left.

I also set the css class of the rotator to padding 0, margin 0 and border 0 !important,  still same thing

plus if I put the text in a table or div inside the itemtemplate it wraps on the right ok but still has the gap on the left.

please help....

Thanks
-Keith

            <telerik:RadRotator WrapFrames="false" BackColor="#9c9c9c" ID="RR1" runat="server" height="158px" width="192px" 
              RotatorType="AutomaticAdvance" ScrollDirection="Up" InitialItemIndex="0" scrollduration="500" frameduration="4000"  
              itemheight="158px" itemwidth="192px" datasourceid="LDSDYN1" > 
            <ItemTemplate> 
            THIS IS SOME TEST TEXT TO SEE WHY ITS CUTTING OFF on the right 
            </ItemTemplate> 
            </telerik:RadRotator> 
            </td> 

SonicImaging
Top achievements
Rank 1
 answered on 01 Oct 2008
2 answers
182 views
I use client side grid variable access quite a bit but have one program that I cant seem to find the problem with and was hoping someone would indulge me on a quick review.  On the 'getCellByColumnUniqueName' function I get the JS error:

error:'undefined' is null or not an object.

in the codebehind: 

GridDataItem gridDataItem = e.Item as GridDataItem;
HyperLink GradeBook = e.Item.FindControl("GradeBook") as HyperLink;
GradeBook.Attributes[
"href"] = "#";
GradeBook.Attributes[
"onclick"] = string.Format("return ShowGradeBook('{0}');", e.Item.ItemIndex);

which works fine, my JS Function runs:

function ShowGradeBook(rowIndex)

{

var mtv = $find("<%= RadGrid1.ClientID %>").get_masterTableView();

mtv.selectItem(mtv.get_dataItems()[rowIndex].get_element());

var selectedRows = mtv.get_selectedItems();

var row = selectedRows[0];

 alert(

"InGradeBOok=" + rowIndex);

 tf = mtv.getCellByColumnUniqueName(row,

"CourseID")

var CourseID = tf.innerHTML;

CourseID is defined in the grid as:

<telerik:GridBoundColumn DataField="CourseID" UniqueName="CourseID" Display="false" ></telerik:GridBoundColumn>

david
Top achievements
Rank 1
 answered on 01 Oct 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?