Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
306 views
 
This is my grid view code.... 
 
<columns> 
<telerik:GridBoundColumn DefaultInsertValue="" UniqueName="Code" DataField="Code" 
                                HeaderText="Code"> 
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DefaultInsertValue="" UniqueName="Employee" DataField="Employee" 
                                HeaderText="Employee"> 
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DefaultInsertValue="" UniqueName="Address" DataField="Address" 
                                HeaderText="Address"> 
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DefaultInsertValue="" UniqueName="Location" DataField="Location" 
                                HeaderText="Location"> 
</columns> 
 
 
And my checkboxlist contains following.... 
 
<asp:CheckBoxList ID="CheckBoxListThird" runat="server" RepeatColumns="5" Width="100%"> 
                        <asp:ListItem Enabled="False" Selected="True" Value="Code">Site ID</asp:ListItem> 
                        <asp:ListItem Selected="True">Employee</asp:ListItem> 
                        <asp:ListItem Selected="True">Address</asp:ListItem> 
                        <asp:ListItem Selected="True">Location</asp:ListItem> 
</asp:CheckBoxList> 
 
 
In my code behind i am trying something like this.... 
 
 
foreach (DataControlField col in RadGrid.Columns) 
                { 
                    if (col.HeaderText.ToUpper() == CheckBoxListFirst.Items[i].Text.ToUpper()) 
                        col.Visible = CheckBoxListFirst.Items[i].Selected; 
                } 
 
But It is giving me error.... This is just an example i have given i have in my listbox some 60 items.... 
 
so i want to come the headertext and item text of grid and checkboxlist.... My scenario fits in this way only..... 
 
Please tell me how to achevie it.... 
 
 
 
 
 
Hello,

i have a CheckBoxList Control in my page. When User selects or checks the check box i want to display only those selected Items in the grid.....

Shinu
Top achievements
Rank 2
 answered on 24 Feb 2010
1 answer
84 views
Hello-

 I am using a user control as the edit form popup for one of my grids. I was able to add an image in the header by putting that <img> into the captionformatstring, but is there any way to put an asp imagebutton in there, so i can take actions? Or any other workarounds?

Thanks
Shinu
Top achievements
Rank 2
 answered on 24 Feb 2010
1 answer
151 views
Greetings,

I have two scenario's where I am using a radgrid with a domain data source control and allowing Insert, Update and Delete.  Currently, I have an Order object that has two foreign keys, one for Company and the other for Customer.  I use two grid dropdown controls to represent the foreign keys and the display of items in the grid are fine when I edit.  The problem I am having is that when I try to update the order and review the order object the references to the foreign keys are null. 

This is a codeless implementation...please advise what I may be doing wrong.

Actual error is: The required entry 'CompanyID' was not found in the provided input. This entry is required by the key fields

<

 

telerik:RadGrid ID="RadGridOrder" runat="server" Skin="Outlook" AllowPaging="true"

 

 

DataSourceID="ddsOrder"

 

 

ValidationSettings-EnableValidation="true">

 

 

<Clientsettings allowkeyboardnavigation="true" enablepostbackonrowclick="true">

 

 

<Selecting AllowRowSelect="true" />

 

 

</Clientsettings>

 

 

<MasterTableView DataSourceID="ddsOrder"

 

 

AllowAutomaticInserts="false" AllowAutomaticDeletes="true" AllowAutomaticUpdates="true"

 

 

AutoGenerateColumns="false" DataKeyNames="OrderID" >

 

 

<Columns>

 

 

<telerik:GridEditCommandColumn ButtonType="ImageButton"> </telerik:GridEditCommandColumn>

 

 

<telerik:GridBoundColumn DataField="OrderID" HeaderText="ID" UniqueName="OrderID" SortExpression="OrderID" Visible="false" Display="true">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridDropDownColumn FooterText="Seller" UniqueName="Seller"

 

 

ListTextField="CompanyName" ListValueField="CompanyID" DataSourceID="ddsGetSellers"

 

 

HeaderText="Seller" DataField="SellerID" AllowSorting="true">

 

 

</telerik:GridDropDownColumn>

 

 

 

<telerik:GridCheckBoxColumn DataField="IsAcceptedBySeller" HeaderText="Seller Approved" UniqueName="IsAcceptedBySeller" ></telerik:GridCheckBoxColumn>

 

 

<telerik:GridDropDownColumn FooterText="Buyer" UniqueName="ddlBuyers"

 

 

ListTextField="CompanyName" ListValueField="CompanyID" DataSourceID="ddsGetBuyers"

 

 

HeaderText="Buyer" DataField="BuyerID" AllowSorting="true">

 

 

</telerik:GridDropDownColumn>

 

 

<telerik:GridCheckBoxColumn DataField="IsAcceptedByBuyer" HeaderText="Buyer Approved" UniqueName="IsAcceptedByBuyer" ></telerik:GridCheckBoxColumn>

 

 

<telerik:GridBoundColumn DataField="ShippingCity" HeaderText="Ship To City" UniqueName="ShippingCity" SortExpression="ShippingCity">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="ShippingStateProvince" HeaderText="Ship To State" UniqueName="ShippingStateProvince" SortExpression="ShippingCity">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="ShippingZipPostalCode" HeaderText="Ship To Zip" UniqueName="ShippingZipPostalCode" SortExpression="ShippingZipPostalCode">

 

 

</telerik:GridBoundColumn>

 

 

</Columns>

 

 

</MasterTableView>

 

 

</telerik:RadGrid>

 

 

<

 

cc1:DomainDataSource runat="server" ID="ddsOrder"

 

 

DomainServiceTypeName="G7.ePOD.PaymentSettlement.Business.OrderDomainService"

 

 

SelectMethod="GetCartOrders" EnableUpdate="true" EnableInsert="true" EnableDelete="true" >

 

</

 

cc1:DomainDataSource>

 

<

 

cc1:DomainDataSource runat="server" ID="ddsGetBuyers"

 

 

DomainServiceTypeName="G7.ePOD.PaymentSettlement.Business.OrderDomainService"

 

 

SelectMethod="GetBuyers" EnableUpdate="false" EnableInsert="false" EnableDelete="false" >

 

 

 

 

</

 

cc1:DomainDataSource>

 

<

 

cc1:DomainDataSource runat="server" ID="ddsGetSellers"

 

 

DomainServiceTypeName="G7.ePOD.PaymentSettlement.Business.OrderDomainService"

 

 

SelectMethod="GetCompanies" EnableUpdate="false" EnableInsert="false" EnableDelete="false" >

 

 

 

 

</

 

cc1:DomainDataSource>

 

Yavor
Telerik team
 answered on 24 Feb 2010
6 answers
315 views

Hi,

I m using radscheduler in my application. I m having the start time as '23:30:00' and end time as '00:30:00' in my tables.

And it showing error as 'StartTime must be before the endtime' when radscheduler loading.

I need to plot the appointment as mentioned timing in radscheduler.

Please give any suggestions to solve it.

thanks in advance.

 

Regards,

Maha

utchi
Top achievements
Rank 1
 answered on 24 Feb 2010
1 answer
95 views
Is there a source of DataTypes for GridEditableItems?

 

TryCast(editedItem("ClientTypeID").Controls(0), TextBox).Text)

 

 

TryCast(editedItem("GroupID").Controls(0), DropDownList)

I have a field that is set as a  <telerik:GridNumericColumn>.
When I go to Insert/Update My record I am not sure what the object type is.

 

Shinu
Top achievements
Rank 2
 answered on 24 Feb 2010
3 answers
1.0K+ views
I want to collect all Items in a RadGrid form a function triggerd by a Button!

protected void lbtnChooseOffer_Click(object sender, EventArgs e) 
{ 
    foreach (var item in RadGridMembers.Items) 
    { 
    } 
} 

But when i use this, all that item contains is an Id. How do i get all items from a RadGrid when i push a button?
Princy
Top achievements
Rank 2
 answered on 24 Feb 2010
8 answers
218 views
Hi.

I am using new version of RadControl for ASP.NET Ajax with Moss and WSS3.0

I am trying to create custom skin for sharepoint environment. but all the information I found this forum is old controls.

I do know how to create custom skin in asp.net application but not in sharepoint dev.

Would you please help or provide me with any documents?

Thanks

Mojesio nsyy
Top achievements
Rank 1
 answered on 24 Feb 2010
4 answers
333 views
I am having a problem when the browser back button is clicked after I have added multiple History points.

I have a multiview in a user control. The page that contains the user control uses a master page.

The multview has 4 basic steps "Select", "Billing", "Shipping", "Confirmation".
"Select" = 0
"Billing" = 1
"Shipping" = 2
"Confirmation" = 3

As the user steps through the view I add history points for the current view before I change to the next view.
 
            scriptManager.AddHistoryPoint("mykey", Convert.ToString(this.mvSignOrdering.ActiveViewIndex));  
            this.mvOrdering.ActiveViewIndex = 1; 

The URL gets displayed correctly in the browser: ordering.aspx#&&mykey=0,  ordering.aspx#&&mykey=1, ordering.aspx#&&mykey=2


When the user clicks the browser back button on the "Confirmation" view..... I capture the OnNavigate event for the ScriptManager but my key states the value of "1".

The url states the value should be "2" but the event in the code behind states "1".

Any one have any ideas on what could be going on here?
 It is possible for me to get the value directly from the URL since that is correct?


Thanks,


Felipe
Felipe Saldana
Top achievements
Rank 1
 answered on 23 Feb 2010
4 answers
130 views
Hi,

I am not sure how many out there have the same issue. Try this,

1. Go to this link
http://demos.telerik.com/aspnet-ajax/editor/examples/externaldialogspath/defaultcs.aspx
2. select the Hyperlink Manager and click on the tab Email
3. Add an email Id, subject and click on "OK" and check whether the email link has been created within your editor.

I am not seeing the email link created. I am surprised, the demo link does seem to work for me. I have a similar requirement and it does not work for me after changing the code as per documentation on the link above. 

If you're not getting this issue, it may be my browser.

Any help on this would be greatly appreciated.
Thank you,
Vijay


Ron Handley
Top achievements
Rank 1
 answered on 23 Feb 2010
6 answers
361 views
Hi,

I have been using the RadTreeView for about 9 months now and am really happy with it. Recently I upgraded my project to Prometheus and noticed the WebServiceSettings, which seems exactly what I was looking for.

But there is no help in the online help for TreeView and a search for WebServiceSettings on telerik gives no results.

Is there any chance of getting a nice little example with populating nodes on load and adding nodes on Expand?

Regards,
Mark Thomas.
Piyush Bhatt
Top achievements
Rank 2
 answered on 23 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?